Hello, i have a small problem ive been stuck on for a long time now. Im making a custom enchantment plugin, and i have the enchantments working. But when i add a lore to my pickaxe, and then add earthquake, it deletes all the other lores. Im not 100% sure why its doing this and im not 100% sure how to fix it.
This is earthquake lore
Explosive lore
This is earthquake lore
Code:
command /earthexpick:
trigger:
if {earthquake::buy::%player%} is more than 49:
set {earthquake::buy::%player%} to 49
send "&c(&4!&c) &7You are at the max level!"
if player's balance is more than or equal to 100000000:
remove 100000000 from player's balance
add 1 to {earthquake::buy::%player%}
set {_lores::*} to lore of player's held item
set {_earthquake::*} to "&eEarthquake %{earthquake::buy::%player%}%"
loop {_earthquake::*}:
set line {_lores}+ loop-index parsed as integer of lore of player's tool to loop-value
enchanter(player)
else:
send "&c(&4!&c) &7Sorry, but you don't have enough money!"
Explosive lore
Code:
command /tntexpick:
trigger:
if player's balance is more than or equal to 100000000:
remove 100000000 from player's balance
add 1 to {explosives::buy::%player%}
set {_lore::*} to lore of player's held item
set {_explosive::*} to "&cExplosive %{explosives::buy::%player%}%"
loop {_explosive::*}:
set line {_lore}+ loop-index parsed as integer of lore of player's tool to loop-value
add 1 to {explosive::buy::%player%}
enchanter(player)
else:
send "&c(&4!&c) &7Sorry, but you don't have enough money!"