Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Alix_The_Alicorn

Members
  • Joined

  • Last visited

Everything posted by Alix_The_Alicorn

  1. Someone? anyone know the answer? Thanks [lmgtfy]Help[/lmgtfy]
  2. Also, some open source mods use that class so look at the source of mods like EE3 and Resonant Induction. Maybe also compare your model to theirs.
  3. Did you use advancedobjectimporter ? If so you should look at the class for the object importer, and figure out if you used bas syntax. I haven't personally used it but I know a bit about it. (I'm a bad artist, I use techne )
  4. Yes, I do have code for a newtileentity on my block. Do I possibly need to make a when the block is placed create this.tileentity or something?
  5. Instead of streaming it (offline play issues) maybe include it in your mod, or download it when your mod starts. (If your mod is on minecraftforum you have to out in your post that your mod downloads something otherwise it will be flagged just a heads up)
  6. I know this, and I have tried it. That is why I have the proxy field. But am I defining what my proxy field is incorrectly? You said to make it as my @SidedProxy, by that do you mean have two fields EX: proxy; and proxyC;? Or do I do something else?
  7. I know this is an old answered topic now, but I thought I would contribute. If you use the same setup at Pah for your mod and you have a /resources folder with your /assets in them and your code in a /common folder, you could just use either bogle to find a generic build script, or use the build script from buildcraft and modify it to make it get the version of forge your mod needs at a minimum, and modify it with your mod version and name, it will compile it and package it into a jar for you. To use it, when the build.xml is in your source folder, with apache ant installed go in your command prompt (on mac Terminal and on linux terminal, on windows just type in CMD in either run or the start menu in windows 8 and type in cd locationyoursourcefolderisat and then hit enter, and then type ant, and hit enter, and then after having a cup of coffee and coming back, you will have a .jar file in a new /bin directory of your source folder.
  8. I have custom render code, and I know for a fact that my model, renderer, tile entity, and block are fine. But it's just rendering an invisible block (because we said not to render any sides in the block class) and I think the problem is that I'm not binding my renderer to my tile entity properly. In my client proxy I have a method called registerRenderers and in it I have my render binding. I have my client proxy set in my @NetworkMod but how to I make the game look at the registerRenderers method? Would I put it in my Init PreInit or PostInit or where?
  9. it still gives a nullPointerException. I'll look around in my code and see if I can fix it. Thanks for al your help
  10. Seriously though, It works in my test java GUI program where if you type something in and hit enter it will print out true and if its null (empty) it will print out false
  11. I'm pretty sure that I did this right, with the if('put variable here' != null) and it works in a test java program to test for null, but It dosent want to work in any instance of minecraft modding. Is there something I have to import for this in modding? or do I have to define the != myself?
  12. Which class? EDIt: nevermind. The class its referring to there is the second one in my original post Could I please have some more detailed help? I'm pretty new to forge modding.
  13. Yes you can reference non obfuscated names. I'm pretty sure at least. Forge is made to make nodders lives easier.
  14. Full log out of eclipse Aug 03, 2013 8:42:37 PM net.minecraft.launchwrapper.LogWrapper log INFO: Using tweak class name cpw.mods.fml.common.launcher.FMLTweaker 2013-08-03 20:42:37 [iNFO] [ForgeModLoader] Forge Mod Loader version 6.2.35.804 for Minecraft 1.6.2 loading 2013-08-03 20:42:37 [iNFO] [ForgeModLoader] Java is Java HotSpot(TM) 64-Bit Server VM, version 1.7.0_13, running on Mac OS X:x86_64:10.9, installed at /Library/Java/JavaVirtualMachines/jdk1.7.0_13.jdk/Contents/Home/jre 2013-08-03 20:42:37 [iNFO] [ForgeModLoader] Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation 2013-08-03 20:42:37 [WARNING] [ForgeModLoader] The coremod codechicken.core.launch.CodeChickenCorePlugin does not have a MCVersion annotation, it may cause issues with this version of Minecraft 2013-08-03 20:42:39 [WARNING] [ForgeModLoader] The coremod codechicken.nei.asm.NEICorePlugin does not have a MCVersion annotation, it may cause issues with this version of Minecraft 2013-08-03 20:42:39 [iNFO] [sTDOUT] Loaded 39 rules from AccessTransformer config file fml_at.cfg 2013-08-03 20:42:40 [iNFO] [sTDOUT] Loaded 107 rules from AccessTransformer config file forge_at.cfg 2013-08-03 20:42:40 [iNFO] [sTDOUT] Loaded 39 rules from AccessTransformer config file fml_at.cfg 2013-08-03 20:42:41 [sEVERE] [ForgeModLoader] The binary patch set is missing. Either you are in a development environment, or things are not going to work! 2013-08-03 20:42:41 [iNFO] [sTDOUT] Adding AccessTransformer: nei_at.cfg 2013-08-03 20:42:41 [iNFO] [sTDOUT] Adding Accesstransformer map: temp.dat 2013-08-03 20:42:41 [iNFO] [sTDOUT] Loaded 53 rules from AccessTransformer config file temp.dat 2013-08-03 20:42:42 [iNFO] [ForgeModLoader] Launching wrapped minecraft 2013-08-03 20:42:44 [iNFO] [sTDOUT] Inserted super call into net.minecraft.client.gui.inventory.GuiInventory.updateScreen 2013-08-03 20:42:44 [iNFO] [sTDOUT] awv was overriden from NotEnoughItems 1.6.0.6.jar 2013-08-03 20:42:44 [iNFO] [Minecraft-Client] Setting user: Player446 2013-08-03 20:42:44 [iNFO] [Minecraft-Client] (Session ID is null) 2013-08-03 20:42:45 [iNFO] [sTDOUT] Generated BlockMobSpawner helper method. 2013-08-03 20:42:47 [iNFO] [sTDOUT] Completely ignored arguments: [--username:jmanpenilla, --password:{LOL_NOPE}] 2013-08-03 20:42:47 [iNFO] [Minecraft-Client] LWJGL Version: 2.9.0 2013-08-03 20:42:48 [iNFO] [Minecraft-Client] Reloading ResourceManager: Default 2013-08-03 20:42:48 [iNFO] [sTDOUT] 2013-08-03 20:42:48 [iNFO] [sTDOUT] Starting up SoundSystem... 2013-08-03 20:42:49 [iNFO] [sTDOUT] Initializing LWJGL OpenAL 2013-08-03 20:42:49 [iNFO] [sTDOUT] (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org) 2013-08-03 20:42:49 [iNFO] [MinecraftForge] Attempting early MinecraftForge initialization 2013-08-03 20:42:49 [iNFO] [sTDOUT] MinecraftForge v9.10.0.804 Initialized 2013-08-03 20:42:49 [iNFO] [ForgeModLoader] MinecraftForge v9.10.0.804 Initialized 2013-08-03 20:42:49 [iNFO] [sTDOUT] OpenAL initialized. 2013-08-03 20:42:49 [iNFO] [sTDOUT] 2013-08-03 20:42:49 [iNFO] [sTDOUT] Replaced 101 ore recipies 2013-08-03 20:42:49 [iNFO] [MinecraftForge] Completed early MinecraftForge initialization 2013-08-03 20:42:49 [iNFO] [ForgeModLoader] Reading custom logging properties from /Users/jason/Desktop/mcdev/1.6.2/mcp/jars/config/logging.properties 2013-08-03 20:42:49 [OFF] [ForgeModLoader] Logging level for ForgeModLoader logging is set to ALL 2013-08-03 20:42:50 [iNFO] [ForgeModLoader] Searching /Users/jason/Desktop/mcdev/1.6.2/mcp/jars/mods for mods 2013-08-03 20:42:50 [iNFO] [ForgeModLoader] Also searching /Users/jason/Desktop/mcdev/1.6.2/mcp/jars/mods/1.6.2 for mods 2013-08-03 20:42:53 [iNFO] [ForgeModLoader] Forge Mod Loader has identified 6 mods to load 2013-08-03 20:42:53 [iNFO] [mcp] Activating mod mcp 2013-08-03 20:42:53 [iNFO] [FML] Activating mod FML 2013-08-03 20:42:53 [iNFO] [Forge] Activating mod Forge 2013-08-03 20:42:53 [iNFO] [CodeChickenCore] Activating mod CodeChickenCore 2013-08-03 20:42:53 [iNFO] [NotEnoughItems] Activating mod NotEnoughItems 2013-08-03 20:42:53 [iNFO] [Test] Activating mod Test 2013-08-03 20:42:53 [WARNING] [Not Enough Items] Mod Not Enough Items is missing a pack.mcmeta file, things may not work well 2013-08-03 20:42:53 [WARNING] [Test] Mod Test is missing a pack.mcmeta file, things may not work well 2013-08-03 20:42:53 [iNFO] [Minecraft-Client] Reloading ResourceManager: Default, FMLFileResourcePack:Not Enough Items, FMLFileResourcePack:Test 2013-08-03 20:42:53 [iNFO] [sTDOUT] 2013-08-03 20:42:53 [iNFO] [sTDOUT] SoundSystem shutting down... 2013-08-03 20:42:54 [iNFO] [sTDOUT] Author: Paul Lamb, www.paulscode.com 2013-08-03 20:42:54 [iNFO] [sTDOUT] 2013-08-03 20:42:54 [iNFO] [sTDOUT] 2013-08-03 20:42:54 [iNFO] [sTDOUT] Starting up SoundSystem... 2013-08-03 20:42:54 [iNFO] [ForgeModLoader] FML has found a non-mod file CodeChickenCore 0.9.0.2.jar in your mods directory. It will now be injected into your classpath. This could severe stability issues, it should be removed if possible. 2013-08-03 20:42:54 [iNFO] [ForgeModLoader] FML has found a non-mod file NotEnoughItems 1.6.0.6.jar in your mods directory. It will now be injected into your classpath. This could severe stability issues, it should be removed if possible. 2013-08-03 20:42:54 [iNFO] [ForgeModLoader] FML has found a non-mod file CodeChickenLib-dev-1.6.2-1.0.0.11.jar in your mods directory. It will now be injected into your classpath. This could severe stability issues, it should be removed if possible. 2013-08-03 20:42:54 [iNFO] [ForgeModLoader] Registering Forge Packet Handler 2013-08-03 20:42:54 [iNFO] [sTDOUT] Initializing LWJGL OpenAL 2013-08-03 20:42:54 [iNFO] [ForgeModLoader] Succeeded registering Forge Packet Handler 2013-08-03 20:42:54 [iNFO] [sTDOUT] (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org) 2013-08-03 20:42:54 [iNFO] [sTDOUT] OpenAL initialized. 2013-08-03 20:42:54 [iNFO] [sTDOUT] CONFLICT @ 0 item slot already occupied by net.minecraft.item.ItemSpade@18ac6680 while adding jason.test.TestIngot@5e7d6a27 2013-08-03 20:42:54 [iNFO] [fml.ItemTracker] The mod Test is overwriting existing item at 256 (net.minecraft.item.ItemSpade from Minecraft) with jason.test.TestIngot 2013-08-03 20:42:54 [iNFO] [sTDOUT] CONFLICT @ 0 item slot already occupied by jason.test.TestIngot@5e7d6a27 while adding jason.test.Chisel@1725972c 2013-08-03 20:42:54 [iNFO] [fml.ItemTracker] The mod Test is overwriting existing item at 256 (jason.test.TestIngot from Test) with jason.test.Chisel 2013-08-03 20:42:54 [iNFO] [ForgeModLoader] Configured a dormant chunk cache size of 0 2013-08-03 20:42:54 [iNFO] [sTDOUT] 2013-08-03 20:42:55 [iNFO] [sTDOUT] Removing TMI Uninstaller 2013-08-03 20:42:55 [iNFO] [sTDOUT] Deleting Dir: /Users/jason/Desktop/mcdev/1.6.2/mcp/eclipse/Minecraft/bin/net/minecraft/client/TMIUninstaller 2013-08-03 20:42:55 [iNFO] [ForgeModLoader] Forge Mod Loader has successfully loaded 6 mods 2013-08-03 20:42:56 [WARNING] [Not Enough Items] Mod Not Enough Items is missing a pack.mcmeta file, things may not work well 2013-08-03 20:42:56 [WARNING] [Test] Mod Test is missing a pack.mcmeta file, things may not work well 2013-08-03 20:42:56 [iNFO] [Minecraft-Client] Reloading ResourceManager: Default, FMLFileResourcePack:Not Enough Items, FMLFileResourcePack:Test 2013-08-03 20:42:56 [iNFO] [sTDOUT] 2013-08-03 20:42:56 [iNFO] [sTDOUT] SoundSystem shutting down... 2013-08-03 20:42:56 [iNFO] [sTDOUT] Author: Paul Lamb, www.paulscode.com 2013-08-03 20:42:56 [iNFO] [sTDOUT] 2013-08-03 20:42:56 [iNFO] [sTDOUT] 2013-08-03 20:42:56 [iNFO] [sTDOUT] Starting up SoundSystem... 2013-08-03 20:42:56 [sEVERE] [Minecraft-Client] ########## GL ERROR ########## 2013-08-03 20:42:56 [sEVERE] [Minecraft-Client] @ Post startup 2013-08-03 20:42:56 [sEVERE] [Minecraft-Client] 1281: Invalid value 2013-08-03 20:42:56 [iNFO] [sTDOUT] Initializing LWJGL OpenAL 2013-08-03 20:42:56 [iNFO] [sTDOUT] (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org) 2013-08-03 20:42:56 [iNFO] [sTDOUT] OpenAL initialized. 2013-08-03 20:42:57 [iNFO] [sTDOUT] 2013-08-03 20:42:57 [sEVERE] [Minecraft-Client] Realms: Invalid session id 2013-08-03 20:43:03 [iNFO] [sTDOUT] Deleting level test6 2013-08-03 20:43:03 [iNFO] [sTDOUT] Attempt 1... 2013-08-03 20:43:03 [iNFO] [sTDOUT] Deleting /Users/jason/Desktop/mcdev/1.6.2/mcp/jars/./saves/test6/data 2013-08-03 20:43:03 [iNFO] [sTDOUT] Deleting /Users/jason/Desktop/mcdev/1.6.2/mcp/jars/./saves/test6/DIM-1 2013-08-03 20:43:03 [iNFO] [sTDOUT] Deleting /Users/jason/Desktop/mcdev/1.6.2/mcp/jars/./saves/test6/DIM-1/data 2013-08-03 20:43:03 [iNFO] [sTDOUT] Deleting /Users/jason/Desktop/mcdev/1.6.2/mcp/jars/./saves/test6/DIM1 2013-08-03 20:43:03 [iNFO] [sTDOUT] Deleting /Users/jason/Desktop/mcdev/1.6.2/mcp/jars/./saves/test6/DIM1/data 2013-08-03 20:43:03 [iNFO] [sTDOUT] Deleting /Users/jason/Desktop/mcdev/1.6.2/mcp/jars/./saves/test6/level.dat 2013-08-03 20:43:03 [iNFO] [sTDOUT] Deleting /Users/jason/Desktop/mcdev/1.6.2/mcp/jars/./saves/test6/level.dat_mcr 2013-08-03 20:43:03 [iNFO] [sTDOUT] Deleting /Users/jason/Desktop/mcdev/1.6.2/mcp/jars/./saves/test6/NEI.dat 2013-08-03 20:43:03 [iNFO] [sTDOUT] Deleting /Users/jason/Desktop/mcdev/1.6.2/mcp/jars/./saves/test6/players 2013-08-03 20:43:03 [iNFO] [sTDOUT] Deleting /Users/jason/Desktop/mcdev/1.6.2/mcp/jars/./saves/test6/region 2013-08-03 20:43:03 [iNFO] [sTDOUT] Deleting /Users/jason/Desktop/mcdev/1.6.2/mcp/jars/./saves/test6/region/r.-1.-1.mca 2013-08-03 20:43:03 [iNFO] [sTDOUT] Deleting /Users/jason/Desktop/mcdev/1.6.2/mcp/jars/./saves/test6/region/r.-1.0.mca 2013-08-03 20:43:03 [iNFO] [sTDOUT] Deleting /Users/jason/Desktop/mcdev/1.6.2/mcp/jars/./saves/test6/region/r.0.-1.mca 2013-08-03 20:43:03 [iNFO] [sTDOUT] Deleting /Users/jason/Desktop/mcdev/1.6.2/mcp/jars/./saves/test6/region/r.0.0.mca 2013-08-03 20:43:03 [iNFO] [sTDOUT] Deleting /Users/jason/Desktop/mcdev/1.6.2/mcp/jars/./saves/test6/session.lock 2013-08-03 20:43:19 [iNFO] [Minecraft-Server] Starting integrated minecraft server version 1.6.2 2013-08-03 20:43:19 [iNFO] [Minecraft-Server] Generating keypair 2013-08-03 20:43:19 [iNFO] [Minecraft-Server] Converting map! 2013-08-03 20:43:19 [iNFO] [Minecraft-Server] Scanning folders... 2013-08-03 20:43:19 [iNFO] [Minecraft-Server] Total conversion count is 0 2013-08-03 20:43:20 [iNFO] [ForgeModLoader] Loading dimension 0 (test7) (net.minecraft.server.integrated.IntegratedServer@525fda68) 2013-08-03 20:43:20 [iNFO] [ForgeModLoader] Loading dimension 1 (test7) (net.minecraft.server.integrated.IntegratedServer@525fda68) 2013-08-03 20:43:20 [iNFO] [ForgeModLoader] Loading dimension -1 (test7) (net.minecraft.server.integrated.IntegratedServer@525fda68) 2013-08-03 20:43:20 [iNFO] [Minecraft-Server] Preparing start region for level 0 2013-08-03 20:43:20 [iNFO] [sTDERR] java.lang.NullPointerException 2013-08-03 20:43:20 [iNFO] [sTDERR] at net.minecraft.world.chunk.Chunk.setBlockIDWithMetadata(Chunk.java:754) 2013-08-03 20:43:20 [iNFO] [sTDERR] at net.minecraft.world.World.setBlock(World.java:557) 2013-08-03 20:43:20 [iNFO] [sTDERR] at net.minecraft.world.gen.feature.WorldGenMinable.generate(WorldGenMinable.java:80) 2013-08-03 20:43:20 [iNFO] [sTDERR] at jason.test.TestOreWorldGen.generateSurface(TestOreWorldGen.java:38) 2013-08-03 20:43:20 [iNFO] [sTDERR] at jason.test.TestOreWorldGen.generate(TestOreWorldGen.java:22) 2013-08-03 20:43:20 [iNFO] [sTDERR] at cpw.mods.fml.common.registry.GameRegistry.generateWorld(GameRegistry.java:102) 2013-08-03 20:43:20 [iNFO] [sTDERR] at net.minecraft.world.gen.ChunkProviderServer.populate(ChunkProviderServer.java:259) 2013-08-03 20:43:20 [iNFO] [sTDERR] at net.minecraft.world.chunk.Chunk.populateChunk(Chunk.java:1249) 2013-08-03 20:43:20 [iNFO] [sTDERR] at net.minecraft.world.gen.ChunkProviderServer.loadChunk(ChunkProviderServer.java:153) 2013-08-03 20:43:20 [iNFO] [sTDERR] at net.minecraft.server.MinecraftServer.initialWorldChunkLoad(MinecraftServer.java:292) 2013-08-03 20:43:20 [iNFO] [sTDERR] at net.minecraft.server.integrated.IntegratedServer.loadAllWorlds(IntegratedServer.java:90) 2013-08-03 20:43:20 [iNFO] [sTDERR] at net.minecraft.server.integrated.IntegratedServer.startServer(IntegratedServer.java:107) 2013-08-03 20:43:20 [iNFO] [sTDERR] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:443) 2013-08-03 20:43:20 [iNFO] [sTDERR] at net.minecraft.server.ThreadMinecraftServer.run(ThreadMinecraftServer.java:16) 2013-08-03 20:43:20 [sEVERE] [Minecraft-Server] Encountered an unexpected exception NullPointerException java.lang.NullPointerException at net.minecraft.world.chunk.Chunk.setBlockIDWithMetadata(Chunk.java:754) at net.minecraft.world.World.setBlock(World.java:557) at net.minecraft.world.gen.feature.WorldGenMinable.generate(WorldGenMinable.java:80) at jason.test.TestOreWorldGen.generateSurface(TestOreWorldGen.java:38) at jason.test.TestOreWorldGen.generate(TestOreWorldGen.java:22) at cpw.mods.fml.common.registry.GameRegistry.generateWorld(GameRegistry.java:102) at net.minecraft.world.gen.ChunkProviderServer.populate(ChunkProviderServer.java:259) at net.minecraft.world.chunk.Chunk.populateChunk(Chunk.java:1249) at net.minecraft.world.gen.ChunkProviderServer.loadChunk(ChunkProviderServer.java:153) at net.minecraft.server.MinecraftServer.initialWorldChunkLoad(MinecraftServer.java:292) at net.minecraft.server.integrated.IntegratedServer.loadAllWorlds(IntegratedServer.java:90) at net.minecraft.server.integrated.IntegratedServer.startServer(IntegratedServer.java:107) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:443) at net.minecraft.server.ThreadMinecraftServer.run(ThreadMinecraftServer.java:16) 2013-08-03 20:43:20 [sEVERE] [Minecraft-Server] This crash report has been saved to: /Users/jason/Desktop/mcdev/1.6.2/mcp/jars/./crash-reports/crash-2013-08-03_20.43.20-server.txt 2013-08-03 20:43:20 [iNFO] [Minecraft-Server] Stopping server 2013-08-03 20:43:20 [iNFO] [Minecraft-Server] Saving players 2013-08-03 20:43:20 [iNFO] [Minecraft-Server] Saving worlds 2013-08-03 20:43:20 [iNFO] [Minecraft-Server] Saving chunks for level 'test7'/Overworld 2013-08-03 20:43:20 [iNFO] [Minecraft-Server] Saving chunks for level 'test7'/Nether 2013-08-03 20:43:20 [iNFO] [Minecraft-Server] Saving chunks for level 'test7'/The End 2013-08-03 20:43:20 [iNFO] [ForgeModLoader] Unloading dimension 0 2013-08-03 20:43:20 [iNFO] [ForgeModLoader] Unloading dimension -1 2013-08-03 20:43:20 [iNFO] [ForgeModLoader] Unloading dimension 1 2013-08-03 20:43:20 [iNFO] [ForgeModLoader] The state engine was in incorrect state SERVER_STARTING and forced into state SERVER_STOPPED. Errors may have been discarded. 2013-08-03 20:43:43 [iNFO] [Minecraft-Server] Stopping server 2013-08-03 20:43:43 [iNFO] [Minecraft-Server] Saving players 2013-08-03 20:43:43 [iNFO] [Minecraft-Server] Saving worlds AL lib: (EE) alc_cleanup: 1 device not closed I had to force quit the "Launch" application (minecraft) cause it was stuck on generating the world. No better result if I use a pre generated world.
  15. Maybe try looking at the source of IC2 and see how they did it. Maybe look at the macerator source. It is sort of a custom furnace. Just use things from vanilla furnace or iron furnace from IC2 to use fuel instead of EU. You get the point.
  16. Here is my error in eclipse. 2013-08-03 20:43:20 [iNFO] [ForgeModLoader] The state engine was in incorrect state SERVER_STARTING and forced into state SERVER_STOPPED. Errors may have been discarded. Here is my main class: package jason.test; import net.minecraft.block.Block; import net.minecraft.block.material.Material; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraftforge.common.MinecraftForge; import cpw.mods.fml.common.Mod; import cpw.mods.fml.common.Mod.EventHandler; import cpw.mods.fml.common.Mod.Instance; import cpw.mods.fml.common.SidedProxy; import cpw.mods.fml.common.event.FMLInitializationEvent; import cpw.mods.fml.common.event.FMLPostInitializationEvent; import cpw.mods.fml.common.event.FMLPreInitializationEvent; import cpw.mods.fml.common.network.NetworkMod; import cpw.mods.fml.common.registry.GameRegistry; import cpw.mods.fml.common.registry.LanguageRegistry; import net.minecraftforge.common.Configuration; @Mod(modid="Test", name="Test", version="pre1a") @NetworkMod(clientSideRequired=true, serverSideRequired=false) public class Test { @Instance("Test") public static Test instance; public static int TestOreBlockID; public static int TestIngotItemID; public static int ChiselItemID; public final static Item testIngot = new TestIngot(TestIngotItemID); public final static Block testOre = new TestOre(TestOreBlockID, Material.rock); public final static Item chisel = new Chisel(ChiselItemID); @SidedProxy(clientSide="jason.test.client.ClientProxy", serverSide="jason.test.CommonProxy") public static CommonProxy proxy; @EventHandler public void preInit(FMLPreInitializationEvent event) { Configuration config = new Configuration(event.getSuggestedConfigurationFile()); config.load(); TestOreBlockID = config.getBlock("TestOre", 501).getInt(); TestIngotItemID = config.getItem("TestIngot", 5001).getInt(); ChiselItemID = config.getItem("Chisel", 5002).getInt(); config.save(); } @EventHandler public void load(FMLInitializationEvent event) { LanguageRegistry.addName(testIngot, "Test Ingot"); LanguageRegistry.addName(testOre, "Test Ore"); LanguageRegistry.addName(chisel, "Chisel"); MinecraftForge.setBlockHarvestLevel(testOre, "pickaxe", 3); GameRegistry.registerBlock(testOre, "testOre"); ItemStack testIngot = new ItemStack(TestIngotItemID, 1, 0); ItemStack diamondPickaxe = new ItemStack(278, 1, 0); ItemStack diamond = new ItemStack(Item.diamond); ItemStack chisel = new ItemStack(ChiselItemID, 1, 0); ItemStack stick = new ItemStack(Item.stick.itemID, 1, 0); GameRegistry.registerWorldGenerator(new TestOreWorldGen()); GameRegistry.addShapelessRecipe(diamond, testIngot, chisel); GameRegistry.addSmelting(TestOreBlockID, testIngot, 300); GameRegistry.addRecipe(chisel, " x", " y ", "y ", 'x', testIngot, 'y', stick); } @EventHandler public void postInit(FMLPostInitializationEvent event) { // Stub Method } } And here is my Ore world gen class package jason.test; import java.util.Random; import net.minecraft.world.World; import net.minecraft.world.chunk.IChunkProvider; import net.minecraft.world.gen.feature.WorldGenMinable; import cpw.mods.fml.common.IWorldGenerator; import net.minecraft.block.Block; import jason.test.TestOre; public class TestOreWorldGen implements IWorldGenerator { @Override public void generate(Random random, int chunkX, int chunkZ, World world, IChunkProvider chunkGenerator, IChunkProvider chunkProvider) { switch(world.provider.dimensionId){ case -1: generateNether(world, random, chunkX * 16, chunkZ * 16); break; case 0: generateSurface(world, random, chunkX * 16, chunkZ * 16); break; case 1: generateEnd(world, random, chunkX * 16, chunkZ * 16); break; } } private void generateEnd(World world, Random random, int i, int j) {} private void generateSurface(World world, Random random, int i, int j) { for(int k = 0; k < 10; k++) { int TestOreXCoord = i + random.nextInt(16); int TestOreYCoord = random.nextInt(64); int TestOreZCoord = j + random.nextInt(16); (new WorldGenMinable(jason.test.Test.TestOreBlockID, 13)).generate(world, random, TestOreXCoord, TestOreYCoord, TestOreZCoord); } } private void generateNether(World world, Random random, int i, int j) {} }
  17. Thanks. I will try that. So I will try to just package it as if it was like the packages and classes in eclipse? Thanks.
  18. Hello. I have written a test mod with eclipse as my IDE. I can confirm that my test mod works when running in eclipse and it does all of its intended functions. But when I recompile and reobfuscate and add in my assets folder and zip it up and put it in the mods folder, I cannot launch the client, nor a server. Log with the mod in my minecraft instance : http://gw.minecraftforge.net/SPA8 Log from my MinecraftForge/mcp/jars folder: http://paste.minecraftforge.net/view/83d67e0c
  19. I'm pretty sure with magic launcher you would want to use the universal not the installer if you're not already doing that. If that doesn't help I would just wait for Lex to come and help you out. -Or use the default luncher with the installer.
  20. I have a mod that is updated for minecraft 1.6.2 and is compatible with MCForge but I need it to be able to modify base classes. I need to modify two base classes that ARE in the minecraft forge tweak class jar, and add one more class. I was wondering how I could mod the tweak class. I do have the -Dfml.ignoreInvalidMinecraftCertificates=true flag in my profile. I am running OS X 10.9.

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.