making mushroom help!

Started by TheOddMJ on

Topic category: Help with modding (Java Edition)

Last seen on 12:48, 15. Dec 2020
Joined Sep 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
making mushroom help!

I'm making a new mushroom. but I want to make it to be able to eat it and be placed or spawns only on the natural blocks.(for example, stones and grasses)

Which mod element should is use to make this mushroom? Is Plant or Block or Food? Please help!!

 

Last seen on 19:59, 3. Oct 2023
Joined May 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You should make two elements…
Wed, 10/28/2020 - 01:04

You should make two elements, a plant and a food. Make sure the plant variant A) does not appear in creative inventory and B) Drops the food version. For the food version you are going to need to attach a procedure which detects the block you right click. If it is a natural block, it should remove one mushroom from your inventory and place the plant block. If else, then it does nothing. Hope this helps!