Advertisement
noftaly

Untitled

Aug 29th, 2018
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.50 KB | None | 0 0
  1.  
  2. on death of a player:
  3. if event-world is "UHC":
  4. {timebomb} is true
  5. clear drops
  6. set {_x} to the x location of victim
  7. set {_y} to the y location of victim
  8. set {_z} to the z location of victim
  9. set {_victim} to victim's location
  10. add -1 to {_x}
  11. set {_mort} to victim's inventory
  12. add helmet of victim to {_mort}
  13. add chestplate of victim to {_mort}
  14. add leggings of victim to {_mort}
  15. add boots of victim to {_mort}
  16. set block at location {_x}, {_y}, {_z} to chest
  17. set block at victim's location to chest
  18. set the inventory of block at victim's location to {_mort}
  19. broadcast "&6[TIMEBOMB] %victim% est mort ! Son Deathchest explosera dans %{tempstb}% !"
  20. wait {tempstb}
  21. clear the inventory of block at {_victim}
  22. create an explosion of force 5 at {_victim}
  23. broadcast "&6[TIMEBOMB] &cLe corps de %victim% a explosé !"
  24. strike lightning effect at {_victim}
  25.  
  26. command /timebomb [<time span>]:
  27. aliases: /tb
  28. usage: /timebomb [<temps d'explosion du coffre>]
  29. permission: timebomb.modify
  30. trigger:
  31. if player's world is "UHC":
  32. if arg 1 is not set:
  33. if {timebomb} is not set:
  34. set {timebomb} to true
  35. send "&a[TimeBomb] Le scénario timebomb à bien été activé !"
  36. else:
  37. clear {timebomb}
  38. send "&a[TimeBomb] Le scénario timebomb à bien été désactivé !"
  39. else:
  40. set {tempstb} to arg 1
  41. send "&a[TimeBomb] L'explosion du coffre à été mis à %arg 1%"
  42.  
  43. on load:
  44. if {tempstb} is not set:
  45. set {tempstb} to 30 seconds
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement