Posted January 6, 20187 yr I just want to make something like bigger zombies when they're stronger, or creepers bigger when they have more explosion power. Not only the hitbox, the model too Edited January 6, 20187 yr by Insane96MCP
January 7, 20187 yr I'm not a computer right now to check but there used to be a method called pre render callback where you could do things like GL11 scaling to make entity model render bigger. Check out my tutorials here: http://jabelarminecraft.blogspot.com/
January 7, 20187 yr Author So, I managed to mess up with RenderLivingEvent @SubscribeEvent public static void EventRenderLivingPre(RenderLivingEvent.Pre<EntityLivingBase> event) { if (event.getEntity() instanceof EntityZombie) { GL11.glPushMatrix(); GL11.glScalef(2.0f, 2.0f, 2.0f); } } @SubscribeEvent public static void EventRenderLivingPost(RenderLivingEvent.Post<EntityLivingBase> event) { if (event.getEntity() instanceof EntityZombie) { GL11.glPopMatrix(); } } But I'm obiviously doing something wrong But as I'm writing I'm thinking that to do what I want to do, I have to replace the RendererZombie (or whatever mob) with mine and change size there. Edited January 7, 20187 yr by Insane96MCP
January 7, 20187 yr 9 minutes ago, Insane96MCP said: So, I managed to mess up with RenderLivingEvent @SubscribeEvent public static void EventRenderLivingPre(RenderLivingEvent.Pre<EntityLivingBase> event) { if (event.getEntity() instanceof EntityZombie) { GL11.glPushMatrix(); GL11.glScalef(2.0f, 2.0f, 2.0f); } } @SubscribeEvent public static void EventRenderLivingPost(RenderLivingEvent.Post<EntityLivingBase> event) { if (event.getEntity() instanceof EntityZombie) { GL11.glPopMatrix(); } } But I'm obiviously doing something wrong But as I'm writing I'm thinking that to do what I want to do, I have to replace the RendererZombie (or whatever mob) with mine and change size there. Scale using GL changes the position/origin as well. So you need to sort that out. You also need to update it's serverside bounding box. Use https://www.programcreek.com/java-api-examples/index.php?class=org.lwjgl.opengl.GL11&method=glTranslatef for changing position. Edited January 7, 20187 yr by TheAwesomeGem New Channel: https://www.youtube.com/theawesomegemily'>https://www.youtube.com/theawesomegemily My Group: https://www.youtube.com/officialpixelgem Old Channel: https://www.youtube.com/theawesomegem
January 7, 20187 yr Author 2 minutes ago, TheAwesomeGem said: Scale using GL changes the position/origin as well. So you need to sort that out. You also need to update it's serverside bounding box. Use https://www.programcreek.com/java-api-examples/index.php?class=org.lwjgl.opengl.GL11&method=glTranslatef for changing position. But the mob is not bigger ... and when seen from above it disapears
January 7, 20187 yr 12 minutes ago, Insane96MCP said: But the mob is not bigger ... and when seen from above it disapears Are you changing it on clientside or serverside? Also use GLStateManager and not the raw GL calls. Edit: Look at RenderGiantZombie as an example. Edited January 7, 20187 yr by TheAwesomeGem New Channel: https://www.youtube.com/theawesomegemily'>https://www.youtube.com/theawesomegemily My Group: https://www.youtube.com/officialpixelgem Old Channel: https://www.youtube.com/theawesomegem
January 7, 20187 yr Author 9 minutes ago, TheAwesomeGem said: Are you changing it on clientside or serverside? The event is called clientside only, right? 10 minutes ago, TheAwesomeGem said: Edit: Look at RenderGiantZombie as an example. As an example to use GLStateManager?
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.