Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

How to make my mob bigger without rebuilding it in Techne? So, i tried to use that code in my RenderMob.class:

GL11.glPushMatrix();
float scale = 2.0F;
GL11.glScalef(scale, scale, scale);

That works, but my Minecraft gets damned up. I think that code sucks and i need something another. Here is the whole RenderMob.class file:

 

 

package halflifemod.client.renderer.entity;

 

 

import halflifemod.client.model.ModelGonome;

import halflifemod.client.model.ModelGuardZombie;

import halflifemod.client.model.ModelHeadcrabZombie;

import halflifemod.entity.monster.EntityGonome;

import halflifemod.entity.monster.EntityGuardZombie;

 

import org.lwjgl.opengl.GL11;

 

import net.minecraft.client.renderer.entity.RenderLiving;

import net.minecraft.entity.Entity;

import net.minecraft.entity.EntityLiving;

import net.minecraft.item.ItemStack;

import net.minecraftforge.client.IItemRenderer.ItemRenderType;

 

public class RenderGonome extends RenderLiving

{

protected ModelGonome model;

 

public RenderGonome(ModelGonome modelGonome, float f)

{

super(modelGonome, f);

model = ((ModelGonome)mainModel);

GL11.glPushMatrix();

float scale = 2.0F;

GL11.glScalef(scale, scale, scale);

 

 

}

 

public void renderGonome(EntityGonome entityGonome, double par2, double par4, double par6,

float par8, float par9)

{

super.doRenderLiving(entityGonome, par2, par4, par6, par8, par9);

}

 

public void doRenderLiving(EntityLiving entityliving, double par2, double par4, double par6,

float par8, float par9)

{

renderGonome((EntityGonome)entityliving, par2, par4, par6, par8, par9);

}

 

public void doRender(Entity entity, double par2, double par4, double par6,

float par8, float par9)

{

renderGonome((EntityGonome)entity, par2, par4, par6, par8, par9);

}

 

 

}

 

 

 

So, how i can make my mob bigger?

Increase in preRenderCallback method.

 

public class FCRenderLiving extends RenderLiving{

    public FCRenderLiving(ModelBase model, float shadowSize){
        super(model, shadowSize);
    }
    
    protected void preRenderCallback(EntityLivingBase entity, float f){
    	GL11.glScalef(2F, 2F, 2F);
    }
    
    protected ResourceLocation getEntityTexture(Entity entity){
    	return null;
    }
}

 

  • Author

Increase in preRenderCallback method.

 

public class FCRenderLiving extends RenderLiving{

    public FCRenderLiving(ModelBase model, float shadowSize){
        super(model, shadowSize);
    }
    
    protected void preRenderCallback(EntityLivingBase entity, float f){
    	GL11.glScalef(2F, 2F, 2F);
    }
    
    protected ResourceLocation getEntityTexture(Entity entity){
    	return null;
    }
}

 

NVM. I looked to the Slime and worked it out. The Codes are almost the similar, so thanks alot.

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.