I am trying to make it so that clicking on an item in the inventory with another certain item modifies the former's lore. So far I'm able to detect the click and modify the ItemTag correctly but the item refuses to be modified. Here is my code, I've tried both adjust and inventory set, the idea is to change the item clicked to go from Ammo: 0 to Ammo: # where # is the number of items in the cursor when the item was clicked:
https://paste.denizenscript.com/View/128144
(P.S; I did also just notice I used adjust wrong, but when I print <context.inventory.slot[<context.raw_slot>]> or <context.inventory.slot[<context.slot>]> both return AIR anyways
Content of Denizen Script Paste #128144: Snow Cannon... pasted 2024/11/14 09:34:23 UTC-08:00, Paste length: 993 characters across 24 lines, Content: SnowCannon: type: item