Started by
davtov
on
Topic category: Help with Minecraft modding (Java Edition)
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?
Topic category: Help with Minecraft modding (Java Edition)
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?
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.
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
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).
This doesn't work for me. Maybe they changed it in an update?