Solved Give player a item

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

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

TigerPvPzzz

Active Member
Feb 24, 2017
109
2
0
26
Hey there

This dosen't really work that great... I'm trying to give a player / my self a diamond sword with enchant sharpness (variable) but i dosen't seem to work... Anyone?

CODE:
Code:
Command /Dickpic:                     #Sorry for the command name, just a test
    Trigger:
        Send "Succes"
        Set {_Sharp} to {Sharp::%uuid of player%} parsed as integer
        Give player 1 diamond sword of Sharpness {_Sharp}
[doublepost=1508346661,1508334882][/doublepost]@Donut can you help?
 
I already have a command named "test" :emoji_stuck_out_tongue:
[doublepost=1508350140,1508349947][/doublepost]Donut. I'm a bit stupid i think. but i can't enchant the sword with the enchants. i want to give the player a sword with the enchants. Not just enchant the sword, if you understand
[doublepost=1508351241][/doublepost]Nevermind - I got it to work. - thanks
 
I think got it :emoji_slight_smile:

code_language.skript:
command /test
    trigger
        send "&aSuccesfully."
        set {_test} to random integer between 1 and 5
        give diamond sword named "&aTypical Sword." of sharpness {_test} to player
 
I think got it :emoji_slight_smile:

code_language.skript:
command /test[/B]
[B]    trigger[/B]
[B]        send "&aSuccesfully."[/B]
[B]        set {_test} to random integer between 1 and 5[/B]
[B]        give diamond sword named "&aTypical Sword." of sharpness {_test} to player
Hey thanks for trynna help me out, but i found another method :emoji_stuck_out_tongue:
 
The proper way to do this is
code_language.skript:
give diamond sword of ("sharpness %{_sharp}%" parsed as an enchantment type) to player
 
Status
Not open for further replies.