Facebook
From Hexa, 3 Years ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 127
  1. #Magiczny kocioł
  2. #LPM
  3. on leftclick:
  4.         if name of player's tool is "&5&lMagiczny Kociol":
  5.                 set {czas::%player%::kociol1} to difference between {uzycie::%player%::kociol1} and now
  6.                 if {czas::%player%::kociol1} is less than 30 seconds:
  7.                         send "&cMusisz odczekac &7%difference between 30 seconds and {czas::%player%::kociol1}% &cprzed nastepnym uzyciem"
  8.                 else:
  9.                         set {uzycie::%player%::kociol1} to now
  10.                         drawDot count 15, particle "cloud", XYZ 1.2, 1.2, 1.2, center location of player's head, visibleRange 100, keepFor 3 ticks
  11.                         wait 1 tick
  12.                         apply invisibility without particles to player for 10 seconds
  13.  
  14. on damage:
  15.         {potwor::%attacker%} is true
  16.         {wojownik::%victim%} is true
  17.         attacker has invisibility:
  18.                 remove invisibility from attacker
  19.  
  20. #PPM
  21. on rightclick:
  22.         if name of player's tool is "&5&lMagiczny Kociol":
  23.                 set {czas::%player%::kociol2} to difference between {uzycie::%player%::kociol2} and now
  24.                 if {czas::%player%::kociol2} is less than 90 seconds:
  25.                         send "&cMusisz odczekac &7%difference between 90 seconds and {czas::%player%::kociol2}% &cprzed nastepnym uzyciem"
  26.                         cancel event
  27.                 else:
  28.                         set {uzycie::%player%::kociol2} to now
  29.                         wait 1 tick
  30.                         set player's tool to cauldron named "&5&lMagiczny Kociol"
  31.  
  32. on place:
  33.         "%event-block%" is "CAULDRON":
  34.                 wait 2 ticks
  35.                 if name of player's tool is "&5&lMagiczny Kociol":
  36.                         wait 1 tick
  37.                         set {kocioł::%event-block%} to true
  38.                         loop 10 times:
  39.                                 drawDot count 20, particle "witchspell", XYZ 0.8, 0.8, 0.8, center location of event-block, visibleRange 100, keepFor 1 second
  40.                                 loop all players in radius 10 of event-block:
  41.                                         if {wojownik::%loop-player%} is true:
  42.                                                 apply weakness to loop-player for 5 seconds
  43.                                 wait 5 seconds
  44.                         delete {kocioł::%event-block%}
  45.                         set event-block to air
  46.  
  47. on break:
  48.         event-block is cauldron
  49.         {kocioł::%event-block%} is true:
  50.                 cancel event
  51.                        
  52. on click:
  53.         {kocioł::%clicked block%} is true
  54.         {potwor::%player%} is true:
  55.                 set {czas::%player%::kociol3} to difference between {uzycie::%player%::kociol3} and now
  56.                 if {czas::%player%::kociol3} is less than 20 seconds:
  57.                         send "&cMusisz odczekac &7%difference between 20 seconds and {czas::%player%::kociol3}% &cprzed nastepnym uzyciem"
  58.                 else:
  59.                         set {uzycie::%player%::kociol3} to now
  60.                         apply regeneration 2 to player for 5 seconds
  61.                         send "&dNapiłeś się z magicznego kotła! Zostałeś uleczony!" to player