making mushroom help!

Started by TheOddMJ on Mon, 10/26/2020 - 03:20

Topic category: Help with modding (Java Edition)

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:
making mushroom help!
Mon, 10/26/2020 - 03:20

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 21:44, 22. Nov 2020
Joined May 2018
User points:

User statistics:

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