Item generator Skript

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

Kerix

Member
Nov 6, 2022
2
0
1
14
A command that creates and deletes Item generators

Ex:

/gen place {name} {block} {item} {delay (seconds)}
/gen delete {name}
/gen modify {name} {option (block ; item ; delay)}


The name part is for the gen's ID and being able to recognise it
The block part is for the block that it spawns on top of (placed in the feet of the player that executes the command)
The item part is the item that gets spawned on top of the block
The delay part is pretty self explanatory just the delay of each item spawning
The delete part just deletes it gen with that ID
The modify part changes one of the options of the given Gen ID ( NOTE: it can change the NBT if the item option is selected)

Thanks for the help guys
 
Hey! So i can do the gen skript but without those cmds its based on functions decently easy to edit in console if you want it lmk :emoji_slight_smile:
 
Hey! So i can do the gen skript but without those cmds its based on functions decently easy to edit in console if you want it lmk :emoji_slight_smile:

Can u explain it to me in dms?

And ye I want it
[doublepost=1668194909,1668017370][/doublepost]my username NotKerix#1881
 
OMg are you a server owner or why r u typing in that way? or are you just bored and got too much time
It doesn't matter all that much, I just don't see why I should talk without grammar.
[doublepost=1668359727,1668355011][/doublepost]
Code:
options:
    p: &aGens &8» &f

command gen <text> <itemtype> [<timespan>]:
    trigger:
        if player has permission "gens":
            if arg-1 is "place":
                play sound "ENTITY_EXPERIENCE_ORB_PICKUP" with pitch 2 to player
                send "{@p}Placed gen at your location" to player
                set {_item} to player's tool
                set block at player's location to arg-2
                wait 1 tick
                set {_block} to block at player's location
                while block at {_block} is arg-2:
                    drop 1 of {_item} above {_block}
                    wait arg-3
                send "{@p}Gen has been deleted." to player
I came up with this instead. Hope you like it!
 
  • Like
Reactions: Pierrelasse