Hi! The script I am writing is supposed to give the player 1 stick and 2 iron ingots, each 3 items with 50 second intervals inbetween. The only problem is, I only want this to occur in the world "pvp". I used a loop so it would save a lot of space, but I can't seem to stop the loop. I have also tried "exit 1 loop", "exit 2 loops" but with no success. Also, is there any better way to write this? I am very new to skript so I may not completely understand what may seem simple.
[doublepost=1597766877,1597669927][/doublepost]Bumping
[doublepost=1597843084][/doublepost]Bumping, again
Code:
on player world change:
if player is in the world "pvp":
loop 1000 times:
wait 50 seconds
make console execute "give %player% stick 1"
wait 50 seconds
make console execute "give %player% iron_ingot 1"
wait 50 seconds
make console execute "give %player% iron_ingot 1"
if the player is not in the world "pvp":
exit 1000 loops
[doublepost=1597843084][/doublepost]Bumping, again