so i tried adding custom enchants and i need them at a certain line so
this is what i have now
it says that its not a text and if i swap order it says unknown effect
Code:
command /customenchant [<text>] [<int>]:
permission: admin.enchant
trigger:
if arg-1 is not "sharpness" or "efficiency":
message "&6&lSkyblock items&7: You need to specify the enchant you want!"
if arg-1 is "sharpness":
if arg-2 is not set:
message "&aSet arg-2"
if arg-2 is more than 0:
if arg 2 is more than 5:
message "&cToo high value"
stop
if player's held item is not air:
loop uncolored lore of player's held item:
add 1 to {_count}
if loop-value contains "sharpness":
message "&cYou already have this enchantment!"
stop
set {_math} to {_count} - 3
# set the 1st line of the lore of the player's tool to "whatever"
add "sharpness %arg-2%" at line {_math}th to the lore of player's tool
it says that its not a text and if i swap order it says unknown effect