Custom Mob Loot Tables

Started by gegb1912 on Thu, 06/04/2020 - 19:56

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:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Custom Mob Loot Tables
Thu, 06/04/2020 - 19:56

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:
  • Tracker tickets:
  • 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:
  • Tracker tickets:
  • 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:
  • Tracker tickets:
  • 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:
  • Tracker tickets:
  • 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:
  • Tracker tickets:
  • 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 16:36, 7. Jun 2021
Joined Mar 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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:
  • Tracker tickets:
  • 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:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
I *had the same problem*
Mon, 07/20/2020 - 06:15

I *had the same problem*

Last seen on 02:08, 23. Mar 2021
Joined Sep 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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)