How to Make All Blocks and Entities Drop a Certain Item

Started by AcaiBerii on

Topic category: Help with Minecraft modding (Java Edition)

Joined Aug 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to Make All Blocks and Entities Drop a Certain Item

Hello!

I'm creating a mod for Java Edition to replace drops of all blocks and entities.

How can I write a procedure to test if a block is broken and replace the drop with a custom item I made?

 

Thank you!

Joined Jun 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You can use loot tables for…
Fri, 09/04/2020 - 23:16

You can use loot tables for this. Just override each block with a new loot table, and have it drop whatever you'd like.

Joined Aug 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
thank you!
Sun, 09/06/2020 - 01:14

thank you!