-
Posts
124 -
Joined
-
Last visited
Everything posted by Kakarotvg
-
it was the sidedproxy
-
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
-
1.7.2 Spritenumber error when starting up minecraft
Kakarotvg replied to Kakarotvg's topic in Modder Support
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. -
1.7.2 Spritenumber error when starting up minecraft
Kakarotvg replied to Kakarotvg's topic in Modder Support
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. -
1.7.2 Spritenumber error when starting up minecraft
Kakarotvg replied to Kakarotvg's topic in Modder Support
the problem occurs after loading client proxy ao please help -
1.7.2 Spritenumber error when starting up minecraft
Kakarotvg replied to Kakarotvg's topic in Modder Support
I just ran debug, and got the same thing -
1.7.2 Spritenumber error when starting up minecraft
Kakarotvg replied to Kakarotvg's topic in Modder Support
I don't see whats causing it to be null -
1.7.2 Spritenumber error when starting up minecraft
Kakarotvg replied to Kakarotvg's topic in Modder Support
its either a problem with the block icons, item icons, tool icons, armor icons, tile entity textures, crop icons, or gui textures -
1.7.2 Spritenumber error when starting up minecraft
Kakarotvg replied to Kakarotvg's topic in Modder Support
done -
error log crash report code for metadata icons code for normal icons BlockHandler itemmetablock
-
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.
-
I found it and opened it, but i didn't find anything helpful
-
what was setToolClass replaced with, because I'm having trouble finding it.
-
registerIcons keeps asking for a removal of @Override
Kakarotvg replied to Kakarotvg's topic in Modder Support
That fixed it thanks -
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.
-
its ok
-
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.
-
I tried pahimars way, and it was extremely confusing.
-
[solved]opening a custom gui for custom crafting table
Kakarotvg replied to Kakarotvg's topic in Modder Support
I was using the block id for the normal crafting table, not my custom one -
[solved]opening a custom gui for custom crafting table
Kakarotvg replied to Kakarotvg's topic in Modder Support
but anyways thanks, that was the only thing I happened to miss when I was typing the code unfortunately. -
[solved]opening a custom gui for custom crafting table
Kakarotvg replied to Kakarotvg's topic in Modder Support
I didn't blindly copy and paste, I went through and attempted to understand each segment of code. I just happened to miss one -
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
-
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>
-
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
-
[solved] changing leaf texture based on graphics level
Kakarotvg replied to Kakarotvg's topic in Modder Support
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