Jump to content

TwinAndy

Members
  • Posts

    25
  • Joined

  • Last visited

Everything posted by TwinAndy

  1. Haha i'm sorry but i still got the same error This is what my mcp_data/jars looks like it got assets and versions in. Did i miss something...? I'm really sorry i thought it was easier back before 1.6 I didn't got the minecraft_server in it because i'm making a singleplayer mod and it don't really think you'll need that if you're making a single player mod.
  2. Do i also need to install fml in my minecraft jar?
  3. So i'm trying to setting up mcp with forge using the forge source installer but everytime i run it i get this error: ================ Forge ModLoader Setup Start =================== Checking MCP zip (may take time to download) Downloaded mcp8.04.zip Extracting MCP to '[NotNeeded]' Setting up MCP Patching commands.py patching file commands.py Commands patch applied successfully Copying FML conf Creating Repackaged data Creating re-packaged srg Creating re-packaged exc Creating re-packaged MCP patches Fixing MCP Workspace Could not retrieve md5 for library scala-compiler-2.10.2.jar ( http://repo.maven .apache.org/maven2/org/scala-lang/scala-compiler/2.10.2/scala-compiler-2.10.2.ja r.md5 ) Could not retrieve md5 for library lwjgl-2.9.0-sources.jar ( http://repo.maven.a pache.org/maven2/org/lwjgl/lwjgl/lwjgl/2.9.0/lwjgl-2.9.0-sources.jar.md5 ) Could not retrieve md5 for library guava-14.0.jar ( http://repo.maven.apache.org /maven2/com/google/guava/guava/14.0/guava-14.0.jar.md5 ) Could not retrieve md5 for library commons-lang3-3.1-sources.jar ( http://repo.m aven.apache.org/maven2/org/apache/commons/commons-lang3/3.1/commons-lang3-3.1-so urces.jar.md5 ) Could not retrieve md5 for library jinput-2.0.5.jar ( http://repo.maven.apache.o rg/maven2/net/java/jinput/jinput/2.0.5/jinput-2.0.5.jar.md5 ) Could not retrieve md5 for library jutils-1.0.0-sources.jar ( http://repo.maven. apache.org/maven2/net/java/jutils/jutils/1.0.0/jutils-1.0.0-sources.jar.md5 ) Downloading 42 libraries launchwrapper-1.3.jar Done Download of asm-debug-all-4.1.jar failed md5 check, deleting Failed to download asm-debug-all-4.1.jar from http://repo.maven.apache.org/m aven2/org/ow2/asm/asm-debug-all/4.1/asm-debug-all-4.1.jar asm-debug-all-4.1-sources.jar Done scala-library-2.10.2.jar Done scala-library-2.10.2-sources.jar Done scala-compiler-2.10.2.jar Done Download of scala-compiler-2.10.2-sources.jar failed md5 check, deleting Failed to download scala-compiler-2.10.2-sources.jar from http://repo.maven. apache.org/maven2/org/scala-lang/scala-compiler/2.10.2/scala-compiler-2.10.2-sou rces.jar jopt-simple-4.5.jar Done jopt-simple-4.5-sources.jar Done lzma-0.0.1.jar Done codecjorbis-20101023.jar Done codecwav-20101023.jar Done libraryjavasound-20101123.jar Done librarylwjglopenal-20100824.jar Done soundsystem-20120107.jar Done lwjgl-2.9.0.jar Done lwjgl-2.9.0-sources.jar Done lwjgl_util-2.9.0.jar Done lwjgl_util-2.9.0-sources.jar Done argo-2.25_fixed.jar Done argo-2.25.jar Done argo-2.25-sources.jar Done Download of bcprov-jdk15on-1.47.jar failed md5 check, deleting Failed to download bcprov-jdk15on-1.47.jar from http://repo.maven.apache.org /maven2/org/bouncycastle/bcprov-jdk15on/1.47/bcprov-jdk15on-1.47.jar bcprov-jdk15on-1.47-sources.jar Done guava-14.0.jar Done Download of guava-14.0-sources.jar failed md5 check, deleting Failed to download guava-14.0-sources.jar from http://repo.maven.apache.org/ maven2/com/google/guava/guava/14.0/guava-14.0-sources.jar commons-lang3-3.1.jar Done commons-lang3-3.1-sources.jar Done commons-io-2.4.jar Done Download of commons-io-2.4-sources.jar failed md5 check, deleting Failed to download commons-io-2.4-sources.jar from http://repo.maven.apache. org/maven2/commons-io/commons-io/2.4/commons-io-2.4-sources.jar jinput-2.0.5.jar Done Download of jinput-2.0.5-sources.jar failed md5 check, deleting Failed to download jinput-2.0.5-sources.jar from http://repo.maven.apache.or g/maven2/net/java/jinput/jinput/2.0.5/jinput-2.0.5-sources.jar jutils-1.0.0.jar Done jutils-1.0.0-sources.jar Done gson-2.2.2.jar Done gson-2.2.2-sources.jar Done lwjgl-platform-2.9.0-natives-windows.jar Done Extracting OpenAL32.dll Extracting OpenAL64.dll Extracting lwjgl.dll Extracting lwjgl64.dll lwjgl-platform-2.9.0-natives-osx.jar Done Extracting liblwjgl.jnilib Extracting openal.dylib lwjgl-platform-2.9.0-natives-linux.jar Done Extracting liblwjgl.so Extracting liblwjgl64.so Extracting libopenal.so Extracting libopenal64.so jinput-platform-2.0.5-natives-windows.jar Done Extracting jinput-dx8.dll Extracting jinput-dx8_64.dll Extracting jinput-raw.dll Extracting jinput-raw_64.dll Extracting jinput-wintab.dll jinput-platform-2.0.5-natives-osx.jar Done Extracting libjinput-osx.jnilib jinput-platform-2.0.5-natives-linux.jar Done Extracting libjinput-linux.so Extracting libjinput-linux64.so Backing up client Downloaded 1.6.2.jar Backing up server Downloaded minecraft_server.1.6.2.jar Something failed verifying minecraft files, see log for details. Decompile Exception: 1 Press any key to continue . . .
  4. I do have my textures in textures/blocks but the model doesn't show up in my inventory... -snip- Do you maybe have skype, still i don't really getting it to work
  5. I do have my textures in textures/blocks but the model doesn't show up in my inventory...
  6. Minecraft.theMinecraft.renderEngine.bindTexture("/textures/blocks/FryerTexture.png"); I get an error under theMinecraft
  7. How about just a simple "thank you"? Anyway, since you didn't provide the code for the model, I couldn't test it, so I just copied and pasted your code. (Like I expected you would have tried on your own...) Add this to the FryerRenderer class I made for you. -snip- Also, I don't think you need to do two glPushMatrix()'s since you aren't doing anything special to your model between the second one and the first glPopMatrix(); one pair should be good enough. It doesn't work. Im sorry that i didn't gave you a model. ModelFryer package TwinAndysMods.SomeLittleThingsMod; import net.minecraft.client.model.ModelBase; import net.minecraft.client.model.ModelRenderer; import net.minecraft.entity.Entity; public class ModelFryer extends ModelBase { //fields ModelRenderer Shape1; ModelRenderer Shape2; ModelRenderer Shape3; ModelRenderer Shape4; ModelRenderer Shape5; ModelRenderer Shape6; ModelRenderer Shape7; ModelRenderer Shape8; ModelRenderer Shape9; ModelRenderer Shape10; ModelRenderer Shape11; ModelRenderer Shape12; public ModelFryer() { textureWidth = 64; textureHeight = 32; Shape1 = new ModelRenderer(this, 0, 0); Shape1.addBox(0F, 0F, 0F, 13, 1, 9); Shape1.setRotationPoint(-8F, 23F, -4F); Shape1.setTextureSize(64, 32); Shape1.mirror = true; setRotation(Shape1, 0F, 0F, 0F); Shape2 = new ModelRenderer(this, 0, 12); Shape2.addBox(0F, 0F, 0F, 1, 5, 9); Shape2.setRotationPoint(4F, 18F, -4F); Shape2.setTextureSize(64, 32); Shape2.mirror = true; setRotation(Shape2, 0F, 0F, 0F); Shape3 = new ModelRenderer(this, 44, 1); Shape3.addBox(0F, 0F, 0F, 1, 9, 9); Shape3.setRotationPoint(-8F, 14F, -4F); Shape3.setTextureSize(64, 32); Shape3.mirror = true; setRotation(Shape3, 0F, 0F, 0F); Shape4 = new ModelRenderer(this, 32, 26); Shape4.addBox(0F, 0F, 0F, 11, 5, 1); Shape4.setRotationPoint(-7F, 18F, 4F); Shape4.setTextureSize(64, 32); Shape4.mirror = true; setRotation(Shape4, 0F, 0F, 0F); Shape5 = new ModelRenderer(this, 32, 26); Shape5.addBox(0F, 0F, 0F, 11, 5, 1); Shape5.setRotationPoint(-7F, 18F, -4F); Shape5.setTextureSize(64, 32); Shape5.mirror = true; setRotation(Shape5, 0F, 0F, 0F); Shape6 = new ModelRenderer(this, 32, 19); Shape6.addBox(0F, 0F, 0F, 10, 1, 6); Shape6.setRotationPoint(-6.5F, 21F, -2.5F); Shape6.setTextureSize(64, 32); Shape6.mirror = true; setRotation(Shape6, 0F, 0F, 0F); Shape7 = new ModelRenderer(this, 0, 28); Shape7.addBox(0F, 0F, 0F, 10, 3, 1); Shape7.setRotationPoint(-6.5F, 18F, -2.5F); Shape7.setTextureSize(64, 32); Shape7.mirror = true; setRotation(Shape7, 0F, 0F, 0F); Shape8 = new ModelRenderer(this, 0, 28); Shape8.addBox(0F, 0F, 0F, 10, 3, 1); Shape8.setRotationPoint(-6.5F, 18F, 2.5F); Shape8.setTextureSize(64, 32); Shape8.mirror = true; setRotation(Shape8, 0F, 0F, 0F); Shape9 = new ModelRenderer(this, 22, 25); Shape9.addBox(0F, 0F, 0F, 1, 3, 4); Shape9.setRotationPoint(2.5F, 18F, -1.5F); Shape9.setTextureSize(64, 32); Shape9.mirror = true; setRotation(Shape9, 0F, 0F, 0F); Shape10 = new ModelRenderer(this, 22, 25); Shape10.addBox(0F, 0F, 0F, 1, 3, 4); Shape10.setRotationPoint(-6.5F, 18F, -1.5F); Shape10.setTextureSize(64, 32); Shape10.mirror = true; setRotation(Shape10, 0F, 0F, 0F); Shape11 = new ModelRenderer(this, 13, 11); Shape11.addBox(0F, 0F, 0F, 11, 0, 7); Shape11.setRotationPoint(-7F, 19F, -3F); Shape11.setTextureSize(64, 32); Shape11.mirror = true; setRotation(Shape11, 0F, 0F, 0F); Shape12 = new ModelRenderer(this, 0, 26); Shape12.addBox(0F, 0F, 0F, 6, 1, 1); Shape12.setRotationPoint(2.5F, 17F, 0F); Shape12.setTextureSize(64, 32); Shape12.mirror = true; setRotation(Shape12, 0F, 0F, 0F); } public void render(Entity entity, float f, float f1, float f2, float f3, float f4, float f5) { super.render(entity, f, f1, f2, f3, f4, f5); setRotationAngles(f, f1, f2, f3, f4, f5); Shape1.render(f5); Shape2.render(f5); Shape3.render(f5); Shape4.render(f5); Shape5.render(f5); Shape6.render(f5); Shape7.render(f5); Shape8.render(f5); Shape9.render(f5); Shape10.render(f5); Shape11.render(f5); Shape12.render(f5); } public void renderAll(float f5){ Shape1.render(f5); Shape2.render(f5); Shape3.render(f5); Shape4.render(f5); Shape5.render(f5); Shape6.render(f5); Shape7.render(f5); Shape8.render(f5); Shape9.render(f5); Shape10.render(f5); Shape11.render(f5); Shape12.render(f5); } private void setRotation(ModelRenderer model, float x, float y, float z) { model.rotateAngleX = x; model.rotateAngleY = y; model.rotateAngleZ = z; } public void setRotationAngles(float f, float f1, float f2, float f3, float f4, float f5) { } } FryerRenderer package TwinAndysMods.SomeLittleThingsMod; import net.minecraft.item.ItemStack; import net.minecraftforge.client.IItemRenderer; import org.lwjgl.opengl.GL11; public class FryerRenderer implements IItemRenderer { @Override public boolean handleRenderType(ItemStack item, ItemRenderType type) { return true; } @Override public boolean shouldUseRenderHelper(ItemRenderType type, ItemStack item, ItemRendererHelper helper) { return true; } @Override public void renderItem(ItemRenderType type, ItemStack item, Object... data) { switch(type) { case INVENTORY: { renderModelFryer(); return; } default: return; } } private ModelFryer aModel; public FryerRenderer() { aModel = new ModelFryer(); } private void renderModelFryer() { GL11.glPushMatrix(); GL11.glTranslatef(0.0F, 0.0F, 0.0F); // play around with these numbers until you get it where you want it. (should work by itself) GL11.glRotatef(180F, 0F, 0F, 1F); bindTextureByName("/textures/blocks/FryerTexture.png"); aModel.renderAll(0.0625F); GL11.glPopMatrix(); } private void bindTextureByName(String string) { } } I think i did something wron with the bindTextureByName.... I already gave you a thank you but if you still want to help me out a bit.
  8. RenderFryer package TwinAndysMods.SomeLittleThingsMod; import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer; import net.minecraft.tileentity.TileEntity; import org.lwjgl.opengl.GL11; public class RenderFryer extends TileEntitySpecialRenderer { public RenderFryer() { aModel = new ModelFryer(); } public void renderAModelAt(TileEntityFryer tileentity1, double d, double d1, double d2, float f) { GL11.glPushMatrix(); GL11.glTranslatef((float)d + 0.5F, (float)d1 + 1.52F, (float)d2 + 0.5F); GL11.glRotatef(180F, 0F, 0F, 1F); bindTextureByName("/textures/blocks/FryerTexture.png"); GL11.glPushMatrix(); aModel.renderAll(0.0625F); GL11.glPopMatrix(); GL11.glPopMatrix(); } public void renderTileEntityAt(TileEntity tileentity, double d, double d1, double d2, float f) { renderAModelAt((TileEntityFryer)tileentity, d, d1, d2, f); } private ModelFryer aModel; } If you could help me i would love you (No homo)
  9. I don't know what you mean with insert opengl code Sorry this is first time i made a custom modeled block
  10. Two answers: 1: Yes 2:Yes BlockFryer: @Override public TileEntity createNewTileEntity(World world) { return new TileEntityFryer(); } Main: ClientRegistry.bindTileEntitySpecialRenderer(TileEntityFryer.class, new RenderFryer());
  11. I don't use a tile entity renderer Here is an example of a model block BlockExample package YourPackageHere; import net.minecraft.block.BlockContainer; import net.minecraft.block.material.Material; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.tileentity.TileEntity; import net.minecraft.util.Icon; import net.minecraft.world.World; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; public class BlockExample extends BlockContainer { public BlockExample(int id, Material par2Material) { super(id, par2Material); this.setCreativeTab(CreativeTabs.tabBlock); this.setHardness(3.0F); this.setResistance(3.0F); this.setLightValue(30F); this.setBlockUnbreakable(); } public boolean isOpaqueCube() { return false; } public boolean renderAsNormalBlock() { return false; } public int getRenderType() { return -1; } @Override public TileEntity createNewTileEntity(World world) { return new TileEntityExample(); } } ModelExample package YourPackageHere; import net.minecraft.client.model.ModelBase; import net.minecraft.client.model.ModelRenderer; import net.minecraft.entity.Entity; public class ModelExample extends ModelBase { //fields ModelRenderer Leg1; ModelRenderer Leg2; ModelRenderer Leg3; ModelRenderer Leg4; ModelRenderer Shape1; public ModelExample() { textureWidth = 128; textureHeight = 32; Leg1 = new ModelRenderer(this, 0, 0); Leg1.addBox(0F, 0F, 0F, 1, 20, 1); Leg1.setRotationPoint(-8F, 4F, -8F); Leg1.setTextureSize(128, 32); Leg1.mirror = true; setRotation(Leg1, 0F, 0F, 0F); Leg2 = new ModelRenderer(this, 0, 0); Leg2.addBox(0F, 0F, 0F, 1, 20, 1); Leg2.setRotationPoint(-8F, 4F, 7F); Leg2.setTextureSize(128, 32); Leg2.mirror = true; setRotation(Leg2, 0F, 0F, 0F); Leg3 = new ModelRenderer(this, 0, 0); Leg3.addBox(0F, 0F, 0F, 1, 20, 1); Leg3.setRotationPoint(7F, 4F, -8F); Leg3.setTextureSize(128, 32); Leg3.mirror = true; setRotation(Leg3, 0F, 0F, 0F); Leg4 = new ModelRenderer(this, 0, 0); Leg4.addBox(0F, 0F, 0F, 1, 20, 1); Leg4.setRotationPoint(7F, 4F, 7F); Leg4.setTextureSize(128, 32); Leg4.mirror = true; setRotation(Leg4, 0F, 0F, 0F); Shape1 = new ModelRenderer(this, 0, 0); Shape1.addBox(0F, 0F, 0F, 16, 1, 16); Shape1.setRotationPoint(-8F, 3F, -8F); Shape1.setTextureSize(128, 32); Shape1.mirror = true; setRotation(Shape1, 0F, 0F, 0F); } public void render(Entity entity, float f, float f1, float f2, float f3, float f4, float f5) { super.render(entity, f, f1, f2, f3, f4, f5); setRotationAngles(f, f1, f2, f3, f4, f5); Leg1.render(f5); Leg2.render(f5); Leg3.render(f5); Leg4.render(f5); Shape1.render(f5); } public void renderAll(float f5){ Leg1.render(f5); Leg2.render(f5); Leg3.render(f5); Leg4.render(f5); Shape1.render(f5); } private void setRotation(ModelRenderer model, float x, float y, float z) { } public void setRotationAngles(float f, float f1, float f2, float f3, float f4, float f5) { } } RenderExample package YourPackageHere; import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer; import net.minecraft.tileentity.TileEntity; import org.lwjgl.opengl.GL11; public class RenderExample extends TileEntitySpecialRenderer { public RenderExample() { aModel = new ModelExample(); } public void renderAModelAt(TileEntityExample tileentity1, double d, double d1, double d2, float f) { GL11.glPushMatrix(); GL11.glTranslatef((float)d + 0.5F, (float)d1 + 1.52F, (float)d2 + 0.5F); GL11.glRotatef(180F, 0F, 0F, 1F); bindTextureByName("/mods/lantern.png"); GL11.glPushMatrix(); aModel.renderAll(0.0625F); GL11.glPopMatrix(); GL11.glPopMatrix(); } public void renderTileEntityAt(TileEntity tileentity, double d, double d1, double d2, float f) { renderAModelAt((TileEntityExample)tileentity, d, d1, d2, f); } private ModelExample aModel; } TileEntityExample package YourPackageHere; import net.minecraft.tileentity.TileEntity; public class TileEntityExample extends TileEntity { } In your main ClientRegistry.bindTileEntitySpecialRenderer(TileEntityExample.class, new RenderExample());
  12. No i didn't i never do that what do i need to do then?
  13. So i just started make custom modeled blocks and it works but the blocks don't show up in my inventory it just says Texture missing If someone could help me i would be really happy ^^
  14. Can you be a little more clear i'm sorry if i sound like a 'noob' but this is the first time i started making modeled blocks Edit: nvm i founded. I looked at the fence block Thanks anyways
  15. So i just started making custom blocks models and they work but the hit box is like this: So i want to know how to change it like its only on the block itself and you can jump ontop of it without floating in the air if you look sideways I'm really sorry if i spelled something wrong my English is not that great.
  16. can you please explain this to me
  17. You change your constructor to receive four arguments instead of two, so no wonder you get the error. But the glass block is. You've asked for glass, you've got glass. What else do ya need then? I mean glass block
  18. Its not just a normal block
  19. I did but when i change: http://paste.minecraftforge.net/view/91d35da5 To: http://paste.minecraftforge.net/view/385da035 Then there is a red line under: new AltorGlass (763, 6) http://paste.minecraftforge.net/view/9cd22d14
  20. I was looking for a tutorial on how to make glass but i cant find any any suggestions?
×
×
  • Create New...

Important Information

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