Ayatati_NM

block head

Dec 27th, 2018
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. #
  2. # Adds a command that allows player's to wear any kind of block as a hat.
  3. # You could add a condition to allow only certain blocks to be worn if you want to.
  4. #
  5.  
  6. command /head <material>:
  7. description: wear a block as helmet/head
  8. aliases: hat
  9. usage: /head <material>
  10. permission: skript.hat
  11. trigger:
  12. id of argument 1 is greater than 255:
  13. message "You cannot wear an item, only blocks"
  14. stop trigger
  15. player doesn't have argument 1:
  16. player doesn't have the permission "skript.hat.free":
  17. message "You do not have a %argument 1% you could wear!"
  18. stop trigger
  19. helmet slot of player is not empty:
  20. message "You're already wearing a helmet"
  21. stop trigger
  22. player doesn't have the permission "skript.hat.free":
  23. remove argument 1 from player
  24. equip player with argument 1
Add Comment
Please, Sign In to add comment