Hi, there how can you make a custom item that does something on right click and being consumed
items:
predicate-item:
item:
material: STICK
usage:
- predicate: [button] right
commands:
- '[console] msg %player% You have activated an item'
- '[console] effect %player% effect give %player% minecraft:speed 120 1' # gives speed 2 for 2 minutes
consume: 1 # consumes the item
Also I suggest you to join my discord server where I can give you appropriate support:
https://discord.gg/ksXEuxCqdC
Also I have wiki that covers this topic with examples:
https://github.com/ValeraShimchuck/SimpleItemGenerator/wiki/Configuration#consumption