Hello
I am trying to get the enchant level of an enchant of the player's item
I tried `enchantment level of efficiency on player's tool` and it doesn't seem to work, it just broke on me after a while. I will not be updating Skript if that is what you are going to tell me to do (Skript 2.2 fixes v8)
Ive downgraded for certain reasons and do not want to re-upgrade.
It used to work on that same version but it gave up on me
I am trying to get the enchant level of an enchant of the player's item
I tried `enchantment level of efficiency on player's tool` and it doesn't seem to work, it just broke on me after a while. I will not be updating Skript if that is what you are going to tell me to do (Skript 2.2 fixes v8)
Ive downgraded for certain reasons and do not want to re-upgrade.
It used to work on that same version but it gave up on me
Code:
command /enchant:
trigger:
set {_n} to item amount of player's tool ## doesnt work anymore - would like to know why
if {_n} is 1:
command /enchantunbreaking2:
trigger:
if player's tool is a sword:
if {tokens::%player's uuid%} >= 50:
set {_lvl} to "%enchant level of unbreaking of player's tool%" parsed as a number
add 50 to {_lvl}
if {_lvl} < 1001:
enchant player's tool with "unbreaking %{_lvl}%" parsed as enchantment type