Spawning items

  • 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 community!

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

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

Dylan Bruner

New Member
Jan 16, 2020
5
0
0
Sorry i don't know how to format,

command /gen [<text>] [<text>] [<text>]:
permission: sk.gen
trigger:
if arg-1 is not set:
send "&a---------------------------------"
send "&b/gen set <name> | creates a gen at your feet"
send "&b/gen item <name> <item>"
send "&b/gen amount <name> <time>"
send "&b/gen delay <name> <time>"
send "&b/gen delete <name>"
send "&a---------------------------------"
if arg-1 is "set":
set {%arg-2%.genloc} to location of player
send "Position: %{%arg-2%.genloc}%"
add arg-2 to {gens::*}
if arg-1 is "item":
set {%arg-2%.genitem} to arg-3
send "Item: %arg-3%"
if arg-1 is "spawnrate" or "spawntime" or "spawndelay" or "delay":
set {%arg-2%.gendelay} to arg-3
send "%{%arg-2%.genitem}% will now spawn every %arg-3% seconds"
if arg-1 is "spawnamount" or "amount":
set {%arg-2%.genamount} to arg-3
send "%{%arg-2%.genamount}% %{%arg-2%.genitem}% will be spawned every %{%arg-2%.gendelay}% seconds"
if arg-1 is "info":
send "Gen: %arg-2%"
send "Position: %{%arg-2%.genloc}%"
send "Item: %{%arg-2%.genitem}%"
send "Delay: %{%arg-2%.gendelay}%"
send "Amount: %{%arg-2%.genamount}%"



every second:

I wan't to gen items every delay length but i can't think of a way to do that without going one by one and saying wait genname delay, is there a way to put it all in one i guess is the correct way to say it
 
Status
Not open for further replies.