on load:
delete {lootI::*}
add "stone sword" to {lootI::*}
every 3 seconds:
set {_loc} to location(-86, 92, 21, world "world")
set block at {_loc} To north facing chest
set {_chest} to block at {_loc}
set {_slot} to random integer from 0 to 26
set slot {_slot} of {_chest}'s inventory to a random element out of {lootI::*}
delete {lootI::*}
add "stone sword" to {lootI::*}
every 3 seconds:
set {_loc} to location(-86, 92, 21, world "world")
set block at {_loc} To north facing chest
set {_chest} to block at {_loc}
set {_slot} to random integer from 0 to 26
set slot {_slot} of {_chest}'s inventory to a random element out of {lootI::*}