diff --git a/src/main/java/net/mcreator/superbwarfare/entity/model/ClaymoreModel.java b/src/main/java/net/mcreator/superbwarfare/entity/model/ClaymoreModel.java index 6eb85464c..1aad2c439 100644 --- a/src/main/java/net/mcreator/superbwarfare/entity/model/ClaymoreModel.java +++ b/src/main/java/net/mcreator/superbwarfare/entity/model/ClaymoreModel.java @@ -5,20 +5,27 @@ import net.mcreator.superbwarfare.entity.ClaymoreEntity; import net.minecraft.resources.ResourceLocation; import software.bernie.geckolib.model.GeoModel; +import java.util.UUID; + public class ClaymoreModel extends GeoModel { + @Override public ResourceLocation getAnimationResource(ClaymoreEntity entity) { - return new ResourceLocation(ModUtils.MODID, "animations/claymore.animation.json"); + return ModUtils.loc("animations/claymore.animation.json"); } @Override public ResourceLocation getModelResource(ClaymoreEntity entity) { - return new ResourceLocation(ModUtils.MODID, "geo/claymore.geo.json"); + return ModUtils.loc("geo/claymore.geo.json"); } @Override public ResourceLocation getTextureResource(ClaymoreEntity entity) { - return new ResourceLocation(ModUtils.MODID, "textures/entity/claymore.png"); + UUID uuid = entity.getUUID(); + if (uuid.getLeastSignificantBits() % 514 == 0) { + return ModUtils.loc("textures/entity/claymore_alter.png"); + } + return ModUtils.loc("textures/entity/claymore.png"); } } diff --git a/src/main/resources/assets/superbwarfare/textures/entity/claymore_alter.png b/src/main/resources/assets/superbwarfare/textures/entity/claymore_alter.png new file mode 100644 index 000000000..2dd09796b Binary files /dev/null and b/src/main/resources/assets/superbwarfare/textures/entity/claymore_alter.png differ