Solved Enchants

  • 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.
Jul 29, 2019
4
0
0
25
Hello, how to give players enchanted items more than lvl 10?

Code:
command /test <player>:
    trigger:
        give 1 diamond leggins of protection 10 to arg 1

If I use this code appears an error:

Code:
'protection 10' is not an item stack (Enchants.sk, line 3: give 1 diamond leggins of protection 10 to arg 1')

How can I give that item?
 
Hello, how to give players enchanted items more than lvl 10?

Code:
command /test <player>:
    trigger:
        give 1 diamond leggins of protection 10 to arg 1

If I use this code appears an error:

Code:
'protection 10' is not an item stack (Enchants.sk, line 3: give 1 diamond leggins of protection 10 to arg 1')

How can I give that item?
Use this:
code_language.skript:
command /test <player>:
    trigger:
        set {_d.leggings} to diamond leggings
        enchant {_d.leggings} with protection 10
        give 1 of {_d.leggings} to arg 1
 
Use this:
code_language.skript:
command /test <player>:
    trigger:
        set {_d.leggings} to diamond leggings
        enchant {_d.leggings} with protection 10
        give 1 of {_d.leggings} to arg 1
Thanks, with the protection 10 works but if I try with protection 12 the item is still with protection 10 on give.
 
Status
Not open for further replies.