texture change
This commit is contained in:
@@ -13,6 +13,12 @@ package StevenDimDoors.mod_pocketDimClient;
|
||||
|
||||
|
||||
|
||||
import java.util.Random;
|
||||
|
||||
import org.lwjgl.opengl.GL11;
|
||||
|
||||
import StevenDimDoors.mod_pocketDim.ticking.MobObelisk;
|
||||
|
||||
import net.minecraft.client.model.ModelBase;
|
||||
import net.minecraft.client.model.ModelRenderer;
|
||||
import net.minecraft.entity.Entity;
|
||||
@@ -21,12 +27,15 @@ public class ModelMobObelisk extends ModelBase
|
||||
{
|
||||
//fields
|
||||
ModelRenderer wholemonolith;
|
||||
Random rand = new Random();
|
||||
|
||||
|
||||
public ModelMobObelisk()
|
||||
{
|
||||
textureWidth = 256;
|
||||
textureHeight = 256;
|
||||
|
||||
|
||||
|
||||
wholemonolith = new ModelRenderer(this, 0, 0);
|
||||
wholemonolith.addBox(-48/2F,-108F/1.3F, -12/2F, 48, 108, 12);
|
||||
@@ -44,6 +53,9 @@ public class ModelMobObelisk extends ModelBase
|
||||
{
|
||||
super.render(par1Entity, 0, 0, 0, 0, 0, 0);
|
||||
this.setRotationAngles(0, 0, 0, 0, 0,0, par1Entity);
|
||||
|
||||
|
||||
GL11.glScalef(((MobObelisk) par1Entity).getRenderSizeModifier(), ((MobObelisk) par1Entity).getRenderSizeModifier(), ((MobObelisk) par1Entity).getRenderSizeModifier());
|
||||
wholemonolith.render(par7);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user