Hello guys! I found a bug I think, because this thing worked now it don't
Code:
Result in screenshot
Items:
Sk Version: 2.2
Mc: 1.8
Help me!
Thanks <3
Code:
code_language.skript:
command /chestreset [<text>]:
trigger:
if player is op:
if arg-1 is set:
delete {listofspawnpoint.%arg-1%::*}
add {skyw.cagespawn1.%arg-1%} to {listofspawnpoint.%arg-1%::*}
add {skyw.cagespawn2.%arg-1%} to {listofspawnpoint.%arg-1%::*}
add {skyw.cagespawn3.%arg-1%} to {listofspawnpoint.%arg-1%::*}
add {skyw.cagespawn4.%arg-1%} to {listofspawnpoint.%arg-1%::*}
add {skyw.cagespawn5.%arg-1%} to {listofspawnpoint.%arg-1%::*}
add {skyw.cagespawn6.%arg-1%} to {listofspawnpoint.%arg-1%::*}
add {skyw.cagespawn7.%arg-1%} to {listofspawnpoint.%arg-1%::*}
add {skyw.cagespawn8.%arg-1%} to {listofspawnpoint.%arg-1%::*}
add {skyw.cagespawn9.%arg-1%} to {listofspawnpoint.%arg-1%::*}
add {skyw.cagespawn10.%arg-1%} to {listofspawnpoint.%arg-1%::*}
add {skyw.cagespawn11.%arg-1%} to {listofspawnpoint.%arg-1%::*}
add {skyw.cagespawn12.%arg-1%} to {listofspawnpoint.%arg-1%::*}
loop {listofspawnpoint.%arg-1%::*}:
loop all blocks in radius 10 of loop-value:
set {_chestpatern.mid} to a random integer between 1 and 1
if loop-block is a chest:
if {_chestpatern.mid} is 1:
clear loop-block's inventory
clear {list.p1::*}
loop {chestitems.p1.::*}:
add loop-value-2 to {list.p1::*}
wait 5 ticks
loop {list.p1::*}:
set {_slot} to a random number between 1 and 27
set slot {_slot} of loop-block to loop-value-2
remove loop-value-2 from {list.p1::*}
if {_chestpatern.mid} is 2:
clear loop-block's inventory
clear {list.p2::*}
loop {chestitems.p2.::*}:
add loop-value-2 to {list.p2::*}
wait 5 ticks
loop {list.p2::*}:
set {_slot} to a random number between 1 and 27
set slot {_slot} of loop-block to loop-value-2
remove loop-value-2 from {list.p2::*}
if {_chestpatern.mid} is 3:
clear loop-block's inventory
clear {list.p3::*}
loop {chestitems.p3.::*}:
add loop-value-2 to {list.p3::*}
wait 5 ticks
loop {list.p3::*}:
set {_slot} to a random number between 1 and 27
set slot {_slot} of loop-block to loop-value-2
remove loop-value-2 from {list.p3::*}
if {_chestpatern.mid} is 4:
clear loop-block's inventory
clear {list.p4::*}
loop {chestitems.p4.::*}:
add loop-value-2 to {list.p4::*}
wait 5 ticks
loop {list.p4::*}:
set {_slot} to a random number between 1 and 27
set slot {_slot} of loop-block to loop-value-2
remove loop-value-2 from {list.p4::*}
Items:
code_language.skript:
on load:
clear {chestitems.p1::*}
clear {chestitems.p2.::*}
clear {chestitems.p3.::*}
clear {chestitems.p4.::*}
clear {chestitems.p5.::*}
clear {chestitems.p6.::*}
add 2 golden apple to {chestitems.p5.::*}
add 1 golden apple to {chestitems.p5.::*}
add 4 golden apple to {chestitems.p5.::*}
add 1 diamond chestplate of protection 3 to {chestitems.p5.::*}
add 1 diamond leggings of protection 2 to {chestitems.p5.::*}
add 1 diamond sword of sharpness 3 to {chestitems.p5.::*}
add 64 snowball to {chestitems.p5.::*}
add 64 egg to {chestitems.p5.::*}
add 64 egg to {chestitems.p5.::*}
add 10 tnt to {chestitems.p5.::*}
add 23 tnt to {chestitems.p5.::*}
add 1 flint and steel to {chestitems.p5.::*}
add 1 fishing rod of knockback 3 to {chestitems.p5.::*}
add 64 stone to {chestitems.p5.::*}
add 43 stone to {chestitems.p5.::*}
add 32 planks to {chestitems.p5.::*}
add 3 golden apple to {chestitems.p6.::*}
add 1 fishing rod of knockback 2 to {chestitems.p6.::*}
add 1 diamond sword to {chestitems.p6.::*}
add 1 flint and steel to {chestitems.p6.::*}
add 1 diamond leggings of protection 1 to {chestitems.p6.::*}
add 1 diamond helmet of protection 2 to {chestitems.p6.::*}
add 64 stone to {chestitems.p6.::*}
add 2 golden apple to {chestitems.p6.::*}
add 3 golden apple to {chestitems.p6.::*}
add 20 tnt to {chestitems.p6.::*}
add 10 tnt to {chestitems.p6.::*}
add 1 water_bottle:16393 to {chestitems.p6.::*}
add 1 water_bottle:16388 to {chestitems.p6.::*}
add 10 arrows to {chestitems.p1.::*}
add 1 diamond sword of sharpness 1 to {chestitems.p1::*}
add 1 bow of power 3 to {chestitems.p1::*}
add 1 bow of power 3 to {chestitems.p1::*}
add 1 diamond helmet to {chestitems.p1::*}
add 1 diamond boots to {chestitems.p1::*}
add 1 iron chestplate to {chestitems.p1::*}
add 1 iron leggings to {chestitems.p1::*}
add 16 egg to {chestitems.p1.::*}
add 1 fishing rod of knockback 1 to {chestitems.p1::*}
add 1 lava bucket to {chestitems.p1::*}
add 1 water_bottle:16386 to {chestitems.p1::*}
add 24 planks to {chestitems.p1::*}
add 1 diamond axe to {chestitems.p1.::*}
add 12 stone to {chestitems.p1::*}
add 1 diamond pickaxe to {chestitems.p1.::*}
add 1 iron sword of sharpness 3 to {chestitems.p2.::*}
add 1 fishing rod to {chestitems.p2.::*}
add 35 planks to {chestitems.p2.::*}
add 20 stone to {chestitems.p2.::*}
add 16 snowball to {chestitems.p2.::*}
add 35 stone to {chestitems.p2.::*}
add 1 iron helmet to {chestitems.p2::*}
add 1 water_bottle:16388 to {chestitems.p2.::*}
add 1 iron boots to {chestitems.p2::*}
add 1 iron axe to {chestitems.p2.::*}
add 1 iron chestplate to {chestitems.p2::*}
add 1 iron leggings to {chestitems.p2::*}
add 13 steak to {chestitems.p2::*}
add 1 water bucket to {chestitems.p2::*}
add 1 diamond pickaxe to {chestitems.p2.::*}
add 1 stone sword of sharpness 3 to {chestitems.p3.::*}
add 16 egg to {chestitems.p3.::*}
add 46 stone to {chestitems.p3.::*}
add 32 planks to {chestitems.p3.::*}
add 1 iron helmet to {chestitems.p3.::*}
add 1 iron leggings to {chestitems.p3.::*}
add 1 diamond boots to {chestitems.p3.::*}
add 1 water bucket to {chestitems.p3.::*}
add 1 lava bucket to {chestitems.p3.::*}
add 16 snowball to {chestitems.p3.::*}
add 1 diamond pickaxe to {chestitems.p3.::*}
add 1 iron axe to {chestitems.p3.::*}
add 1 diamond sword to {chestitems.p4.::*}
add 1 fishing rod to {chestitems.p4.::*}
add 32 stone to {chestitems.p4.::*}
add 10 stone to {chestitems.p4.::*}
add 16 egg to {chestitems.p4.::*}
add 1 water_bottle:16388 to {chestitems.p4.::*}
add 16 snowball to {chestitems.p4.::*}
add 16 steak to {chestitems.p4.::*}
add 1 water_bottle:16385 to {chestitems.p4.::*}
add 1 diamond chestplate to {chestitems.p4.::*}
add 1 diamond leggings to {chestitems.p4.::*}
add 1 iron boots to {chestitems.p4.::*}
add 1 iron helmet to {chestitems.p4.::*}
add 1 golden apple to {chestitems.p4.::*}
Mc: 1.8
Help me!
Thanks <3