command /customenchant <enchantment> <integer>:
trigger:
set {_enchanttype} to "%arg-1%" parsed as enchantment
set {_help} to "%arg-1%"
if "%{_help}%" is "sharpness":
set {_enchant} to "%arg-1% %arg-2%" parsed as enchantment type
make console execute command "/enchant %player% %{_enchant}%"
is my code rn which is cool and all but its not what i want, i want it so before it runs the last line (enchant line) it removes the %{_enchant}% enchantment from the item bcuz with /enchant command you cant enchant an item with lets say sharpness 5 if it has sharpness 3
trigger:
set {_enchanttype} to "%arg-1%" parsed as enchantment
set {_help} to "%arg-1%"
if "%{_help}%" is "sharpness":
set {_enchant} to "%arg-1% %arg-2%" parsed as enchantment type
make console execute command "/enchant %player% %{_enchant}%"
is my code rn which is cool and all but its not what i want, i want it so before it runs the last line (enchant line) it removes the %{_enchant}% enchantment from the item bcuz with /enchant command you cant enchant an item with lets say sharpness 5 if it has sharpness 3