How to Make All Blocks and Entities Drop a Certain Item

Started by AcaiBerii on

Topic category: Help with modding (Java Edition)

Last seen on 02:02, 25. Dec 2020
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!

Last seen on 18:54, 23. Aug 2023
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.

Last seen on 02:02, 25. Dec 2020
Joined Aug 2020
Points:

User statistics:

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

thank you!