How do I attach a custom loot table to a custom mob?

Started by Harry_Da_Boss on

Topic category: Help with MCreator software

Joined May 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do I attach a custom loot table to a custom mob?

How do I attach a custom loot table to a custom mob?

I've made a custom item and a custom mob, and they both work great. However, I can't seem to figure out how to make the mob drop variable amounts of the item(and maybe other items), i.e. how to attach a loot table. I've tried making the loot table registry name match the mob's, but it still doesn't work.

Please help ASAP.

Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I've tried making the loot…
Tue, 07/07/2020 - 18:10

I've tried making the loot table registry name match the mob's, but it still doesn't work.

Actually it should work. Just name your loottable "entities/ENTITY_NAME" for mobs or "blocks/BLOCK_NAME" for blocks. And set the namespace to mod.

Joined May 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Oh ok! I didn't realize I…
Tue, 07/07/2020 - 19:51

Oh ok! I didn't realize I had to add "entities/" in front of the mod name.

Thanks!