Hello i am try to fill single chests whith random items but it isnt working on them it just works on doble chests. Can some one help? (sory for my english) the script is down below.... (i now that there is some items that aren't in game (dont mind them) i just need that it works on single chests)
- on load:
- clear {chestitems::*}
- add 5 wood to {chestitems::*}
- add 1 diamond pickaxe to {chestitems::*}
- add wooden sword of sharpness 2 to {chestitems::*}
- add 1 diamond sword to {chestitems::*}
- add 1 diamond helmet of fire protection 1 to {chestitems::*}
- add 10 arrow to {chestitems::*}
- add 1 ender pearl to {chestitems::*}
- add 23 xp bottle to {chestitems::*}
- add 5 golden apple to {chestitems::*}
- add 1 iron sword to {chestitems::*}
- add 1 ender pearl to {chestitems::*}
- add 23 xp bottle to {chestitems::*}
- add 1 golden apple to {chestitems::*}
- add 1 diamond pickaxe to {chestitems::*}
- add 1 iron axe to {chestitems::*}
- add 1 ender pearl to {chestitems::*}
- add 23 xp bottle to {chestitems::*}
- add 5 golden apple to {chestitems::*}
- add 1 wooden sword of sharpness 2 to {chestitems::*}
- add 1 diamond chestplate of fire protection 1 to {chestitems::*}
- add 12 arrow to {chestitems::*}
- add 1 slimeball of knockback 5 to {chestitems::*}
- add 1 ender pearl to {chestitems::*}
- add 23 xp bottle to {chestitems::*}
- add 5 golden apple to {chestitems::*}
- add 12 stained hardened clay to {chestitems::*}
- add 1 diamond sword to {chestitems::*}
- add diamond chestplate of fire protection 4 to {chestitems::*}
- add 1 bow of flame 1 to {chestitems::*}
- add 1 diamond sword to {chestitems::*}
- add 1 golden boots of fire protection 4 to {chestitems::*}
- add 5 golden apple to {chestitems::*}
- add 12 stained hardened clay to {chestitems::*}
- add 1 golden helmet of fire protection 4 to {chestitems::*}
- add 1 lava bucket to {chestitems::*}
- add 8 cooked beef to {chestitems::*}
- add 23 xp bottle to {chestitems::*}
- add 12 stained hardened clay to {chestitems::*}
- add 1 diamond helmet of fire protection to {chestitems::*}
- add 1 golden sword of fire aspect 1 to {chestitems::*}
- add 1 diamond leggings of fire protection 4 to {chestitems::*}
- add 5 golden apple to {chestitems::*}
- add 12 stained hardened clay to {chestitems::*}
- add 1 wooden sword of sharpness 2 to {chestitems::*}
- add 12 wood to {chestitems::*}
- add 10 arrow to {chestitems::*}
- add 1 ender pearl to {chestitems::*}
- add 23 xp bottle to {chestitems::*}
- add 5 golden apple to {chestitems::*}
- add 12 stained hardened clay to {chestitems::*}
- add 1 diamond helmet of fire protection 1 to {chestitems::*}
- add 1 diamond pickaxe to {chestitems::*}
- add 1 iron axe to {chestitems::*}
- add 8 stone:1 to {chestitems::*}
- add 1 iron axe to {chestitems::*}
- add 1 ender pearl to {chestitems::*}
- add 23 xp bottle to {chestitems::*}
- add 5 golden apple to {chestitems::*}
- add 1 wooden sword of sharpness 2 to {chestitems::*}
- add 1 diamond sword to {chestitems::*}
- add 12 arrow to {chestitems::*}
- add 1 bow to {chestitems::*}
- add 1 wooden sword of sharpness 2 to {chestitems::*}
- add 1 diamond sword of fire aspect 1 to {chestitems::*}
- add 12 arrow to {chestitems::*}
- add 10 arrow to {chestitems::*}
- add 1 diamond boots of fire protection 4 to {chestitems::*}
- add 1 diamond helmet of fire protection 4 to {chestitems::*}
- add 1 stone sword of fire aspect 1 to {chestitems::*}
- add 1 bow of infinity to {chestitems::*}
- add 1 golden boots of fire protection 4 to {chestitems::*}
- add 1 iron block to {chestitems::*}
- add 1 stick to {chestitems::*}
- add 1 bow of flame 1 to {chestitems::*}
- add 1 arrow to {chestitems::*}
- add 12 arrow to {chestitems::*}
- add 1 diamond sword to {chestitems::*}
- add 1 diamond sword of sharpness 1 to {chestitems::*}
- add 1 leather chestplate of fire protection 4 to {chestitems::*}
- add 8 stone:1 to {chestitems::*}
- command /items:
- trigger:
- loop all blocks in radius 200 of player:
- if loop-block is a chest:
- loop (random integer between 1 and 30) times:
- set {_item} to a random element of {chestitems::*}
- add {_item} to block at loop-value