#custom enchant skript error

1 messages · Page 1 of 1 (latest)

robust raft
#

skript ver is 2.8.3 and Minecraft ver is 1.20.1

code is

    if event-item is sword:
        chance of 10%:
            set {_흡혈} to random integer between 1 and 6
            if {_흡혈} is between 1 and 3:
                add "&4흡혈 I" to lore of player's tool
            if {_흡혈} is between 4 and 5:
                add "&4흡혈 II" to lore of player's tool
            if {_흡혈} is 6:
                add "&4흡혈 III" to lore of player's tool

on enchant:
    if event-item is sword:
        chance of 10%:
            set {_독성} to random integer between 1 and 6
            if {_독성} is between 1 and 3:
                add "&2맹독성 I" to lore of player's tool
            if {_독성} is between 4 and 5:
                add "&2맹독성 II" to lore of player's tool
            if {_독성} is 6:
                add "&2맹독성 III" to lore of player's tool

on enchant:
    if event-item is sword:
        chance of 10%:
            set {_피뢰} to random integer between 1 and 6
            if {_피뢰} is between 1 and 3:
                add "&6피뢰침 I" to lore of player's tool
            if {_피뢰} is between 4 and 5:
                add "&6피뢰침 II" to lore of player's tool
            if {_피뢰} is 6:
                add "&6피뢰침 III" to lore of player's tool```

It's loading well,
but when I enchant, the item in my hand, not that item, will have a lore.
tame pecan
#

event-item, not player's tool

robust raft
#

Ok thanks you

#

oh

robust raft
robust raft
#

please help me..

dire igloo
#

maybe theres an expression like result-item

#

otherwise waitatick and use player's cursor slot