So I have this server that I work on, that basically has different jobs. One of them is going to be a janitor, which will have an area to work, they will clean up dirt, which will just be a dropped item. I have set the coords I want the drops to spawn at, but I want to be able to activate the skript and deactivate the skript with a command, and it will stop the spawn loop, I only seen commands that would just spawn the dirt at the area once, and not loop. so when I type /dirt, it will make the spawners start, but when I do it again, they stop. I am very new to skript, I hope this makes sense. It is also 1.17.1. I am just wondering if someone has a skript that does this, or if someone can fix mine, and send the fixed one here
[doublepost=1671581886,1671399189][/doublepost]Can someone please reply?
Code:
command /dirt:
trigger:
every 2 minutes in "world":
drop 1 dirt at location(4352.5,97,4137.5, world "world") without velocity
drop 1 dirt at location(4352.5,97,4131.5, world "world") without velocity
drop 1 dirt at location(4357.5,97,4131.5, world "world") without velocity
drop 1 dirt at location(4357.5,97,4137.5, world "world") without velocity
drop 1 dirt at location(4372.5,97,4137.5, world "world") without velocity
drop 1 dirt at location(4372.5,97,4131.5, world "world") without velocity
drop 1 dirt at location(4377.5,97,4131.5, world "world") without velocity
drop 1 dirt at location(4377.5,97,4137.5, world "world") without velocity