Open your item procedure in MCreator
Add the procedure trigger for when the item is used
Use the block that removes an item from inventory
Set the item to the same item you want to consume
Set the amount to 1 or the desired number
Make sure the procedure runs on the correct side, usually server side
If needed, check whether the player is in survival mode before removing the item
Save the procedure and test the item in-game
