Jump to content

Kakarotvg

Members
  • Posts

    124
  • Joined

  • Last visited

Everything posted by Kakarotvg

  1. I compiled my mod successfully but when i try to load it into mine craft it gives me this crash the classes are all there, so i don't know whats the problem
  2. so it turns out the tileentitys were the problem, but the mod also had other problems, so i removed the problematic stuff, and I'm going to rewrite them using the new code... I hope this works.
  3. I did use debug mode it crashes right around client proxy, but it doesn't tell you why it crashed or what caused it specifically.
  4. the problem occurs after loading client proxy ao please help
  5. its either a problem with the block icons, item icons, tool icons, armor icons, tile entity textures, crop icons, or gui textures
  6. error log crash report code for metadata icons code for normal icons BlockHandler itemmetablock
  7. I think i got it working, the harvest level is specified in the tool material area, so i think that tool class is no longer needed.
  8. I found it and opened it, but i didn't find anything helpful
  9. what was setToolClass replaced with, because I'm having trouble finding it.
  10. MetaBlock class package kakarotvg.omega.blocks; import java.util.List; import kakarotvg.omega.Reference; import net.minecraft.block.Block; import net.minecraft.block.material.Material; import net.minecraft.client.renderer.texture.IIconRegister; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraft.util.IIcon; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; public class MetaBlock extends Block { public MetaBlock(Material material) { super(material); } @Override public int damageDropped(int par1) { return par1; } @SideOnly(Side.CLIENT) private IIcon[] icons; @SideOnly(Side.CLIENT) @Override public void registerIcons(IIconRegister register) { icons = new IIcon[3]; for (int i = 0; i < icons.length; i++) { icons[i] = register.registerIcon(Reference.MOD_ID + ":" + (this.getUnlocalizedName().substring(5)) + i); } } @SideOnly(Side.CLIENT) @Override public IIcon getIcon(int par1, int par2) { return icons[par2]; } @SideOnly(Side.CLIENT) @Override public void getSubBlocks(Item par1, CreativeTabs tab, List list) { for (int i = 0; i < 3; i++) { list.add(new ItemStack(par1, 1, i)); } } } "the line public void registerIcons(IIconRegister register) {" keeps saying remove @Override annotation, but the annotation needs to be there so whats wrong with the line here is what it says specifically "The method registerIcons(IIconRegister) of type MetaBlock must override or implement a super type method" im not sure what that means.
  11. First of all I acutally solved this a while back, but I put the event itself in a different class, and the event register in a different class.
  12. I tried pahimars way, and it was extremely confusing.
  13. I was using the block id for the normal crafting table, not my custom one
  14. but anyways thanks, that was the only thing I happened to miss when I was typing the code unfortunately.
  15. I didn't blindly copy and paste, I went through and attempted to understand each segment of code. I just happened to miss one
  16. Okay so I got it to open the gui, but now it closes automatically when opening here is the code block class container class gui class guihandler
  17. Here would be a sample of mine this is the build.xml file it is all you need, you don't need any other xml or property files for this to work. <?xml version="1.0" encoding="UTF-8" ?> <project name="Test Project" basedir="Starting path" default="folder where reobjuscated jars will be put"> <target name="folder where reobjuscated jars will be put"> <delete dir="folder where reobjuscated jars will be put" /> <delete dir="forge/mcp/reobf/minecraft" /> <copy todir="forge/mcp/src/minecraft"> <fileset dir="TestMod/Common/"> </fileset> </copy> <mkdir dir="folder where reobjuscated jars will be put" /> <exec executable="recompile.bat" dir="forge/mcp" resolveexecutable="true" osfamily="windows"></exec> <exec executable="reobfuscate_srg.bat" dir="forge/mcp" resolveexecutable="true" osfamily="windows"></exec> <exec executable="recompile.sh" dir="forge/mcp" resolveexecutable="true" osfamily="unix"></exec> <exec executable="reobfuscate_srg.sh" dir="forge/mcp" resolveexecutable="true" osfamily="unix"></exec> <jar destfile="releases/TestMod_1.1.jar"> <fileset dir="forge/mcp/reobf/minecraft/" /> <fileset dir="TestMod/Resources"/> </jar> <delete dir="forge/mcp/src/minecraft/folder in common folder"/> </target> </project>
  18. agreed, you can't get a metadata block to drop another block/item. It would have to drop itself, so your best bet for doing that would be to use the blocks in different block IDs
  19. I did what you said and there was one thing causing it to not work, but this got it to work @Override public Icon getIcon(int par1, int par2) { if (Minecraft.isFancyGraphicsEnabled() == false) { return opaqueleaves; } return transparentleaves; } full class
×
×
  • Create New...

Important Information

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