Started by
Thermoza
on
Topic category: Help with Minecraft modding (Java Edition)
Hi there, has anyone managed to scale mobs in 1.18? I have tried using the older posts without success.
Topic category: Help with Minecraft modding (Java Edition)
Hi there, has anyone managed to scale mobs in 1.18? I have tried using the older posts without success.
The reason why i cant just change the model size is that i want the mob to also use armor and weapons that also scales with the size of the mob like a wither skeleton compared to a skeleton
Found a solution, here is my custom skeleton mob with the scaling at 1.2
package net.mcreator.earthdungeons.client.renderer; import com.mojang.blaze3d.vertex.PoseStack; import net.minecraft.world.entity.monster.AbstractSkeleton; import net.minecraft.resources.ResourceLocation; import net.minecraft.client.renderer.entity.layers.HumanoidArmorLayer; import net.minecraft.client.renderer.entity.HumanoidMobRenderer; import net.minecraft.client.renderer.entity.EntityRendererProvider; import net.minecraft.client.model.geom.ModelLayers; import net.minecraft.client.model.SkeletonModel; import net.mcreator.earthdungeons.entity.ArmoredSkeletonEntity; public class ArmoredSkeletonRenderer extends HumanoidMobRenderer<ArmoredSkeletonEntity, SkeletonModel<ArmoredSkeletonEntity>> { public ArmoredSkeletonRenderer(EntityRendererProvider.Context context) { super(context, new SkeletonModel(context.bakeLayer(ModelLayers.SKELETON)), 0.5f); this.addLayer(new HumanoidArmorLayer(this, new SkeletonModel(context.bakeLayer(ModelLayers.SKELETON_INNER_ARMOR)), new SkeletonModel(context.bakeLayer(ModelLayers.SKELETON_OUTER_ARMOR)))); } @Override public ResourceLocation getTextureLocation(ArmoredSkeletonEntity entity) { return new ResourceLocation("earth_dungeons:textures/skeleton.png"); } protected void scale(ArmoredSkeletonEntity p_116460_, PoseStack p_116461_, float p_116462_) { p_116461_.scale(1.2F, 1.2F, 1.2F); } }do you know if there is a way to check if the entity is a child?