Hello again,
thanks for the info!
I got a problem though...
It does that, with that:
public ModdedSpearItem(Properties properties)
{
super(properties);
ItemModelsProperties.registerProperty(Registries.iron_spear.get(), new ResourceLocation("spear_throwing"), (itemstack, clientworld, livingentity) -> {
return livingentity != null && livingentity.isHandActive() && livingentity.getActiveItemStack() == itemstack ? 1.0F : 0.0F;
});
}
and that's how my object is registered:
public static final RegistryObject<Item> iron_spear = ITEMS.register("iron_spear", () -> new ModdedSpearItem(new Item.Properties().group(Azure.TAB).maxStackSize(1)));
You got any idea of what I've done wrong?