How to Make All Blocks and Entities Drop a Certain Item

Started by AcaiBerii on Fri, 09/04/2020 - 20:12

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:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How to Make All Blocks and Entities Drop a Certain Item
Fri, 09/04/2020 - 20:12

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 21:59, 15. Jun 2021
Joined Jun 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
thank you!
Sun, 09/06/2020 - 01:14

thank you!