Jump to content

RegaGames

Members
  • Posts

    5
  • Joined

  • Last visited

Everything posted by RegaGames

  1. It's for this mod; http://www.planetminecraft.com/mod/152-v1-more-world-types-lots-of-new-worlds/ I don't want it to generate in the world, and have it only obtainable through that mod feature
  2. Hi! For my mod, I need it so my custom biomes don't generate, how would I do this?
  3. Haha, oops! The error is the "float par8TileEntityTrashcan tile' Here is the ModelTrashcan.java Your problem is that the method(renderAll) that you call in your render class is empty. Instead you need to call the models render(Entity entity, float f, float f1, float f2, float f3, float f4, float f5) method. Note that the entity object that you pass in, has to be the entity object that you are trying to render, and the last parameter(f5) is the scale of the object. In your case, these seems to be the only important parameters, so you should replace: model.renderAll(); in TileEntityTrashcanRenderer with: model.render(par1TileEntity, 0.0F, 0.0F, 0.0F, 0.0F, 0.0F, 1.0F); Try to change the last parameter to some other values, to adjust the scale to what you need Still wont work
  4. Haha, oops! The error is the "float par8TileEntityTrashcan tile' Here is the ModelTrashcan.java
  5. So, I have a problem with my TitleEntityRenderer class for my custom block. Here is the src; package com.regablith.trashcan; import net.minecraft.client.gui.FontRenderer; import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer; import net.minecraft.tileentity.TileEntity; import org.lwjgl.opengl.GL11; import java.io.IOException; import java.io.InputStream; public class TileEntityTrashcanRenderer extends TileEntitySpecialRenderer{ public TileEntityTrashcanRenderer(){ } public void renderAModelAt(TileEntityTrashcan par1TileEntity, double par2, double par4, double par6, float par8TileEntityTrashcan tile, double d, double d1, double d2, float f) { int rotation = 0; if(tile.worldObj != null) { rotation = tile.getBlockMetadata(); } bindTextureByName("trashCanBlock.png"); //texture GL11.glPushMatrix(); GL11.glTranslatef((float)d + 0.5F, (float)d1 + 1.5F, (float)d2 + 0.5F); GL11.glScalef(1.0F, -1F, -1F); GL11.glRotatef(rotation*90, 0.0F, 1.0F, 0.0F); model.renderAll(); GL11.glPopMatrix(); //end } private ModelTrashcan model; public void renderTileEntityAt(TileEntity par1TileEntity, double par2, double par4, double par6, float par8) { this.renderAModelAt((TileEntityTrashcan)par1TileEntity, par2, par4, par6, par8); //par2, par4, par6, par8, par6, par6, par8 } }
×
×
  • Create New...

Important Information

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