Facebook
From Rzuffik, 5 Years ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 303
  1. options:
  2.                 messageTnTOFF: &6&lTnT I Wagoniki Zostaly &c&lWylaczone &6&lPrzez &8&l--> &6&l%player%
  3.                 messageTnTON: &6&lTnT I Wagoniki Zostaly &2&lWlaczone &6&lPrzez &8&l--> &6&l%player%
  4.                 messagePermission: &6&l%player% &4&lNie Masz Permissji!
  5.                 PROCENTOBS: 33
  6.                 PROCENTWODA: 20
  7.                 messagePopolozeniu: &6&lTnT I Wagoniki Sa &c&lWylaczone
  8.                 blokOBS: air
  9.                 blokWODA: cobblestone
  10. variables:
  11.         {tntRzuffik} = 0
  12. on place of tnt:
  13.         if {tntRzuffik} is 1:
  14.                 send "{@messagePopolozeniu}"
  15. on explode:
  16.         if {tntRzuffik} is 1:
  17.                 loop blocks in radius 4 of event-location:
  18.                         loop-block is water or lava:
  19.                                 if chance of 0%:
  20.                                         set loop-block to cobblestone
  21.                 loop blocks in radius 4 of event-location:
  22.                         loop-block is obsidian:
  23.                                 if chance of 0%:
  24.                                         set loop-block to air
  25.                 cancel event
  26. on explode:
  27.         if {tntRzuffik} is 0:
  28.                 loop blocks in radius 4 of event-location:
  29.                         loop-block is water or lava:
  30.                                 if chance of {@PROCENTWODA}%:
  31.                                         set loop-block to {@blokWODA}
  32.                 loop blocks in radius 4 of event-location:
  33.                         loop-block is obsidian:
  34.                                 if chance of {@PROCENTOBS}%:
  35.                                         set loop-block to {@blokOBS}
  36. command /tnt [<text>]:
  37.         trigger:
  38.                 if player has permissions "tnt.Rzuffik":
  39.                         if arg 1 is not set:
  40.                                 send "&8&l-->  &5&lTnT Na Serwerze&7(&6By Rzuffik&7)"
  41.                                 send "&8&l-> &6/TnT on &7&l<---&5Wlaczenie TnT"
  42.                                 send "&8&l-> &6/TnT off &7&l<---&5Wylaczenie TnT"
  43.                         if arg 1 is "OFF":
  44.                                 set {tntRzuffik} to 1
  45.                                 broadcast "{@messageTnTOFF}"
  46.                         if arg 1 is "ON":
  47.                                 set {tntRzuffik} to 0
  48.                                 broadcast "{@messageTnTON}"
  49.                 else:
  50.                         send "{@messagePermission}"