[1.21.1] Armor Rendering Bug with Minecolonies - RPG Series armors do not render or apply stats on Minecolonies Guards
YumatanGames opened this issue ยท 2 comments
Bug Description
There is a compatibility issue between the RPG Series armor mods (Rogues, Archers, Wizards, etc.) and Minecolonies. When any piece of armor from these mods is equipped on a Minecolonies citizen, it fails to render on the citizen's model. The error appears on all armors, from all RPG Series mods.
Furthermore, it appears the stat bonuses from the armor are not being applied to the citizen. This functionality works as expected with other armor mods I've tested (such as Epic Knights, Immersive Armors, and Samurai Dynasty), which points to a specific incompatibility with the RPG Series. The game remains stable and does not crash from this bug.
Screenshots
Steps to Reproduce
- Load a world with both Minecolonies and any of the RPG Series armor mods installed.
- Start a Colony by placing a TownHall (make use of the building tool). Make sure to move away about 128 blocks from spawn.
- After creating a colony, in Creative, place a Guard Tower at level 5 from any style. Hire any of the colonists as a guard.
- Equip them with a piece of armor from one of the RPG mods.
- Observe that the citizen's appearance does not change, and the armor model is not visible. An error will appear when looking into the item from the guard's inventory, as you can see in the screenshots above.
Relevant Logs
The game's log file continuously generates warnings from Minecolonies while this issue is present. It confirms that the game is failing to render the specific armor pieces.
java.lang.NullPointerException: Cannot invoke "net.minecraft.world.entity.Entity.level()" because "entity" is null
[Render thread/WARN] [minecolonies/]: Error rendering armor: 1 archers:archer_armor_head report to the armor's mod.
java.lang.NullPointerException: Cannot invoke "net.minecraft.world.entity.Entity.level()" because "entity" is null
[Render thread/WARN] [minecolonies/]: Error rendering armor: 1 wizards:wizard_robe_head report to the armor's mod.
java.lang.NullPointerException: null
Hi,
The render incompatibility exists between AzureLib Armor and Minecolonies. There is nothing I can do on the side of Wizards (or any content mod) to fix this.
Please submit the render related issue here: https://github.com/AzureDoom/AzureLib-Armor/issues
About the attributes. They are applied exactly like vanilla armor. They work perfectly fine on mobs in other cases, such as:
- https://www.curseforge.com/minecraft/mc-mods/rpg-minibosses-forsaken-adventurers
- https://www.curseforge.com/minecraft/mc-mods/kevs-guardvillagers-fork
Hence it clues seem to strongly point towards this being a bug of Minecolonies.

