#(plasmatm) Adjust the lore of the item in your cursor

11 messages · Page 1 of 1 (latest)

dull geode
#

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!

misty patioBOT
#

(plasmatm) Adjust the lore of the item in your cursor

misty patioBOT
#

Hi I'm AutoThreadBot! Don't mind me, I'll just be adding the helper team to this thread so they can see it. A human will get to you soon.

scarlet beacon
#

cursory examinations suggests that the cursor item is not a valid inventory slot, so inventory won't work for it. You'll probably be looking at solution 4 there, basically

#

Guessing based on those 2 lines of code, you were probably actually looking for - adjust def:special_item lore:<list[test]>

#

You cannot adjust an itemtag because it does not refer to a specific thing

#

If you don't understand what i mean, or it's not working for you, let us know

dull geode
thick nebulaBOT
#
Thread Closing Reminder

Has your issue been resolved, or your question been answered?
If so, please use the </resolved:1028673926114594866> command to close your thread.
Or </invalid:1028673926898909185> if it's not possible to resolve.

If not yet resolved, please reply below to tell us what you still need.

(Note that if there is no reply for a few days, this thread will eventually close itself.)

#

@dull geode