Posted June 10, 201312 yr Well i coded this what is my BlockFusionOre.java class package com.Thecheatgamer1.Annom.Block; import com.Thecheatgamer1.Annom.Lib.Textures; import net.minecraft.block.Block; import net.minecraft.block.material.Material; import net.minecraft.client.renderer.texture.IconRegister; public class BlockFusionOre extends Block { public BlockFusionOre(int id) { super(id, Material.ground); } public void updateIcons(IconRegister iconRegister) { blockIcon = iconRegister.registerIcon(Textures.FUSIONORE_LOCATION); } public Block setIconIndex(int i) { return null; } } And this is my ModBlocks.java class, its so i dont trash the main class with all the block loading and resource code! package com.Thecheatgamer1.Annom.Block; import com.Thecheatgamer1.Annom.Annom; import com.Thecheatgamer1.Annom.Lib.BlockIds; import com.Thecheatgamer1.Annom.Lib.Strings; import cpw.mods.fml.common.registry.GameRegistry; import cpw.mods.fml.common.registry.LanguageRegistry; import net.minecraft.block.Block; public class ModBlocks { /* Mod block instances */ public static Block fusionore; public static void init() { fusionore = new BlockFusionOre(BlockIds.FUSIONORE).setUnlocalizedName(Strings.FUSIONORE_NAME).setCreativeTab(Annom.tabsAnnom).setHardness(100.0F).setResistance(60.0F).setLightValue(1.0F); GameRegistry.registerBlock(fusionore, Strings.FUSIONORE_NAME); LanguageRegistry.addName(fusionore, "Fusion ore"); } } Everytime i start up minecraft with this, it gives me this crash log! cpw.mods.fml.common.LoaderException: java.lang.NoSuchFieldError: ground at cpw.mods.fml.common.LoadController.transition(LoadController.java:142) at cpw.mods.fml.common.Loader.loadMods(Loader.java:515) at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:160) at net.minecraft.client.Minecraft.func_71384_a(Minecraft.java:410) at net.minecraft.client.MinecraftAppletImpl.func_71384_a(SourceFile:56) at net.minecraft.client.Minecraft.run(Minecraft.java:732) at java.lang.Thread.run(Unknown Source) Caused by: java.lang.NoSuchFieldError: ground at com.Thecheatgamer1.Annom.Block.BlockFusionOre.<init>(BlockFusionOre.java:13) at com.Thecheatgamer1.Annom.Block.ModBlocks.init(ModBlocks.java:18) at com.Thecheatgamer1.Annom.Annom.preInit(Annom.java:87) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:494) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74) at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45) at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314) at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296) at com.google.common.eventbus.EventBus.post(EventBus.java:267) at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:165) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74) at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45) at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314) at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296) at com.google.common.eventbus.EventBus.post(EventBus.java:267) at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:98) at cpw.mods.fml.common.Loader.loadMods(Loader.java:514) ... 5 more --- END ERROR REPORT f1d2c4b1 ---------- Can someone tell me how to fix this i looked in the net.minecraft.materials.Materials class and i found the groud material but it comes up with this
June 11, 201312 yr Author Well lexmanos told me to obfuscate my mod.... what i clearly dont know how to do, does anyone know if hes right and how to do it or can anyone give me some true advice
June 11, 201312 yr Author Can someone please help me due to i have to half my mod completely due to this
June 11, 201312 yr Well lexmanos told me to obfuscate my mod.... what i clearly dont know how to do, does anyone know if hes right and how to do it or can anyone give me some true advice If you're running MCP the right way, just run recompile.sh and reobfuscate_srg.sh and pull your class files out of reobf/. (and your resources out of src/mods/) BEWARE OF GOD --- Co-author of Pentachoron Labs' SBFP Tech.
June 11, 201312 yr Author there is no such path as src/mods and there is nothing in reobf folder i run both recompile.sh and reobfuscate_srg.sh
June 11, 201312 yr there is no such path as src/mods and there is nothing in reobf folder i run both recompile.sh and reobfuscate_srg.sh My mistake, I meant src/minecraft/mods. Can I see the console output from reobfuscate.sh? BEWARE OF GOD --- Co-author of Pentachoron Labs' SBFP Tech.
June 11, 201312 yr Author There is no output from running reobfuscate_srg.sh and there is no directory for /src/minecraft/mods
June 11, 201312 yr There is no output from running reobfuscate_srg.sh and there is no directory for /src/minecraft/mods ... How did you set up your environment? BEWARE OF GOD --- Co-author of Pentachoron Labs' SBFP Tech.
June 11, 201312 yr Author Well i extracted both mcp and forge into 1 folder then i went into the forge folder an use the install file and that is it, my mod is connected to all things correctly I copyed pahimars lets plays on how to set it up due to it was confusing at first
June 11, 201312 yr Author In the forge/mcp/ is the .sh you ran the reobf is in that same folder! The director is /mcp/forge/ also
June 11, 201312 yr See, now, I was told to do it a different method, which has always worked fine for me. Pahimar's tutorial looks outdated. BEWARE OF GOD --- Co-author of Pentachoron Labs' SBFP Tech.
June 12, 201312 yr Author See, now, I was told to do it a different method, which has always worked fine for me. Pahimar's tutorial looks outdated. well it fixed 2 problems i had {1} the ground material error {2} minecraft not loading in eclipse thanks!
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.