Hello, I am looking for some way to change the lore of a newly obtained item. What I want is immediately after lifting the item to change a line of lore Try something like this but it doesn't work.
SOLUTION:
Code:
on pickup:
set {_l2::*} to lore of item
loop {_l2::*}:
if loop-value contains "&fCrit chance: &9?":
replace every "&fCrit chance: &9?" in lore of item with "&fCrit chance: &93"
stop
SOLUTION:
Code:
on pickup:
wait 1 tick
loop all items in player's inventory:
set {_l2::*} to lore of loop-item
loop {_l2::*}:
if loop-value-2 contains "new":
replace every "new" in lore of loop-item with "test"
Last edited: