Advertisement
LuisGerdez

Skript - Example #03

Aug 13th, 2015
280
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. # By LuisGz
  2.  
  3. on rightclick:
  4. if event-block is ender chest:
  5. cancel event
  6. add diamond to {_regalos::*}
  7. add iron sword to {_regalos::*}
  8. add gold pickaxe to {_regalos::*}
  9. set {_regalo} to random element of {_regalos::*}
  10. give {_regalo} to player
  11. send "&a&lHas ganado un %{_regalo}%!"
  12.  
  13. command /anti-drops <text>:
  14. trigger:
  15. if argument 1 is "activar":
  16. set {anti-drops} to true
  17. send "Has activado el anti-drops!"
  18. if argument 1 is "desactivar":
  19. delete {anti-drops}
  20. send "Has desactivado el anti-drops!"
  21.  
  22. on drop:
  23. if {anti-drops} is set:
  24. cancel event
  25. send "&cEl anti-drops esta activado!"
  26.  
  27.  
  28. # By LuisGz
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement