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

Started by TheOddMJ on

Topic category: Feature requests and ideas for MCreator

Joined Sep 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • 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
Joined May 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • 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. 

Joined Sep 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • 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.

Joined Sep 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • 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

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

Joined Sep 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • 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. 

Joined May 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • 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