
Что это
Small extension library to Fabric API's ArmorRenderer, with more targeted and specific implementation to dynamically change armor texture and color.
- Тип: мод
- Загрузчик: fabric
- Версии Minecraft: 1.18.2 – 1.19.2
- Скачиваний на Modrinth: 2 920
Подробно
Armor Render Lib is a lightweight extension library to Fabric API's fabric-rendering-v1 ArmorRenderer. Since the Fabric API implementation is quite abstract, a more targeted implementation is needed for some specific use cases. These use cases are present across more than one of my mods, so in the spirit of code reuse this library was created. It is robust, using only a few very targeted mixins and is fully compatible with Cosmetic Armor and GeckoLib.
To include this library in your project, copy the following into your build.gradle:
gradle repositories { maven { name = "Modrinth" url = "https://api.modrinth.com/maven" content { includeGroup "maven.modrinth" } } }
gradle dependencies { modImplementation "maven.modrinth:armor-render-lib: " include "maven.modrinth:armor-render-lib: " }
Armor Render Lib adds armor render layers. These are objects containing a dynamic texture location, color and glint boolean that render armor for an item (or items). They are roughly equivalent to Fabric API's ArmorRenderer#renderPart, but the texture, color and glint can be dynamically specified based on the ItemStack, LivingEntity and EquipmentSlot.
java public class ExampleMod implements ClientModInitializer { private static ArmorRenderProvider render(ItemStack stack, LivingEntity entity, EquipmentSlot slot) { // Dynamic texture path String texture = "examplemod:textures/model/armor/examplechestplate.png"; // Dynamic color int color = 0xFF00FF; return data -> data.accept(texture, color, stack.hasGlint()); } @Override public void onInitializeClient() { ArmorRenderLib.register(ExampleMod::render, Items.IRONCHESTPLATE); } }
- An item can have multiple different armor render layers registered to it. - Multiple items can have the same armor render layer registered to them. - Registering a render layer to a vanilla item (or other armor item) overrides the default armor rendering. - This means that the texture, color and/or enchantment glint of vanilla armor can be modified.
Как установить
Скачайте файл на официальной странице ниже и положите его в папку mods (для модов) или plugins (для плагинов) вашего сервера или клиента. Для модов нужен совместимый загрузчик. Версия должна совпадать с версией Minecraft.
Текст подготовлен автоматически из описания на Modrinth и ждёт проверки редакцией.
Комментарии 0
Комментарии к этому материалу отключены.
Читайте также
Enhanced Vanilla+
Default! But with Quality of life tweaks and visuals 05.12.2026
Quiet Copper Golems and Chests
Drastically Reduces the volume of copper golems and copper chests, but does not completely remove their audio. 05.12.2026
ImprovedVanillaLighting
A simple, performant shader pack to make the game look warmer and smoother. 05.12.2026
StyleLabor Hero
StyleLabor Hero is a superhero modpack with vanilla+, technic mods and other quality of life mods! 05.12.2026
Tweaked Trials
A few tweaks to Tricky Trials update, including repeatedly openable vaults and entity particles 05.12.2026
XaerosMapPlugin
Xaero's Map plugin is a lightweight plugin for servers using Xaero's Minimap and Xaero's World Map. The plugin prevents different worlds… 05.12.2026