Hello guys! I have skript:
and list:
From the code you can see what I want to do. But I remove that item from list but i get that item 2 in one chest.
Help me please
Skript ver: 2.2
Server: 1.8
Ty
------------------
Lol
With list problems
code_language.skript:
command /test3:
trigger:
loop all blocks in radius 5 of player:
set {_chestpatern.mid} to a random integer between 1 and 2
if {_chestpatern.mid} is 1:
if loop-block is a chest:
clear loop-block's inventory
clear {list.p5::*}
loop {chestitems.p5.::*}:
add loop-value-2 to {list.p5::*}
wait 5 ticks
loop {list.p5::*}:
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.p5::*}
if {_chestpatern.mid} is 2:
if loop-block is a chest:
clear loop-block's inventory
clear {list.p6::*}
loop {chestitems.p6.::*}:
add loop-value-2 to {list.p6::*}
wait 5 ticks
loop {list.p6::*}:
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.p6::*}
and list:
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 chestplate of protection 3 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 leggings of protection 2 to {chestitems.p5.::*}
add 1 diamond leggings of protection 2 to {chestitems.p5.::*}
add 1 diamond sword of sharpness 3 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 snowball 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 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 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 2 golden apple to {chestitems.p6.::*}
add 2 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:16393 to {chestitems.p6.::*}
add 1 water_bottle:16388 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.::*}
From the code you can see what I want to do. But I remove that item from list but i get that item 2 in one chest.
Help me please
Skript ver: 2.2
Server: 1.8
Ty
------------------
Lol
With list problems