Jump to content
  • 0

how do you make a command that spawns items in skript?


Wesley_Dude_Bro

Question

2 answers to this question

Recommended Posts

  • 0
If you want to give a player a set item using a command 

command /test:
    Trigger:
        Send "Success"
        Give player 1 diamond sword

If you want to give a player whatever you want

command /give [<player>] [<item>] [<number>]:
    trigger:
        if arg-3 is higher than 64:
            send "&4&lVelvetSurv>> &cYou cannot give yourself more then 64 of an item!" to player
        else:
            give arg-3 of arg-2 to arg-1
            send "&2&lVelvetSurv>> &aYou have given yourself &a%arg-3% &a%arg-2% &ato &a%arg-1%&a!" to player

 
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...