Custom Drops from Vanilla Mobs

Started by MamaLuigi on

Topic category: Help with modding (Java Edition)

Last seen on 15:00, 24. Jul 2024
Joined Sep 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Custom Drops from Vanilla Mobs

I want to make it so when you kill a Villager, it will drop 1-3 Emeralds, (from vanilla Minecraft), and a 50% chance to drop 1-2 Mystery Meat, (from my mod).

 

I would probably have to use loot tables for this, so could someone help me figure this out?

 

Any help would be greatly appreciated!

Last seen on 15:00, 24. Jul 2024
Joined Sep 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
would it be possible to do…
Mon, 11/20/2023 - 22:01

would it be possible to do it without loot tables, but maybe with procedures instead?

Last seen on 15:00, 24. Jul 2024
Joined Sep 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
actually, i just figured it…
Mon, 11/20/2023 - 22:01

actually, i just figured it out

Last seen on 15:00, 24. Jul 2024
Joined Sep 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
you just make a procedure…
Mon, 11/20/2023 - 22:02

you just make a procedure that runs when a mob dies, and i would just check if the mod was a villager, and then spawn the items if it was