Started by
faygeleh
on
Topic category: Help with Minecraft modding (Java Edition)
Hello! The mod im working on is mostly cosmetic, so I've barely had to use any real procedures. I'm struggling to figure this one out. I checked for previous threads and found this one from 4 years ago. When I search for these keywords ("when item is used", "item is used", "used", etc) in the premade procedure templates, nothing came up, so I figure there are new procedure templates that I'm not able to find.
I want "ItemX" to deal 1/2 heart of damage every time you eat it. Is this still possible to do?
Go in the triggers Tab of the item and make a procedure for the "player finished using item" trigger and then in the procedure damage the player
Thank you! Like I mentioned above, im still figuring out how to create/use procedures, so I'm sorry to sound dumb but I could use a little help here - This is what my procedure currently looks like. What tab/keywords do I look for to find "player"? All guides I can find on this have "provided entity" built into the procedure.
In the "Minecraft components" Tab you'll find the "event/target entity" block, your damage block Is used to damage items not entities by the way (there's a damage Tab where you'll find the blocks to damage entities) and last thing, since you connected that procedure to a trigger of an item in it's properties, you don't need to set the global trigger in the procedure
I made a mistake, the block to damage entities is in the "entities procedures data" tab, it's the first one
actions, not data