I'm trying to replace an item in my custom GUI, this is what I have for the world event.
type: world
events:
after player clicks damage_indicator_off_item in server_menu:
- ratelimit <player> 5t
- narrate <context.slot>
- playsound sound:block.note_block.pling <player> pitch:2
- inventory set slot:<context.slot> o:<item[damage_indicator_on_item]>
- stop
Specifying d: (destination) doesn't help.