So my Skript list variables delete themselves when I /stop my server. I always /save-all before stopping and I'm on the version 2.2-dev37c. Here is the code that gives me issues:
code_language.skript:
on place of brown glass block:
if name of player's tool is "&6Magical Seeds":
set {magicalseeds::%location of event-block%} to location of event-block
send "&3Sky&bFarmers &8- &6New seed placed!"
command /seeds:
trigger:
send "%{magicalseeds::*}%"
every 30 seconds in world "plots":
loop {magicalseeds::*}:
loop all blocks in radius 2 around {magicalseeds::%loop-index%}:
if loop-block is air:
chance of 5%:
set loop-block to melon or pumpkin
set {_y.%location of loop-block%} to loop-block's y coordinate
set {_x.%location of loop-block%} to loop-block's x coordinate
set {_z.%location of loop-block%} to loop-block's z coordinate
execute console command "/particle cloud %{_x.%location of loop-block%}% %{_y.%location of loop-block%}% %{_z.%location of loop-block%}% 0.5 0.5 0.5 0.1 20 force @a"
delete {_z.%location of loop-block%}
delete {_y.%location of loop-block%}
delete {_x.%location of loop-block%}
on break of brown glass block:
if location of event-block is equal to {magicalseeds::%location of event-block%}:
drop 1 brown glass block named "&6Magical Seeds" at location of event-block
delete {magicalseeds::%location of event-block%}
send "&3Sky&bFarmers &8- &6Seed mined!"
o