Jump to content

Dylan6466

Members
  • Posts

    26
  • Joined

  • Last visited

Everything posted by Dylan6466

  1. It is all good now. The other person determined that i had my assets folder in the wrong spot and moving that to the right location has seemed to fix the problem. Thanks for offering your help though
  2. I have tried uploading the files but there is none of those files you mentioned. I'm not sure if i have done it correctly, here is the link: https://github.com/Dylann6466/oreGen Sorry for the late reply, i have been sick and been focusing on other stuff instead. Do note that i am also getting help from someone else as well.
  3. So do I upload my whole mod file to Git for you to test it? Or just those class files?
  4. True haha, i will reply back here once i think i have done what you have asked
  5. I haven't used Git before. Are you able to please explain to me on what i need to do or link me to a video that shows me what to do?
  6. Hmmm, the block comes up in the creative tab so i think it's registering properly. This is the world gen class file. package com.dylann6466.world; import java.util.Random; import com.dylann6466.Main.MainRegistry; import net.minecraft.util.BlockPos; import net.minecraft.world.World; import net.minecraft.world.chunk.IChunkProvider; import net.minecraft.world.gen.feature.WorldGenMinable; import net.minecraft.world.gen.feature.WorldGenerator; import net.minecraftforge.fml.common.IWorldGenerator; import net.minecraftforge.fml.common.registry.GameRegistry; public class WorldGen { public static void MainRegistry() { registerWorldGen(new WorldOreGen(),1); } public static void registerWorldGen(IWorldGenerator iGenerator, int weightedProbability) { GameRegistry.registerWorldGenerator(iGenerator, weightedProbability); } }
  7. I am having trouble generating my ore in 1.8. I put in a line of code that tells me in the console where the ore is being generated but when i go to that location it's not there. I have gone over the code a few times and found an error here and there but they fixed other small issues and i still haven't been able to fix this issue. Could someone please take a look at the code below. Thanks! package com.dylann6466.world; import java.util.Random; import com.dylann6466.Main.MainRegistry; import net.minecraft.block.Block; import net.minecraft.block.state.IBlockState; import net.minecraft.init.Blocks; import net.minecraft.util.BlockPos; import net.minecraft.world.World; import net.minecraft.world.chunk.IChunkProvider; import net.minecraft.world.gen.feature.WorldGenMinable; import net.minecraftforge.fml.common.IWorldGenerator; public class WorldOreGen implements IWorldGenerator { @Override public void generate(Random random, int chunkX, int chunkZ, World world, IChunkProvider chunkGenerator, IChunkProvider chunkProvider) { switch(world.provider.getDimensionId()) { case -1: GenerateNether(world, chunkX * 16, chunkZ * 16, random); break; case 0: GenerateOverworld(world, chunkX * 16, chunkZ * 16, random); break; case 1: GenerateEnd(world, chunkX * 16, chunkZ * 16, random); break; } } private void addOre(Block block, Block blockSpawn, Random random, World world, int posX, int posZ, int minY, int maxY, int minVein, int maxVein, int SpawnChance) { for(int i = 0; i < SpawnChance; i++) { int defaultChunkSize = 16; int Xpos = posX + random.nextInt(defaultChunkSize); int Ypos = minY + random.nextInt(maxY - minY); int Zpos = posZ + random.nextInt(defaultChunkSize); IBlockState state = block.getDefaultState(); BlockPos blockPos = new BlockPos(Xpos, Ypos, Zpos); new WorldGenMinable(state, maxVein).generate(world, random, blockPos); System.out.println("Ore Generated: " + blockPos); } } private void GenerateEnd(World world, int i, int j, Random random) { } private void GenerateOverworld(World world, int i, int j, Random random) { addOre(MainRegistry.copperOre, Blocks.stone, random, world, i, j, 15, 100, 4, 8, 40); } private void GenerateNether(World world, int i, int j, Random random) { } }
  8. So, what version of Minecraft is this? Since you have a block ID, I know it aint 1.7.2 That must be my problem...It is meant to be 1.7.2
  9. Nope it's still not coming up.
  10. Hmm, i'll test it now and i'll get back to you with the result.
  11. Hey guys, My block texture won't appear in game. This is my line of code: blockCopper = new CopperOre(2000, Material.rock).setBlockName("blockCopper").setCreativeTab(resourceoverloadTab).setBlockTextureName(modid + ":" + "copperore"); If there is anything else you might need a look at, just tell me.
  12. Ok i moved it to PreInit but using 'public final static' no longer works properly, what should i change? Also the first CopperIngot in the line 42 LanguageRegistry.addName(CopperIngot, "Copper Ingot"); is now underlined in red.
  13. I haven't done anything on with <clinit>
  14. This is what the code looks like - https://gist.github.com/anonymous/7495889
  15. This is what is on line 43: LanguageRegistry.addName(CopperIngot, "Copper Ingot");
  16. I fixed the red under line with the .setUnlocalizedName problem. I have no other items in the mod yet and the game is still crashing.
  17. This is what the code looks like now public final static Item copper_ingot = new BasicItems(2500).setMaxStackSize(64).setCreativeTab(CreativeTabs.tabMaterials).func_111206_d("ResourceOverload:copper_ingot").setUnlocalizedName(copper_ingot); But "(copper_ingot)" is now underlined in red and it says "Cannot reference a field before it is defined". Where do i put it? Also how do i put the code in the format like you have? New to modding so un-sure on a lot of things.
  18. public final static Item copper_ingot = new BasicItems(2500).setMaxStackSize(64).setCreativeTab(CreativeTabs.tabMaterials).func_111206_d("ResourceOverload:copper_ingot"); Was that the line you were referring to? That is what i have entered in.
  19. Every time i try to test my mod by starting up the client in Eclipse, it crashes. Here is the crash report: ---- Minecraft Crash Report ---- // I feel sad now Time: 13/11/13 4:17 PM Description: Initializing game java.lang.IllegalArgumentException: Illegal object for naming null at cpw.mods.fml.common.registry.LanguageRegistry.addNameForObject(LanguageRegistry.java:114) at cpw.mods.fml.common.registry.LanguageRegistry.addName(LanguageRegistry.java:122) at ResourceOverload.ResourceOverloadMod.load(ResourceOverloadMod.java:43) 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:545) 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:313) 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.sendEventToModContainer(LoadController.java:201) at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:181) 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:313) 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:112) at cpw.mods.fml.common.Loader.initializeMods(Loader.java:699) at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:249) at net.minecraft.client.Minecraft.startGame(Minecraft.java:509) at net.minecraft.client.Minecraft.run(Minecraft.java:808) at net.minecraft.client.main.Main.main(Main.java:93) 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 net.minecraft.launchwrapper.Launch.launch(Launch.java:131) at net.minecraft.launchwrapper.Launch.main(Launch.java:27) A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- Head -- Stacktrace: at cpw.mods.fml.common.registry.LanguageRegistry.addNameForObject(LanguageRegistry.java:114) at cpw.mods.fml.common.registry.LanguageRegistry.addName(LanguageRegistry.java:122) at ResourceOverload.ResourceOverloadMod.load(ResourceOverloadMod.java:43) 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:545) 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:313) 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.sendEventToModContainer(LoadController.java:201) at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:181) 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:313) 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:112) at cpw.mods.fml.common.Loader.initializeMods(Loader.java:699) at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:249) at net.minecraft.client.Minecraft.startGame(Minecraft.java:509) -- Initialization -- Details: Stacktrace: at net.minecraft.client.Minecraft.run(Minecraft.java:808) at net.minecraft.client.main.Main.main(Main.java:93) 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 net.minecraft.launchwrapper.Launch.launch(Launch.java:131) at net.minecraft.launchwrapper.Launch.main(Launch.java:27) -- System Details -- Details: Minecraft Version: 1.6.4 Operating System: Windows 7 (amd64) version 6.1 Java Version: 1.7.0_45, Oracle Corporation Java VM Version: Java HotSpot 64-Bit Server VM (mixed mode), Oracle Corporation Memory: 841273504 bytes (802 MB) / 1038876672 bytes (990 MB) up to 1038876672 bytes (990 MB) JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used Suspicious classes: FML and Forge are installed IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0 FML: MCP v8.11 FML v6.4.42.949 Minecraft Forge 9.11.1.949 4 mods loaded, 4 mods active mcp{8.09} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized FML{6.4.42.949} [Forge Mod Loader] (bin) Unloaded->Constructed->Pre-initialized->Initialized Forge{9.11.1.949} [Minecraft Forge] (bin) Unloaded->Constructed->Pre-initialized->Initialized ResourceOverload{1.0.0} [Resource_Overload] (bin) Unloaded->Constructed->Pre-initialized->Errored Launched Version: 1.6 LWJGL: 2.9.0 OpenGL: Intel® HD Graphics Family GL version 3.1.0 - Build 8.15.10.2361, Intel Is Modded: Definitely; Client brand changed to 'fml,forge' Type: Client (map_client.txt) Resource Pack: Default Current Language: English (US) Profiler Position: N/A (disabled) Vec3 Pool Size: ~~ERROR~~ NullPointerException: null
  20. The problem has been solved! Thanks for the help!
  21. Ok i got the installer to change to .jar (opened with java), but the black box quickly comes up and then disappears.
  22. How do i change it from winrar to .jar?
  23. May i ask in which way do i install the forge installer? Do i put it in the minecraft.jar file or...?
  24. Ok i will try that.
  25. I only used their method of installing it, and i used http://files.minecraftforge.net/ to download the Recommended 1.6.2
×
×
  • Create New...

Important Information

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