Advertisement
Guest User

Untitled

a guest
Feb 22nd, 2020
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.56 KB | None | 0 0
  1. ommand /stockchests2:
  2. permission: fuiwfuwoefaw
  3. trigger:
  4. loop all blocks in radius 45 of {map}:
  5. if loop-block is a chest:
  6. set {_chance} to a random integer between 1 and 4
  7. if {_chance} is 1:
  8. loop 6 times:
  9. set {_item} to a random element of {junk::*}
  10. add {_item} to inventory of loop-block
  11. if {_chance} is 2:
  12. clear inventory of loop-block
  13. set {_item} to gold ingot
  14. loop 10 times:
  15. add {_item} to inventory of loop-block
  16. if {_chance} is 3:
  17. loop 6 times:
  18. set {_item} to a random element of {junk::*}
  19. add {_item} to inventory of loop-block
  20. if {_chance} is 4:
  21. loop 2 times:
  22. set {_item} to a random element of {junk::*}
  23. add {_item} to inventory of loop-block
  24. if {_chance} is 5:
  25. loop 9 times:
  26. set {_item} to a random element of {junk::*}
  27. add {_item} to inventory of loop-block
  28.  
  29.  
  30.  
  31. on craft of gold ingot:
  32. cancel event
  33.  
  34.  
  35. on load:
  36. set {junk::*} to ""
  37. wait 1 tick
  38. add 1 mycelium with name "Trash" to {junk::*}
  39. add 1 glass pane with name "Shard" to {junk::*}
  40. add 1 dried kelp to {junk::*}
  41.  
  42. command /mapset:
  43. trigger:
  44. set {map} to player's location
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement