Jump to content

Naddox

Members
  • Posts

    19
  • Joined

  • Last visited

Everything posted by Naddox

  1. Here is where I got the code, mod generated from MCreator, and this works 100% perfectly fine. http://pastebin.com/66cgUXMJ line 142-149 public void generateSurface(World world, java.util.Random rand, int chunkX, int chunkZ){ for(int i = 0; i < 40; i++){ int randPosX = chunkX + rand.nextInt(16); int randPosY = rand.nextInt(256)+0; int randPosZ = chunkZ + rand.nextInt(16); (new WorldGenMinable(mod_quartzOverworld.block.blockID, 40)).generate(world, rand, randPosX, randPosY, randPosZ); } }
  2. dont know where you got that 5 or the 5(0+15) but it is multiplied by 16...
  3. So I am guessing that should go in the @Init area and does this remove the need of having the generation class? and could you give an example generation using this method please?
  4. Hey all, I am trying to get some of my blocks to generate in my worlds. I have made a world gen class and registered it within my main class and have no issues at all there or in my world gen class, but nothing new generates in my worlds. Can someone please help me out? I am using this tutorial as a semi-base: http://www.minecraftforge.net/wiki/Adding_World_Generation and using the generated code from MCreator for the code to generate: http://pastebin.com/aMH988h3 Main Class: http://pastebin.com/330u2s3w World Gen Class: http://pastebin.com/ThDu7qci
  5. What ender said, please explain in detail your problem and post any errors you have gotten.
  6. at net.minecraft.item.ItemSword.<init>(ItemSword.java:23) at Eclipse.mod.CoolioItems.item.ItemEmeraldSword.<init>(ItemEmeraldSword.java:11) at Eclipse.mod.CoolioItems.common.CoolioItems.<init>(CoolioItems.java:53) This right here tells you were the errors are occuring. net.minecraft.item.ItemSword.<init>(ItemSword.java:23) 23 is line 23, did you modify a default class?? ItemEmeraldSword line 11 = super(i, CoolioItems.DIAMOND); CoolioItems line 53 = EmeraldSword = new ItemEmeraldSword(1860, DIAMOND).setUnlocalizedName("swordEmerald"); Those lines are causing your errors.
  7. No problem, if you need any more help with it let me know and I'll be sure to give you some, but just experiment with that and should be able to find your desired effect.
  8. Here is a basic generation code that should help you out. http://pastebin.com/aMH988h3
  9. From when i load the world and then place a block 2013-03-30 14:52:42 [iNFO] [ForgeModLoader] Loading dimension 0 (New World) (net.minecraft.server.integrated.IntegratedServer@201299c7) 2013-03-30 14:52:42 [iNFO] [ForgeModLoader] Loading dimension 1 (New World) (net.minecraft.server.integrated.IntegratedServer@201299c7) 2013-03-30 14:52:42 [iNFO] [ForgeModLoader] Loading dimension -1 (New World) (net.minecraft.server.integrated.IntegratedServer@201299c7) 2013-03-30 14:52:42 [iNFO] [Minecraft-Server] Preparing start region for level 0 2013-03-30 14:52:43 [iNFO] [sTDOUT] loading single player 2013-03-30 14:52:43 [iNFO] [Minecraft-Server] Player12[/127.0.0.1:0] logged in with entity id 40 at (-123.26390481496077, 4.0, 1292.508464170216) 2013-03-30 14:53:21 [iNFO] [sTDERR] java.lang.ClassCastException: com.NaddoxMod.BlockBasaltStep cannot be cast to net.minecraft.block.BlockStairs 2013-03-30 14:53:21 [iNFO] [sTDERR] at net.minecraft.client.renderer.RenderBlocks.renderBlockByRenderType(RenderBlocks.java:462) 2013-03-30 14:53:21 [iNFO] [sTDERR] at net.minecraft.client.renderer.WorldRenderer.updateRenderer(WorldRenderer.java:226) 2013-03-30 14:53:21 [iNFO] [sTDERR] at net.minecraft.client.renderer.RenderGlobal.updateRenderers(RenderGlobal.java:1535) 2013-03-30 14:53:21 [iNFO] [sTDERR] at net.minecraft.client.renderer.EntityRenderer.renderWorld(EntityRenderer.java:1119) 2013-03-30 14:53:21 [iNFO] [sTDERR] at net.minecraft.client.renderer.EntityRenderer.updateCameraAndRender(EntityRenderer.java:991) 2013-03-30 14:53:21 [iNFO] [sTDERR] at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:867) 2013-03-30 14:53:21 [iNFO] [sTDERR] at net.minecraft.client.Minecraft.run(Minecraft.java:756) 2013-03-30 14:53:21 [iNFO] [sTDERR] at java.lang.Thread.run(Unknown Source) 2013-03-30 14:53:21 [iNFO] [Minecraft-Server] Stopping server 2013-03-30 14:53:21 [iNFO] [Minecraft-Server] Saving players 2013-03-30 14:53:21 [iNFO] [Minecraft-Server] Saving worlds 2013-03-30 14:53:21 [iNFO] [Minecraft-Server] Saving chunks for level 'New World'/Overworld 2013-03-30 14:53:21 [iNFO] [Minecraft-Server] Saving chunks for level 'New World'/Nether 2013-03-30 14:53:21 [iNFO] [Minecraft-Server] Saving chunks for level 'New World'/The End 2013-03-30 14:53:22 [iNFO] [ForgeModLoader] Unloading dimension 0 2013-03-30 14:53:22 [iNFO] [ForgeModLoader] Unloading dimension -1 2013-03-30 14:53:22 [iNFO] [ForgeModLoader] Unloading dimension 1 2013-03-30 14:53:31 [iNFO] [Minecraft-Client] Stopping!
  10. My face is pounding my desk at the moment... I fix one issue and it causes many more... added a boolean, based on how the original blockStep does it, step still crashes game and it added 6 more of them to the game for no apparent reason, so now I am back to the original code, with a few added lines, pounding my head for the solution that I am sure is in front of me but I am oblivious to. Ughhh http://pastebin.com/3nZXn8Wk - new code.. and yes I know I can do the texture with less lines, I was just slapping that in there from another block that used multiple textures, haven;t done cleanup yet..
  11. Coding for 36 hours has taken its toll on my observations >_< I think I should be able to figure it out now once I get home. Taking a break atm.
  12. make a new topic with your error log
  13. Hmm thought I had done this already as I did notice it before, ok so now when I do this, eclipse says that my constructor is errored. http://i115.photobucket.com/albums/n309/Lord-Omega/error-1_zpsd62a889d.jpg[/img] which throws me for a twist aswell
  14. I have a similar code that works perfectly, only difference I see between yours and mine is you have: proxy.registerRenders(); and I have: proxy.registerRenderThings(); When I try to add yours, eclipse says that method needs to be created.
  15. Your structure is good, care to show the code for your blocks so we can see how you do it?
  16. Hey everyone, working on my mod, I went to add my first step and test it and for some odd reason my game crashes when I try to place my custom step. Here is the log for Eclipse during the crash portion. And here is the block class file: http://pastebin.com/ZDF88PE8 and my main class file: http://pastebin.com/330u2s3w I have looked at every tutorial I can about making steps and none of them have been helpful because mainly none of them work in 1.5+ like they did for when they were made, so any and all help is and will be greatly appreciated. Thank you. EDIT: Full Crash Log
  17. Done, done, & done(again).. Didn't help(again). Did a little more research and found out it was because forge was attempting to load old mods I had in /mods/1.3.2/ directory. Simply moved them all and bam, worked. Thanks for attempting to help anyways.
  18. Crashes everytime. Have no mods installed except ModLoader for mc 1.4.5 and Forge latest recommended build I installed ModLoader first, then Forge, then I deleted Meta-Inf, started client. Using default client, crash log: FML Client Log: ModLoader.txt was not generated. For research, I read the FML log to where it said severe, which is how I determined it was something with injection. Did a search on here to see if anyone had experienced the error but came to find nothing. Did a google search that led me to a couple threads on minecraft forums but didnt have anything to do with the injection error. Thanks for the help.
×
×
  • Create New...

Important Information

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