How do i make random armour for biped models?

Started by InfernoEverflame on

Topic category: Help with Minecraft modding (Java Edition)

Joined Aug 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do i make random armour for biped models?

is it really difficult or am i just an idiot? otherwise, please help me.

Joined Aug 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Hi, i don't know if you have…
Tue, 09/01/2020 - 09:01

Hi, i don't know if you have find the way to do it but for those who wonder how to make biped with random armor equip, here's how i have done it just yesterday for my mod.

1. Create entity with biped model.
2. Create a procedure like this : https://ibb.co/fQyrZJF
It's easy to understand how the procedure work. It set an armor piece to the right slot with a random chance.

slot 0 : main hand
slot 1 : off-hand
slot 2 : boots
slot 3 : legging
slot 4 : chestplate
slot 5 : helmet

3. Add the procedure to the trigger On initial entity spawn of the entity previously created.

It's not exactly what you ask for but i'm sure you can modify the if statement at your will to make it work the way you want. A thing to notice is that the slots number of the armor and hands are not the same as the player's one.

English is not my first language, sorry if there's mistakes here and there.