I am working on a complement project and I am not sure what event to hear.
I have tried these events with some success:
paste-bin Main: https://pastebin.com/2DRtVCXp
Listen to the player: https://pastebin.com/83pfdGtq
Objective: create a reward chest add-on.
Function: The player uses a special key (tripwire_hook) with a unique name like "ChristmasKey". If the player right-clicks on ChristmasKeyCrate (white_shulker_box) with the Christmas key, a random item will be granted.
My fight: How do I know what class to use?
How do I get the names of the articles?