Hi, so what I'm trying to do is to add in the lore the statistics of the weapon (Attack Damage and Attack Speed), and I want to make so that the attack damage value, for example, updates itself when a sharpness enchantment gets added, or when the sharpness level increases.
Therefore what I have been trying to do in this scenario, is to replace the previous line containing "Attack Damage" with the new one that contains the actual amount of damage that the weapon can now deal.
Here is what I have been trying to do:
https://pastebin.com/yeAdJQSN
What I noticed is that even if the variable known as {_checkDamage} contains a number, when I do "set line {_checkDamage} of lore of player's tool to... " it won't change that specific line
Could you give me any advise on how I should get this done?
Therefore what I have been trying to do in this scenario, is to replace the previous line containing "Attack Damage" with the new one that contains the actual amount of damage that the weapon can now deal.
Here is what I have been trying to do:
https://pastebin.com/yeAdJQSN
What I noticed is that even if the variable known as {_checkDamage} contains a number, when I do "set line {_checkDamage} of lore of player's tool to... " it won't change that specific line
Could you give me any advise on how I should get this done?