Traben-0 / Entity_Texture_Features

A Minecraft Fabric & Forge mod that adds random, emissive & blinking textures for mobs, skins and much more!
GNU Lesser General Public License v3.0
122 stars 24 forks source link

[BUG] "Entity texture with custom name " #107

Closed firyy closed 1 year ago

firyy commented 1 year ago

I'm trying to use my "iron_golem3" only when it has a custom name but it doesn't seem to be working, am I doing something wrong?

My iron_golem.properties :

skins.1=1 2 weights.1=3 1

name.2=Shrek ( also tried iregex:.(Shrek). ) skins.2=3

Traben-0 commented 1 year ago

this is a very simple fix the "named" case needs to be first

they are all checked in order and because case 1 has no conditions it gets selected every time

the 'named' case should be skins.1 & name.1, then it will check that first and only apply skins.1 to a mob with that name, failing that it will move to case 2