Making blocks Edible

Started by ByDeniz0 on

Topic category: Help with MCreator software

Active 2 years ago
Joined Aug 2021
Points:
491

User statistics:

  • Modifications: 0
  • Forum topics: 4
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 0
Making blocks Edible

There was a mod that made all the blocks in the game edible, I want to make a mod like that. How do I make all the blocks in the game edible

Active 10 months ago
Joined Mar 2022
Points:
385

User statistics:

  • Modifications: 0
  • Forum topics: 2
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 15
I dont think thats possible…
Sun, 05/29/2022 - 00:30

I dont think thats possible sorry :/

Active 2 years ago
Joined Mar 2021
Points:
641

User statistics:

  • Modifications: 0
  • Forum topics: 4
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 190
its possible but practically…
Mon, 05/30/2022 - 17:24

its possible but practically is impossible unless you add custom code and understand what you are doing and you have to extend the block structure type in minecraft a very annoying task indeed or you could do the other just as insane option and change every block manually

Active 1 week ago
Joined Feb 2024
Points:
72

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 8
If you mean edible like…
Mon, 04/15/2024 - 15:19

If you mean edible like normal food you can make an item for all the blocks and then change the loot tables for the blocks to drop your item instead of the normal one. This is a huge undertaking though

Active 4 hours ago
Joined Apr 2023
Points:
448

User statistics:

  • Modifications: 1
  • Forum topics: 16
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 383
Another possibility could be…
Mon, 04/15/2024 - 16:12

Another possibility could be to use the global trigger player right-clicks on block

Then have in if block that checks if the player is not sneaking, player hunger is not at full, and the provided world is not client side(to avoid ghost blocks)

Inside the if block, have the block at the provided location get destroyed, and add food to the player, possibly even play a sound if you want.

You could also further customize the if block by adding tag or hardness requirements, or by making sure it is not bedrock.

If somebody reads this and needs more clarification, just search the forums for all of the procedure things, every procedure block needed is explained somewhere on the MCreator forums.

One final note, I will not post an image of the procedure.