Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on load:
- clear {chestitems::*}
- every 10 seconds:
- loop all players:
- loop all blocks in radius 200 of loop-player:
- if loop-block is a chest:
- set {_chest} to block at loop-block
- set {_item} to a random element of {chestitems::*}
- add {_item} to block at {_chest}'s inventory
- command /items:
- trigger:
- loop all blocks in radius 200 of player:
- if loop-block is a chest:
- set {_chest} to block at loop-block
- set {_item} to a random element of {chestitems::*}
- add {_item} to block at {_chest}'s inventory
- command /additem <item>:
- trigger:
- if arg-1 is not set:
- send "&c /additem <item>"
- stop
- add arg-1 to {chestitems::*}
- send "&a %arg-1%を追加しました"
- command /resetitem:
- trigger:
- clear {chestitems::*}
- send "&aルートテーブルをリセットしました"
Advertisement
Add Comment
Please, Sign In to add comment