Started by
TheOddMJ
on
Topic category: Feature requests and ideas for MCreator
I want to make a food item that is eatable and placeable(not a type of Cake Item/block).
To make like this, I need to use "when right click on block" trigger. But Food Item mod element doesn't have that trigger.
I hope that trigger to be added to Food item mod element in future...
Edited by TheOddMJ on Fri, 10/30/2020 - 01:54
For now, you can just use the "when item right clicked in air" trigger and test if the player is looking at a block. If so, then place the mushroom.
I do agree though that this should be a feature. Berries, Carrots, Potatoes, and Beetroot are good examples of why this is needed.
Or you could use global trigger item right clicks block and check if item is food
where is "if the player is looking at a block"? I can't find it.
I can't find "if item is food". too
No need to check for player looks at, use global trigger item right clicked that will give block location.
I highly suggest you check our tutorials collection playlist on our YouTube channel which contains many examples and tutorials that can help you get started with MCreator: https://www.youtube.com/playlist?list=PLAeL-oIFIEngE6jRgFYeFMfuj8WQsO3Ei
Just combine "Get block at x: y: z:" and "Look x/y/z position of Event/target entity with raytrace distance 100" and it should work.
Interesting, I didn't think to use global triggers. I might actually use this for a few things is my own mod as well
I solved this problem by referring to this video. I hope this video will be helpful to people who are having the same problem as me.
https://www.youtube.com/watch?v=EsooFtUROvQ&t=140s