Skript Version: 2.2-dev25
Minecraft Version: 1.8
Skript Addons: TuSKe, SkRayFall, SkQuery
I want to remove specific enchantments on an item whilst keeping the rest.
Methods I have tried:
gives me the error:
I've tried
gives me the error:
I've tried using a function I found in this thread https://forums.skunity.com/threads/removing-specific-enchantment.3979/ (with corrected indents):
I would really appreciate your help.
Thanks,
Minecraft Version: 1.8
Skript Addons: TuSKe, SkRayFall, SkQuery
I want to remove specific enchantments on an item whilst keeping the rest.
Methods I have tried:
code_language.skript:
disenchant sharpness from player's tool
I've tried
code_language.skript:
remove sharpness from player's tool
I've tried using a function I found in this thread https://forums.skunity.com/threads/removing-specific-enchantment.3979/ (with corrected indents):
code_language.skript:
function removeEnch(i: item, e: enchantment):
loop enchantments of {_i}:
add "%loop-value% %level of loop-value of {_i}%" parsed as an enchantment type to {_e::*}
disenchant {_i}
#Only the part of the function which gives me the error
I would really appreciate your help.
Thanks,