i have a skript that sets the lore of armor when you have a custom enchant book in your offhand but every time i do it and the armor has enchantments on it they're no longer shown. they still work, but i want them to be visible. whenever I use a command in game to set the lore it gets put after the enchantments, but every time i use the skripted custom enchant book it just replaces them.
on rightclick:
if player is holding armor:
if player is holding enchanted book with lore "<##ae003b>Berserker's Fury" in offhand:
if line 1 of lore of player's tool is not set:
cancel event
set off hand item to air
set {_item} to player's tool
set player's tool to shiny {_item}
set line 1 of lore of player's tool to colored "<##ae003b>Berserker's Fury"
play sound "block.anvil.use" at player
on rightclick:
if player is holding armor:
if player is holding enchanted book with lore "<##ae003b>Berserker's Fury" in offhand:
if line 1 of lore of player's tool is not set:
cancel event
set off hand item to air
set {_item} to player's tool
set player's tool to shiny {_item}
set line 1 of lore of player's tool to colored "<##ae003b>Berserker's Fury"
play sound "block.anvil.use" at player