code_language.skript:
loop all blocks in radius 200 of {sw.arena.%{arena.%loop-player%}%.center}:
If loop-block is chest:
clear loop-block's inventory
wait a second
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::*}
loop (random integer between 1 and 30) times:
set {_chestitem} to random item from {chestitems::*}
add {_chestitem} to loop-block
How to fix this thing?What do I need to do that this code will work?
Thx for reply