This page provides a quick outline on the examples shipped within Armoreable Mobs.
Keep in mind ArmoreableMobs attempts to modify mobs that spawn the vanilla way after the regular steps for applying armor have already been applied.
However, mods are free to ignore the vanilla way and find custom ways to circumvent this.
Whenever you create an ArmorGroup, you need to set its weight. When calculating which ArmorGroup is assigned to
an entity, ArmoreableMobs grabs all of the registered groups for an entity type, and selects one of them randomly. At any time, the chances of any
ArmorGroup to be selected is equal to the weight of that group divided over the sum of all of the ArmorGroup instances
that are registered for said entity type.
This example ensures that any strays that spawn, spawn with an iron chestplate.
In the event they are holding an item in the right hand, which happens most of the time, it will be replaced with air.
This snippet makes it so regular skeletons always spawn with a diamond sword in their mainhand.
In the event they were to be spawning with any armor, it is removed.
This block modifies zombie spawning so that one in eleven zombies spawn with full netherite armor, while the rest
spawn with iron armor.
Lastly, it is worth noting that should you want to keep original armor modifications, you should create an empty armor group and register it
with the desired weight. In the following example, we make the same modification as we did earlier, but with a 50% chance this time: