Posted May 20, 201312 yr Hi, so im trying to generate a world gen structure whenever i use an item. for example, if i right click with my item i want it to generate a mine shaft right there. Does anybody have any tips for where to start?
May 21, 201312 yr Will be fairly easy. In the method, just call something like this @Override public ItemStack onItemRightClick(ItemStack par1ItemStack, World par2World, EntityPlayer par3EntityPlayer) { WorldGenFileYouWant gen = new WorldGenFileYouWant(); gen.genereateStructureMethod(); return par1ItemStack; } Are you also trying to make your own structure? If you need help with that i can help I am Mew. The Legendary Psychic. I behave oddly and am always playing practical jokes. I have also found that I really love making extremely long and extremely but sometimes not so descriptive variables. Sort of like what I just did there
May 21, 201312 yr Sure go ahead. I am Mew. The Legendary Psychic. I behave oddly and am always playing practical jokes. I have also found that I really love making extremely long and extremely but sometimes not so descriptive variables. Sort of like what I just did there
May 21, 201312 yr Author Ok, so Im attempting to generate a village and im running into some problems, i cant seem to figure out what the Array Of Bytes is for and also i dont really see how to go about generating the village, heres my code: @Override public ItemStack onItemRightClick(ItemStack par1ItemStack, World par2World, EntityPlayer par3EntityPlayer) { IChunkProvider chunk = par2World.getChunkProvider(); MapGenVillage gen = new MapGenVillage(); byte[] par5ArrayOfByte; gen.generate(chunk, par2World, 10, 10, par5ArrayOfByte); return par1ItemStack; } Any idea??
May 21, 201312 yr Make your own generation file for a village? That way you can make it a lot easier... I am Mew. The Legendary Psychic. I behave oddly and am always playing practical jokes. I have also found that I really love making extremely long and extremely but sometimes not so descriptive variables. Sort of like what I just did there
May 21, 201312 yr Make your own village WorldGen file and call that instead. I am Mew. The Legendary Psychic. I behave oddly and am always playing practical jokes. I have also found that I really love making extremely long and extremely but sometimes not so descriptive variables. Sort of like what I just did there
May 21, 201312 yr Author Ive looked into the classes, I dont understand how to make a class that will generate a village Can you point me in the right direction?
May 21, 201312 yr Go on youtube and search how to make structures. Especially the tutorial by theinstitutions. He shows you how to do structure generation and such. Then all you have to do is find the places where specific parts of the village you want and past it into the generate() method in the world gen file you create I am Mew. The Legendary Psychic. I behave oddly and am always playing practical jokes. I have also found that I really love making extremely long and extremely but sometimes not so descriptive variables. Sort of like what I just did there
May 21, 201312 yr Your welcome for what help i HAVE given you, thank theinstitutions for the rest I am Mew. The Legendary Psychic. I behave oddly and am always playing practical jokes. I have also found that I really love making extremely long and extremely but sometimes not so descriptive variables. Sort of like what I just did there
May 21, 201312 yr Yeah that one will do. But you only need to worry about the WorldGen file. The rest is not really that relavent to what you are doing. But its good to know anyway I am Mew. The Legendary Psychic. I behave oddly and am always playing practical jokes. I have also found that I really love making extremely long and extremely but sometimes not so descriptive variables. Sort of like what I just did there
May 21, 201312 yr Author ok, so villages, they are using "components" and what not, so how do i go about getting those to generate? Because in his tutorial he uses world.setBlockWithNotify
May 21, 201312 yr Hmm.. While I look at the Vanilla code, I would suggest using world.setBlock() and make your own replica of a village! Im looking through the vanilla code now and it is a little confusing... I am Mew. The Legendary Psychic. I behave oddly and am always playing practical jokes. I have also found that I really love making extremely long and extremely but sometimes not so descriptive variables. Sort of like what I just did there
May 21, 201312 yr Author Ok, well, if it starts making any sense to you just let me know, please :DD And thank you for all of your help so far
May 21, 201312 yr Or use world edit to make a copy of the village as a schematic and then look at wimpy's 1.4.6 tutitrals for the converter to change that to .set blocks and there you go.
May 21, 201312 yr Author I can't seem to find the video you are talking about, think you could post a link?
May 21, 201312 yr Wuppy29* But yeah, there is that too I am Mew. The Legendary Psychic. I behave oddly and am always playing practical jokes. I have also found that I really love making extremely long and extremely but sometimes not so descriptive variables. Sort of like what I just did there
May 21, 201312 yr its in his 1.3.2 tutorials. Try them I am Mew. The Legendary Psychic. I behave oddly and am always playing practical jokes. I have also found that I really love making extremely long and extremely but sometimes not so descriptive variables. Sort of like what I just did there
May 21, 201312 yr Especially the tutorial by theinstitutions. Bit late here, but aren't his tutorials for modloader...? http://s13.postimg.org/z9mlly2av/siglogo.png[/img] My mods (Links coming soon) Cities | Roads | Remula | SilvaniaMod | MoreStats
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.