How do i make random armour for biped models?

Started by InfernoEverflame on Mon, 08/31/2020 - 07:11

Topic category: Help with modding (Java Edition)

Last seen on 02:57, 8. Apr 2021
Joined Aug 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How do i make random armour for biped models?
Mon, 08/31/2020 - 07:11

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

Last seen on 13:17, 24. Oct 2020
Joined Aug 2015
Points:

User statistics:

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