Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ommand /stockchests2:
- permission: fuiwfuwoefaw
- trigger:
- loop all blocks in radius 45 of {map}:
- if loop-block is a chest:
- set {_chance} to a random integer between 1 and 4
- if {_chance} is 1:
- loop 6 times:
- set {_item} to a random element of {junk::*}
- add {_item} to inventory of loop-block
- if {_chance} is 2:
- clear inventory of loop-block
- set {_item} to gold ingot
- loop 10 times:
- add {_item} to inventory of loop-block
- if {_chance} is 3:
- loop 6 times:
- set {_item} to a random element of {junk::*}
- add {_item} to inventory of loop-block
- if {_chance} is 4:
- loop 2 times:
- set {_item} to a random element of {junk::*}
- add {_item} to inventory of loop-block
- if {_chance} is 5:
- loop 9 times:
- set {_item} to a random element of {junk::*}
- add {_item} to inventory of loop-block
- on craft of gold ingot:
- cancel event
- on load:
- set {junk::*} to ""
- wait 1 tick
- add 1 mycelium with name "Trash" to {junk::*}
- add 1 glass pane with name "Shard" to {junk::*}
- add 1 dried kelp to {junk::*}
- command /mapset:
- trigger:
- set {map} to player's location
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement