Making Mob spawn with random equipment

Started by davtov on

Topic category: Help with modding (Java Edition)

Last seen on 13:39, 3. Jan 2023
Joined Dec 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Making Mob spawn with random equipment

I want my mob to spawn with random equipment, so for example, a random helmet from my mod and a random sword, stuff like that. Any idea how to solve this?

Last seen on 13:39, 3. Jan 2023
Joined Dec 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I solved it.  Make a loot…
Sun, 05/31/2020 - 01:54

I solved it. 

Make a loot table, and to "Loot table registry name: " type:

"entities/(the name of the element of your entity)"

 

set "Loot Table Type" to "Entity" and add a loot table pool. Then add the desired items, and set their weight, which is ratio, not percentage. 

Last seen on 11:20, 27. Sep 2020
Joined Sep 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
you know how to make a…
Thu, 09/24/2020 - 09:50

you know how to make a custom mob spawn with a item in main hand? (for example: gold_sword) with the procedure: set item in main-hand of event/target entity

Can you help me? im making a mod and i cant make this function work

Last seen on 16:24, 20. Nov 2020
Joined Jun 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Drum for that you will need…
Sun, 09/27/2020 - 18:59

Drum for that you will need to create custom models for each of the custom entities (that's only if they don't use any of the default models that can already use visible armor and weapons).

Last seen on 16:57, 27. Mar 2024
Joined Nov 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
This doesn't work for me…
Mon, 01/16/2023 - 09:42

This doesn't work for me. Maybe they changed it in an update?