Increasing scale of entity model

Started by JohnMcMichael on

Topic category: Help with Minecraft modding (Java Edition)

Active 1 year ago
Joined May 2023
Points:
178

User statistics:

  • Modifications: 0
  • Forum topics: 4
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 18
Increasing scale of entity model

I'm trying to find out how to increase the scale of an entity using the default biped model. I've seen this: https://mcreator.net/forum/73570/render-scaling-you-entities-matrixstack, but it doesn't seem to be applicable here. On 1.16, btw.

Here's the code in the Renderer.java file for the entity:

(if someone could tell me how to use an actual zombie model, that would also be nice, I've tried and my attempt didn't compile correctly)

@OnlyIn(Dist.CLIENT)

public class MediumZombieRenderer {
public static class ModelRegisterHandler {
@SubscribeEvent
@OnlyIn(Dist.CLIENT)
public void registerModels(ModelRegistryEvent event) {
RenderingRegistry.registerEntityRenderingHandler(MediumZombieEntity.entity, renderManager -> {
BipedRenderer customRender = new BipedRenderer(renderManager, new BipedModel(0), 0.5f) {
@Override
public ResourceLocation getEntityTexture(Entity entity) {
return new ResourceLocation("textures/entity/zombie/zombie.png");
}
};
customRender.addLayer(new BipedArmorLayer(customRender, new BipedModel(0.5f), new BipedModel(1)));

return customRender;
});
}
}
}
Active 1 week ago
Joined Jan 2022
Points:
656

User statistics:

  • Modifications: 14
  • Forum topics: 9
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 128
You could use Nerdy's Gecko…
Sat, 05/20/2023 - 17:28

You could use Nerdy's Gecko Lib Plugin and remake your entity in it then create an animation where your entity uses scale.

Hopefuly this helps!

Active 1 year ago
Joined May 2023
Points:
178

User statistics:

  • Modifications: 0
  • Forum topics: 4
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 18
I am aware but I would…
Sat, 05/20/2023 - 21:34

I am aware but I would rather just scale up the existing biped model.

Active 1 week ago
Joined Jan 2022
Points:
656

User statistics:

  • Modifications: 14
  • Forum topics: 9
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 128
you could create a replica…
Sun, 05/21/2023 - 12:56

you could create a replica of a biped model in geckolib

Active 1 year ago
Joined May 2023
Points:
178

User statistics:

  • Modifications: 0
  • Forum topics: 4
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 18
Oh I don't mean making the…
Sun, 05/21/2023 - 17:26

Oh I don't mean making the entity grow larger in an animation, I mean making an entity whose model is a scaled up version of the zombie/biped model, like the Giant.