How to made a non edible object edible?

Started by Peridot The Be… on

Topic category: Help with MCreator software

Last seen on 18:44, 23. Jan 2021
Joined Mar 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to made a non edible object edible?

I'm making a flower mod, and i want to include the poisonous buttercups. I want to poison the player if they eat the buttercup, but i labelled the flower as a plant and i cant figure out how to make it able to be eaten. Any help?

Last seen on 22:15, 25. Jul 2022
Joined Jan 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
What I would is: I would…
Sun, 01/24/2021 - 21:00

What I would is:
I would first make the flower a food. Then I would make the same flower again, same texture, but as a plant. Then you can make the plant non-renewable. Make it so it wont drop itself, but instead drop the food flower. Then make a procedure that detects when you right-click on a block, and check if that block is a grass block, dirt block etc. If it is one of those, you can place the plant version of your flower.

If you have any questions you can add me on discord. 

L1me#5436