Facebook
From Gamboge Dolphin, 8 Months ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 94
  1. variables:
  2.         {Event::Szkaty} = false
  3.         {Event::Latarnie} = false
  4.        
  5.         {status::szkaty} = "&4OFF"
  6.         {status::latarnie} = "&4OFF"
  7.        
  8. options:
  9.         szansa-zabicie: 100
  10.  
  11. on death:
  12.         victim is zombie or creeper or spider:
  13.                 if {Event::Szkaty} is true:
  14.                         chance of {@szansa-zabicie}%:
  15.                                 drop 1 golden ingot named "&3&lSzkatu┼éka ksi─Ö┼╝yca" at victim
  16.                                 strike lightning effect at the victim
  17.  
  18. on rightclick:
  19.         if player's tool is golden ingot named "&3&lSzkatu┼éka ksi─Ö┼╝yca":
  20.                 if {Event::Szkaty} is true:
  21.                         chance of 30%:
  22.                                 give 1 golden ingot to player
  23.                                 strike lightning effect at the player
  24.                                 remove 1 golden ingot named "&3&lSzkatu┼éka ksi─Ö┼╝yca" from player
  25.                                 send "&7Ze szkatu┼éki wypad┼éo ci: &aZ┼éoto"
  26.                                 stop
  27.                         chance of 30%:
  28.                                 give 1 diamond to player
  29.                                 strike lightning effect at the player
  30.                                 remove 1 golden ingot named "&3&lSzkatu┼éka ksi─Ö┼╝yca" from player
  31.                                 send "&7Ze szkatu┼éki wypad┼éo ci: &aDiament"
  32.                                 stop
  33.                         send "&7W tej szkatu┼éce nic nie by┼éo."
  34.                         remove 1 golden ingot named "&3&lSzkatu┼éka ksi─Ö┼╝yca" from player
  35.                 else:
  36.                         send "&6%player% &7obecnie event: &6&lSzkatu┼éki Ksi─Ö┼╝yca &7jest wy┼é─ůczony" to the player
  37.                        
  38. on rightclick on jack-o-lantern:
  39.         if {Event::Latarnie} is true:
  40.                 wait 0.1 seconds
  41.                 set block to diamond block
  42.                 wait 0.1 seconds
  43.                 set block to gold block
  44.                 wait 0.1 seconds
  45.                 set block to emerald block
  46.                 wait 0.1 seconds
  47.                 set block to diamond block
  48.                 wait 0.1 seconds
  49.                 set block to gold block
  50.                 wait 0.1 seconds
  51.                 set block to emerald block
  52.                 wait 0.1 seconds
  53.                 set block to air
  54.                 chance of 30%:
  55.                         drop 1 golden ingot at the block
  56.                         strike lightning effect at the block
  57.                         remove 1 golden ingot named "&3&lSzkatu┼éka ksi─Ö┼╝yca" from player
  58.                         send "&7Ze szkatu┼éki wypad┼éo ci: &aZ┼éoto"
  59.                         stop
  60.                 chance of 30%:
  61.                         drop 1 diamond at the block
  62.                         strike lightning effect at the block
  63.                         remove 1 golden ingot named "&3&lSzkatu┼éka ksi─Ö┼╝yca" from player
  64.                         send "&7Ze szkatu┼éki wypad┼éo ci: &aDiament"
  65.                         stop
  66.                 send "&7W tej dyni nie by┼éo ┼╝adnego itemu." to the player
  67.         else:
  68.                 send "&6%player% &7obecnie event: &c&lLatarnie &7jest wy┼é─ůczony" to the player
  69.                
  70. command /event [<text>] [<text>]:
  71.         trigger:
  72.                 if arg 1 is not set:
  73.                         if player has permission "event.sk":
  74.                                 open chest with 1 rows named "&c&lEventy &8- &7administrator" to player
  75.                                 wait 2 tick
  76.                                 format slot 0 of player with 1 of golden ingot named "&6&lSzkatu┼éki Ksi─Ö┼╝yca" with lore "&7Chcesz si─Ö dowiedzie─ç wi─Öcej?||&7Status: %{status::szkaty}%||&8(&7Kliknij&8)" to run [execute player command "/event info szkaty"]
  77.                                 format slot 1 of player with 1 of paper named "&7&l<- &6&lSzkatu┼éki Ksi─Ö┼╝yca &8- &7adm" with lore "&7Aby w┼é─ůczy─ç event:||&8(&7/event szkaty on/off&8)" to be unstealable
  78.                                 format slot 2 of player with 1 of jack-o-lantern named "&c&lLatarnie" with lore "&7Chcesz si─Ö dowiedzie─ç wi─Öcej?||&7Status: %{status::latarnie}%||&8(&7Kliknij&8)" to run [execute player command "/event info latarnie"]
  79.                                 format slot 3 of player with 1 of paper named "&7&l<- &c&lLatarnie &8- &7adm" with lore "&7Aby w┼é─ůczy─ç event:||&8(&7/event latarnie on/off&8)" to be unstealable
  80.                         else:
  81.                                 open chest with 1 rows named "&c&lEventy" to player
  82.                                 wait 2 tick
  83.                                 format slot 0 of player with 1 of golden ingot named "&6&lSzkatu┼éki Ksi─Ö┼╝yca" with lore "&7Chcesz si─Ö dowiedzie─ç wi─Öcej?||&7Status: %{status::szkaty}%||&8(&7Kliknij&8)" to run [execute player command "/event info szkaty"]
  84.                                 format slot 1 of player with 1 of black glass pane named "&8&lPuste pole." to be unstealable
  85.                                 format slot 2 of player with 1 of jack-o-lantern named "&c&lLatarnie" with lore "&7Chcesz si─Ö dowiedzie─ç wi─Öcej?||&7Status: %{status::latarnie}%||&8(&7Kliknij&8)" to run [execute player command "/event info latarnie"]
  86.                 if arg 1 is "info":
  87.                         if arg 2 is "szkaty":
  88.                                 open chest with 1 rows named "&7Event: &6Szkatu┼éki Ksi─Ö┼╝yca" to player
  89.                                 wait 2 tick
  90.                                 format slot 0 of player with 1 of golden ingot named "&6&lSzkatu┼éki Ksi─Ö┼╝yca" with lore "&7Polega na tym ┼╝e z podanych mob├│w dropi─ů ci szkatu┼éki ||&7 z kt├│rych mo┼╝e polecie─ç ci co┼Ť fajnego" to be unstealable
  91.                                 format slot 2 of player with 1 of book and quill named "&6Szkaty wypadaj─ů z:" with lore "&6┬╗ &7Zombi||&6┬╗ &7Paj─ůk├│w||&6┬╗ &7┼Üwini||&6┬╗ &7Creeper├│w" to be unstealable
  92.                                 format slot 7 of player with 1 of paper named "&7Status:" with lore "&6┬╗ &a%{status::szkaty}%" to be unstealable
  93.                                 format slot 8 of player with 1 of red clay named "&4Powr├│t" with lore "&8(&7Kliknij&8)" to run [execute player command "/event"]
  94.                         if arg 2 is "latarnie":
  95.                                 open chest with 1 rows named "&7Event: &cLatarnie" to player
  96.                                 wait 2 tick
  97.                                 format slot 0 of player with 1 of jack-o-lantern named "&c&lLatarnie" with lore "&7Polega na tym ┼╝e na mapie ||&7 porozk┼éadane s─ů ┼Üwiec─ůce dynie (latarnie)||&7 i twoim celem jest znalezienie ich i naci┼Ťniecie na ni─ů PPM ||&7 z nich wylatuj─ů ci ciekawe nagrody" to be unstealable
  98.                                 format slot 7 of player with 1 of paper named "&7Status:" with lore "&6┬╗ &a%{status::latarnie}%" to be unstealable
  99.                                 format slot 8 of player with 1 of red clay named "&4Powr├│t" with lore "&8(&7Kliknij&8)" to run [execute player command "/event"]
  100.                 if arg 1 is "szkaty":
  101.                         if arg 2 is "on":
  102.                                 if player has permission "event.sk":
  103.                                         if {Event::Szkaty} is true:
  104.                                                 send "&7Event ju┼╝ jest &aon"
  105.                                         else:
  106.                                                 set {Event::Szkaty} to true
  107.                                                 send "&7W┼éa┼Ťnie w┼éaczy┼ée┼Ť event szkatu┼éek"
  108.                                                 set {status::szkaty} to "&aON"
  109.                                                 broadcast "&8[&c&lEvent&8&l] &8- &7Administrator: &6%player% &7aktywowa┼é event: &6&lSzkatu┼éki Ksi─Ö┼╝yca"
  110.                         if arg 2 is "off":
  111.                                 if player has permission "event.sk":
  112.                                         if {Event::Szkaty} is false:
  113.                                                 send "&7Event ju┼╝ jest &coff"
  114.                                         else:
  115.                                                 set {Event::Szkaty} to false
  116.                                                 send "&7W┼éa┼Ťnie wy┼é─ůczy┼ée┼Ť event szkatu┼éek"
  117.                                                 set {status::szkaty} to "&4OFF"
  118.                                                 broadcast "&8[&c&lEvent&8&l] &8- &7Administrator: &6%player% &7zako┼äczy┼é event: &6&lSzkatu┼éki Ksi─Ö┼╝yca"
  119.                 if arg 1 is "latarnie":
  120.                         if arg 2 is "on":
  121.                                 if player has permission "event.sk":
  122.                                         if {Event::Latarnie} is true:
  123.                                                 send "&7Event ju┼╝ jest &aon"
  124.                                         else:
  125.                                                 set {Event::Latarnie} to true
  126.                                                 send "&7W┼éa┼Ťnie w┼éaczy┼ée┼Ť event szkatu┼éek"
  127.                                                 set {status::latarnie} to "&aON"
  128.                                                 broadcast "&8[&c&lEvent&8&l] &8- &7Administrator: &6%player% &7aktywowa┼é event: &c&lLatarnie"
  129.                         if arg 2 is "off":
  130.                                 if player has permission "event.sk":
  131.                                         if {Event::Latarnie} is false:
  132.                                                 send "&7Event ju┼╝ jest &coff"
  133.                                         else:
  134.                                                 set {Event::Latarnie} to false
  135.                                                 send "&7W┼éa┼Ťnie wy┼é─ůczy┼ée┼Ť event szkatu┼éek"
  136.                                                 set {status::latarnie} to "&4OFF"
  137.                                                 broadcast "&8[&c&lEvent&8&l] &8- &7Administrator: &6%player% &7zako┼äczy┼é event: &c&lLatarnie"