Facebook
From astranaar, 7 Years ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 324
  1. on place:
  2.         if player's tool is creeper head named "&9C4":
  3.                 if {c4loc.%player%} is not set:
  4.                         set {c4loc.%player%} to location of event-block
  5.                         send "&aPostawiles C4! Uzyj detonatora aby je wysadzic!"
  6.                         stop
  7.                 else:
  8.                         cancel event
  9.                         send "&cMozesz ustawic tylko jedno c4!"
  10.                         stop
  11.  
  12. on rightclick:
  13.         if player's tool is diamond horse armour named "&9Detonator":
  14.                 if {c4loc.%player%} is set:
  15.                         if block at {c4loc.%player%} is not air:
  16.                                 if distance between player and {c4loc.%player%} is less than 10:
  17.                                         loop 3 times:
  18.                                                 play raw sound "random.click" at {c4loc.%player%} with pitch 1 volume 5
  19.                                                 wait 1 second
  20.                                         loop 5 times:
  21.                                                 play raw sound "random.click" at {c4loc.%player%} with pitch 1 volume 5
  22.                                                 wait 0.5 second
  23.                                         loop 10 times:
  24.                                                 play raw sound "random.click" at {c4loc.%player%} with pitch 1 volume 5
  25.                                                 wait 0.2 second
  26.                                         spawn 5 of particle explode:5 offset by 1, 1, 1 at {c4loc.%player%}
  27.                                         set block at {c4loc.%player%} to air
  28.                                         create an explosion of force 3 at {c4loc.%player%}
  29.                                         delete {c4loc.%player%}
  30.                                         stop
  31.                                 else:
  32.                                         send "&cStoisz za daleko c4!"
  33.                                         stop
  34.                         else:
  35.                                 send "&cNie ustawiles c4!"
  36.                                 delete {c4loc.%player%}
  37.                                 stop
  38.                 else:
  39.                         send "&cNie ustawiles c4!"
  40.                         stop
  41.  
  42. on break:
  43.         if location of event-block is {c4loc.%player%}:
  44.                 delete {c4loc.%player%}
  45.                 send "&aZabrales swoje c4!"
  46.                 stop