I want the lore of an item to change, after you right click certain items in an inventory whilst the special item is in your cursor (so NOT hovering over the special item, you have picked it up, in the inventory gui, to right click another item with it). I have everything else setup but I cannot figure out how to edit the lore of the item on the cursor.
Code so far:
on player RIGHT clicks with:special_item in inventory:
- ...conditions, definitions etc...
- define special_item:<context.cursor_item>
# Various attempt at adjusting the lore of the cursor item:
# 1:
- adjust <context.cursor_item> lore:<list[test]>
# 2:
- adjust <[special_item]> lore:<list[test]>
# 3:
- adjust <context.cursor_item> lore:<list[test]>
- adjust <player> item_on_cursor:<context.cursor_item>
# 4:
- adjust <[special_item]> lore:<list[test]>
- adjust <player> item_on_cursor:<[special_item]>
# 5:
- inventory adjust slot:cursor lore:<list[a|b]> d:<player.inventory>
# 6...
# For attempt 5 I've also tried a bunch of stuff in the "slot" input, such as cursor_item, item_on_cursor, hand etc
But none of them seem to change the actual lore. I'd usually use option 5 if the item is in their hand and that works fine, but i can't find a cursor item reference anywhere for the slot. Any ideas?
Thanks!