Help?

  • 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
25
Hello, so i have this variable, and i want to give a playe a diamond sword with the enchants, (variables)
CODE:
Code:
give 1 diamond sword of sharpness {Sharp::%uuid of player%} and unbreaking {Unb.Sword::%uuid of player%} to the player
And it gives me this error:
Code:
29.09 22:29:09 [Server] ERROR '::%uuid of player%} and unbreaking {Unb.Sword::%uuid of player%}' is not a valid item data (Kit.sk, line 35: give 1 diamond sword of sharpness {Sharp::%uuid of player%} and unbreaking {Unb.Sword::%uuid of player%} to the player') 29.09 22:29:09 [Server] INFO Encountered 1 error while reloading Kit.sk!
 
You can't use variables there, you need to stringify it and parse as a enchantment type
 
should be easy to understand


code_language.skript:
set {_b} to "Sharpness %{lel}%" parsed as enchantment
I have done this:
Code:
Set {_S} to "Sharpness %{Sharp::%uuid of player%}%" parsed as enchantment
But how do i give a player this sword, with the enchantments?
 
should be easy to understand


code_language.skript:
set {_b} to "Sharpness %{lel}%" parsed as enchantment
It probably wasn't clear but the type is literally "enchantment type", the type "enchantment" is for just the name, e.g. "Sharpness" but "enchantment type" includes things like "sharpness 1"
 
It probably wasn't clear but the type is literally "enchantment type", the type "enchantment" is for just the name, e.g. "Sharpness" but "enchantment type" includes things like "sharpness 1"
Code:
Command /Test6:
    Trigger:
        Set {_S} to "Sharpness %{Sharp::%uuid of player%}%" parsed as enchantment type
        Give 1 diamond sword of {_S} to the player
This dosen't seem to work, can you please say what i should do
 
Status
Not open for further replies.