Food Item mod element needs "when right click on block" trigger!

Started by TheOddMJ on Tue, 10/27/2020 - 02:23

Topic category: Feature requests and ideas for MCreator

Last seen on 15:38, 24. Nov 2020
Joined Sep 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Food Item mod element needs "when right click on block" trigger!
Fri, 10/30/2020 - 01:54 (edited)

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
Last seen on 16:59, 22. Nov 2020
Joined May 2014
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
For now, you can just use…
Tue, 10/27/2020 - 03:25

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. 

Last seen on 19:31, 25. Nov 2020
Joined Apr 2010
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Or you could use global…
Tue, 10/27/2020 - 08:39

Or you could use global trigger item right clicks block and check if item is food

Last seen on 15:38, 24. Nov 2020
Joined Sep 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
where is "if the player is…
Tue, 10/27/2020 - 17:33

where is "if the player is looking at a block"? I can't find it.

Last seen on 15:38, 24. Nov 2020
Joined Sep 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
I can't find "if item is…
Tue, 10/27/2020 - 17:35

I can't find "if item is food". too

Last seen on 19:31, 25. Nov 2020
Joined Apr 2010
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
No need to check for player…
Tue, 10/27/2020 - 20:22

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

Last seen on 11:11, 30. Oct 2020
Joined Sep 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
where is "if the player is…
Wed, 10/28/2020 - 05:16

where is "if the player is looking at a block"? I can't find it.

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. 

Last seen on 16:59, 22. Nov 2020
Joined May 2014
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Interesting, I didn't think…
Thu, 10/29/2020 - 04:02

Interesting, I didn't think to use global triggers. I might actually use this for a few things is my own mod as well

Last seen on 15:38, 24. Nov 2020
Joined Sep 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
I solved this problem by…
Fri, 10/30/2020 - 01:53

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