Custom Drops from Vanilla Mobs

Started by MamaLuigi on

Topic category: Help with Minecraft modding (Java Edition)

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!

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?

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

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