Custom Mob Loot Tables

Started by gegb1912 on

Topic category: Help with modding (Java Edition)

Last seen on 23:32, 2. Oct 2020
Joined May 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Custom Mob Loot Tables

Hello!  I was wondering if it was possible to have custom mobs have custom loot table drops.  I have seen many videos on youtube and such showing how to make the vanilla mobs have custom drops, but not custom mobs.  Is it possible to do this?  Sorry if I am being completely stupid and missing something very obvious.

 

Thank you!

Last seen on 04:35, 17. Jan 2021
Joined Sep 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Yes, loot tables. Do you…
Fri, 06/05/2020 - 01:15

Yes, loot tables. Do you need a tutorial? Check the MCreator wiki.

Last seen on 23:32, 2. Oct 2020
Joined May 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
With all due respect, that's…
Fri, 06/05/2020 - 02:37

With all due respect, that's not what I mean.  I know how to make loot tables, and I know how they work, but what I am asking is how do I making it so that a custom loot table is applied to a custom mob.  Basically I want to make a mob that drops more than one thing, and also doesn't drop those things 100% of the time.

Last seen on 04:35, 17. Jan 2021
Joined Sep 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
With all do respect, that's…
Fri, 06/05/2020 - 02:51

With all do respect, that's what loot tables do. Loot tables allow you to randomize loot drops. I believe there is a generator online.

Last seen on 23:32, 2. Oct 2020
Joined May 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I don't think you really get…
Fri, 06/05/2020 - 03:26

I don't think you really get what I mean here.  I completely understand how loot tables work, and that's not what I need help with.  What I do need help with is making it so that mobs drop that loot table.  To my knowledge, the only mob drop capabilities that MCreator has is the "Base Mob Drop" setting that shows up when creating a living entity.  I want to make it so that the living entity can have more than one drop, but there doesn't seem to be a way to assign a custom mob, or "living entity" to a loot table when killed.

 

Take zombies, from vanilla Minecraft, for example.  They mainly drop rotten flesh, which could be said as they're "main drop".  However, they also drop potatoes, poisonous potatoes, and iron.  The drops that I just listed (that arent rotten flesh) don't always drop from killing a zombie.  In Minecraft, those drop chances and items are stored in a loot table.  I want to know how to do that, except with my own mobs, items, and drop chances.

Last seen on 04:35, 17. Jan 2021
Joined Sep 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Create a json file…
Fri, 06/05/2020 - 03:28

Create a json file containing the loot table. And name that to your mobs registry name. There isn't much to it. Loot tables are fully customizable.

Last seen on 02:50, 28. Mar 2024
Joined Mar 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You can make a global…
Fri, 06/05/2020 - 03:49

You can make a global procedure When mob dies

 

a detect system to be sure if that mob is your custom mob and Drop gem with a probability. ins't too random but until you learn more you can do that

 

 

Sorry for bad english ins't my native language

Last seen on 10:03, 8. Sep 2020
Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
i was same problem and i…
Mon, 07/20/2020 - 06:14

i was same problem and i finally figured it out,

 

So, first: create your mob. And remember exactly what its registry name is. EXACTLY.

 

Then when you're done, make a new loot table. Now in the first text box, "Loot Table Registry Name", erase your registry name. Then type in "entities/YOUR MOB'S REGISTRY NAME". Then select Mod, then Entity, then fill out the table. Save and boom,

Last seen on 10:03, 8. Sep 2020
Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I *had the same problem*
Mon, 07/20/2020 - 06:15

I *had the same problem*

Last seen on 02:58, 24. May 2022
Joined Sep 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
And if you've already…
Fri, 03/05/2021 - 01:26

And if you've already created an entity and don't wanna start from scratch, just take the name in the workspace (e.g BabyDragon from my mod) and turn it into what a registry name should be by turning all the letters lower case and placing an underscore between each word (e.g baby_dragon)

Last seen on 16:44, 16. Apr 2023
Joined Jul 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
But what if you have an all…
Sat, 02/19/2022 - 15:16

But what if you have an all-caps mob? How do you set that up?

Last seen on 02:58, 24. May 2022
Joined Sep 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
With the registry name, it…
Mon, 05/02/2022 - 22:04

With the registry name, it can't be uppercase at all.

When naming a mob "EntityName" would be "entity_name", and if you're not sure it'll work just right-click your mod element and select "Edit mod element IDs..." then copy the text that shows up there.

Last seen on 15:44, 19. May 2023
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I did the registry name and…
Sat, 05/07/2022 - 05:56

I did the registry name and stuff but it didn't work, I think it has something to do with the minimum rolls is it the weight or like the chance of the lootable spawning? i had it at 1 min.rolls and 1.max rolls

Last seen on 15:44, 19. May 2023
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
actually i just figured it…
Sat, 05/07/2022 - 06:21

actually i just figured it out i had just one item with 100%  chance of spawning the other ones didn't spawn and I didn't see the item with100% chance to spawn cuzi picked it up as soon as I killed the entity, lol!!!!