KingAtomx Posted November 4, 2012 Posted November 4, 2012 Hello, I was just wondering if anyone could help me with 3 forge issues/problem I am facing. - If I had a block, kinda like dirt so that shovels would speed up the block destruction, how would I go about doing this? I have looked in ItemSpade and the array 'blocksEffectiveAgainst' is final. Without editing the base class I see no way of adding my own block to this array without creating a subclass of ItemSpade and creating my own item. If anyone could point me to some Forge method I need to use or other advice that would be great. - Another problem I am having is with my mcmod.info file. After recompiling and reobfuscating my code and zipping it with my textures (which all work fine) I add my correctly formatted, as far as I'm aware, mcmod.info file to the zip. However whenever I install my mod it comes up with the message "No mcmod.info file found, ask your mod maker to add one....". - Finally just something that would really help, I am getting my blocks texture off it's meta data. However whenever the blocks metadata changes, the texture doesn't until I either reload the chunks or Save and Quit. Any help with this would also be appreciated. Thanks again to anyone who can help me with any of these issues. King Atomx Quote
CowedOffACliff Posted November 4, 2012 Posted November 4, 2012 Forge has funtions to register tools and tool effecvtiveness on initialization. Also, when block metadata changes you should replace the old block with a new one with the new valuem which will cause it tup update. Quote I accidentally the everything then NullPointerException.
KingAtomx Posted November 9, 2012 Author Posted November 9, 2012 Which function exactly would I use to register that a block could be affected by and ItemShovel?? Thanks for your help Quote
ShetiPhian Posted November 11, 2012 Posted November 11, 2012 MinecraftForge.setBlockHarvestLevel Is your mcmod.info in the root of your zip? The formatting might be off slightly (I forgot a comma once ) Quote
pro-mole Posted November 13, 2012 Posted November 13, 2012 MCMod.info files aren't automatically packed like class files are. At least, mine isn't. You should put it in your package at the root. For the metadata/texture thing, you tried using SetBlockAndMetadataWithUpdate() or SetBlockAndMetadataWithNotify()? Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.