Hello everyone! Im Wiebie, and i got a little bit of an issue. I have been trying to make a skript for a lootchest that puts certain loot in the loop-block's inventory (The chest)
But i cant put 1 thing down right, i want it to make it so that the items that are put in the chest, are put in random slots and not just filling up from the beginning.
Any ideas?
But i cant put 1 thing down right, i want it to make it so that the items that are put in the chest, are put in random slots and not just filling up from the beginning.
Any ideas?
Code:
command /chest1:
trigger:
loop blocks in radius 1 around {chestloc}:
if loop-block is a chest:
clear loop-block's inventory
set {_item} to a random number between 3 and 6
loop {_item} times:
set {_randomitem} to random element out of {random.item.list::*}
add {_randomitem} to the loop-block's inventory