Making Mob spawn with random equipment

Started by davtov on Sun, 05/31/2020 - 01:30

Topic category: Help with modding (Java Edition)

Last seen on 18:54, 27. Jun 2020
Joined Dec 2019
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Making Mob spawn with random equipment
Sun, 05/31/2020 - 01:30

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 18:54, 27. Jun 2020
Joined Dec 2019
User points:

User statistics:

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

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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 21:03, 23. Oct 2020
Joined Jun 2020
User points:

User statistics:

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