Armors

Wear texture configuration

equipments:
  my_armor_1:
    type: armor
    layer_1: armor/my_armor_1/layer_1
    layer_2: armor/my_armor_1/layer_2

The equipment is a property which contains the information how to show the armor in-game on the player body.

Create the layers files inside the folder: contents/my_armor_tutorial/textures/armor/my_armor_1 .

Item configuration

In this example I will show how to create a chestplate, the same can be done to create other armor pieces.

As you can see I set the material to IRON_CHESTPLATE.

I also set the equipment.id property to my_armor_tutorial:my_armor_1. This loads our previously created equipment settings.

Inventory item textures

Create the item texture and put it inside the folder: contents/my_armor_tutorial/textures/item.

Extra: Custom 3D helmet

Currently only helmets support 3D models due to a Minecraft limitation I cannot fix.

Full configuration from the previous example

Click here to read the configuration file
6KB
Open

Animated/emissive armors

The current custom armors method doesn't support animated and emissive textures. To create animated or/and emissive textures you have to use the old method shown here (uses shaders).

HD armor textures

I do not advice to use HD textures since this is a blocky game, but can create HD high resolution, but make sure they have the same proportions of the original vanilla armors layers textures.

Size must be a power of 2, for example: 64x32, 128x64, 256x128, 512x256.

Multi-version compatibility

You have to create both properties equipments and armors_rendering.

  • armors_rendering is the old method (uses a custom shader)

  • equipments is the new method (uses the vanilla equipment attribute)

You have to set material to LEATHER, for each piece, in this case LEATHER_CHESTPLATE.

You then have to set the equipment.legacy_armor_rendering_id and equipment.id to the previously created properties.

Extra: Custom 3D helmet

Currently on Minecraft 1.21.1 and lower only normal items (not helmets) support 3D models due to a Minecraft limitation I cannot fix.

In this case, to support legacy clients too you must use the hat behaviour instead.

Full configuration from the previous example

Click here to read the configuration file

Converting old armors to the new equipment tag

Mode 1

This setting allows you to append the new equipment setting and use the old shader method + the new method at the same time, so old clients will still see armors even if they are not on 1.21.2+.

Mode 2

This option will convert the armors completely to use the new equipment tag. Note that old clients won't see the armor anymore (older than 1.21.2).