UDON_JP

TreasureEnderChest

Aug 21st, 2019
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | None | 0 0
  1. on click on ender_chest:
  2. set {_p} to "%player%" parsed as player
  3. open chest with 3 rows named "&a&lopen &6&lchest" to player
  4. format slot 0 of player with skull of {_p} named "&7Player &8: &f%player%" with lore "&aClick to see your stats" to close then run []
  5.  
  6.  
  7. command /openchest <text>:
  8. permission: admin
  9. trigger:
  10. if arg-1 is "normal":
  11. if {chest.normal.%player%} is more than or equal to 1:
  12. send "&bチェストを開けます..." to player
  13. else:
  14. send "&cあなたはチェストを持っていません。" to player
  15. if arg-1 is "super":
  16. if {chest.super.%player%} is more than or equal to 1:
  17. send "&bチェストを開けます..." to player
  18. else:
  19. send "&cあなたはチェストを持っていません。" to player
  20. if arg-1 is "legendary":
  21. if {chest.legendary.%player%} is more than or equal to 1:
  22. send "&bチェストを開けます..." to player
  23. else:
  24. send "&cあなたはチェストを持っていません。" to player
Add Comment
Please, Sign In to add comment