1. Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Solved Help with custom commands and loop dropping items

Discussion in 'Skript' started by Plav, Dec 18, 2022.

Thread Status:
Not open for further replies.
  1. Plav

    Plav Member

    Joined:
    Dec 18, 2022
    Messages:
    11
    Likes Received:
    1
    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
    Code (Text):
    1. command /dirt:
    2. trigger:
    3. every 2 minutes in "world":
    4.     drop 1 dirt at location(4352.5,97,4137.5, world "world") without velocity
    5.     drop 1 dirt at location(4352.5,97,4131.5, world "world") without velocity
    6.     drop 1 dirt at location(4357.5,97,4131.5, world "world") without velocity
    7.     drop 1 dirt at location(4357.5,97,4137.5, world "world") without velocity
    8.     drop 1 dirt at location(4372.5,97,4137.5, world "world") without velocity
    9.     drop 1 dirt at location(4372.5,97,4131.5, world "world") without velocity
    10.     drop 1 dirt at location(4377.5,97,4131.5, world "world") without velocity
    11.     drop 1 dirt at location(4377.5,97,4137.5, world "world") without velocity
    --- Double Post Merged, Dec 21, 2022, Original Post Date: Dec 18, 2022 ---
    Can someone please reply?
     

    Attached Files:

    • dust.sk
      File size:
      657 bytes
      Views:
      28
  2. Sabified

    Sabified Member

    Joined:
    Jun 5, 2022
    Messages:
    46
    Likes Received:
    2
    Code (Text):
    1. command /dirt:
    2.     permission: op
    3.     trigger:
    4.         if {dirt.enabled} is true:
    5.             set {dirt.enabled} to false
    6.             send "&cDirt spawner disabled" to player
    7.         else:
    8.             set {dirt.enabled} to true
    9.             send "&aDirt spawner enabled" to player
    10.  
    11. every 2 minutes:
    12.     {dirt.enabled} is true
    13.     # spawn the dirt here
    14.  
    15.  
     
  3. Plav

    Plav Member

    Joined:
    Dec 18, 2022
    Messages:
    11
    Likes Received:
    1
    thank you
     
  4. Sabified

    Sabified Member

    Joined:
    Jun 5, 2022
    Messages:
    46
    Likes Received:
    2
    Add the solved prefix if that was everything :emoji_wink:
     
Thread Status:
Not open for further replies.

Share This Page

Loading...