upoupo0201

Untitled

Oct 31st, 2024
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. on load:
  2. clear {chestitems::*}
  3.  
  4. every 10 seconds:
  5. loop all players:
  6. loop all blocks in radius 200 of loop-player:
  7. if loop-block is a chest:
  8. set {_chest} to block at loop-block
  9. set {_item} to a random element of {chestitems::*}
  10. add {_item} to block at {_chest}'s inventory
  11.  
  12.  
  13. command /items:
  14. trigger:
  15. loop all blocks in radius 200 of player:
  16. if loop-block is a chest:
  17. set {_chest} to block at loop-block
  18. set {_item} to a random element of {chestitems::*}
  19. add {_item} to block at {_chest}'s inventory
  20.  
  21. command /additem <item>:
  22. trigger:
  23. if arg-1 is not set:
  24. send "&c /additem <item>"
  25. stop
  26. add arg-1 to {chestitems::*}
  27. send "&a %arg-1%を追加しました"
  28.  
  29. command /resetitem:
  30. trigger:
  31. clear {chestitems::*}
  32. send "&aルートテーブルをリセットしました"
Advertisement
Add Comment
Please, Sign In to add comment