Trying to learn how to use blockstates to tweak Item Models using Custom properties. The model works, and the class seems to work but the blockstate variants don't appear to work. Any suggestions?
Item Model:
{
"parent": "item/generated",
"textures": {
"layer0": "magelight:item/parts/handle_oak",
"layer1": "magelight:item/parts/blade_oak",
"layer2": "magelight:item/parts/guard_oak"
}
}
Blockstate:
{
"forge_marker": 1,
"defaults": {
"model": "magelight:item/epochblade"
},
"variants": {
"normal": [{}],
"inventory": [{}],
"test": {
"0": { "textures": { "layer1": "magelight:item/parts/blade_oak"}},
"1": { "textures": { "layer1": "magelight:item/parts/blade_iron"}}
}
}
}
Item Class:
public class Epochblade extends SwordItem{
public Epochblade(IItemTier tier, int attackDamageIn, float attackSpeedIn, Properties builder) {
super(tier, attackDamageIn, attackSpeedIn, builder);
this.addPropertyOverride(new ResourceLocation("test"), (stack, world, entity) -> 1);
}
}