You hi Bessie democracy walked to another minecraft mod tutorial staying in teaching how to add world generation to your game so influenced me I’ve got three different blocks which are all dirt in all now we’re going to be generating in all free different dimensions so that’s we’re going to be Doing today so if you head over to our bit of everything I’ll just close that down else from earlier and we’re going to actually make our world generations so let’s create a new package called world again and I’m going to call it or Jen and this must implement I world Generator like so this means that we have to add some methods which is just the one method which is to generate method and now what we’re going to do is for each of our also one generate we’re going to have a different war generator so world generators private world Generator and I’m going to call it ten underscore over world and I’m going to do this control just Oh to import this and then just copy and paste this for all the different dimensions now in a constructor we’re going to just initialize these so chin underscore over World is equal to a new well Jen minor bull what we’re going to do block state so it’s going to be so it’s mod blocks or Latin or dot get a default state with property and we’re going to just need to put the actual property which is a lock Tin or dot type block count now I’m just going to do eight that’s how many blocks are in your vein so if you don’t know a vein is like how many blocks a group together now that’s initialize ease now in the description you’ll find this run generator method which basically handles the generation I just got an import block pass all this does is just check it’s in the good area so between the max world height and then all you’ll do is just generate it so it’s quite easy and now what we’re going to do is use something known as a switch So we’re going to do switch world dot provider dot dimension dot get dimension so we’re going to iterate through all the dimension so what this does it just gets a dimension and we can have different cases so save doing like if world dot provider get dimension is zero One two just use a switch so let’s say it’s zero which is the overworld so I’m going to just put slash slash / world what we can do is do this run generator generator is the overworld world random chunk X chunk there transit is born this Is how many chances it is to spawn per chunk for iron it’s 20 the minimum height so that’s how bottom number that it goes down to so then maximum height 64 64 falls like the height when like you start getting grass and dirt and that lot and zeros right from bedrock so That’s what we’re going to do for case zero is the overworld and then if we then we can do case one which is the end and we’re going to do this run generator we’re going to do the end the world the random chunk X chunk said chance to Spawn 2006 t4 now these might not be correct values for the end because I’ve never actually generated in the end but we’re going to use these values anyway now minus one is actually Z never so this run generator never world random X said 2006 T for now and when we do sees These are dimension ideas these are normal minecraft one but I know is that the if you have heard of the Aurora mod so like mining dimension if you ever use the mining dimension I know that that is case six as well so then you do case six List run generator so as if it’s six but I’m just going to leave that now what we’re going to do is we’re going to want to actually register a world generator so in the common proxy we’re going to want a public void called initializations this is where all the Initialization stuff will be held and what we’re going to do is game registry dot register I’m going to register a well generator and it’s going to be a new origin and generation wait is just going to be zero and that’s default we said is going to be called an e in it so We can do proxy dot in it like so and that’s practically it okay so I found out that to actually get this to generate in the nether we need to set what the predicate is so in this class which is bulging mind book class on this line it checks the predicate now If we don’t define what predicate is it will automatically son which is basically testing if it’s stone which you don’t really want so what we’re going to do is I’m just going to make new classes I’m going to call it never gen pre de Kurt ass and then this is Going to implement predicate and I think it’s going to be the Java one I’m going to just check this so the predicate knows actually the Google predicate so glad I checked so free to cut the Google predicate now in here we want I block state Josh shift oh it’s going to make Us want to add our apply method and what I’m going to do is I’m going to do if input is not nothing and input get block is equal to blocks never Rach and what I actually do is just return this like so now all this is going to do Is check if the blocks nothing and it’s never AK then it’ll be true you should be able to generate in the never which means you’ll only overwrite the never Rach I’m just gonna stick on the end Z Never predicate sonu never Jen predicates and this one is new end Jen predicates like so which means that you’re now generating the end and the never ok so the game is loaded up so what we’re going to do is we’re going to create a new world called world Jen can Just create it like so and this world is actually gonna have our or in the world which is going to be pretty awesome to be fair and so let’s just sit this is so that like your stuff that you’ve got is actually you can actually make it about Using other mod stuff like is independent so we’re just generating our world and what we can do is we’re going to spectator mode to be able to see everything that’s going on so once it’s loaded like so so and I’m just going to turn a difficulty off but as you can see If you go down here we can see and some tin ore right here so if I go back into creative oh that’s actually silver that’s not tin sorry it’s because we’ve got funnels it generates so every N and we’re going to look around see if you can find out Lovely tin that’s silver again and that’s tin what might is tin from that’s the funnels tin I don’t know it doesn’t show me and this is our over 10 so this one is actually our tin it’s just not displaying or it but you can tell the Last out in there so we can see that it’s generated there so there we go oh here so that if I a free n that is apt in again so you can tell collapse melts down into that so so let’s go to the end which in the end we Should hopefully also be able to see the N or generate hopefully we’re in a box okay a free n and this should also generate here now I don’t know what why level we’re at fifty four so it should generate but I’m not going to be is noticeable that’s generated because quite oh there We go it’s really hard to notice but that is some tin all right there so we’ve just generated in the end and the never so thank you guys for doing like comment and subscribe I am out Video Information
This video, titled ‘Minecraft Modding Tutorial | World Generation (1.10.2, 1.11.2)’, was uploaded by CJMinecraft on 2016-12-08 17:30:00. It has garnered 6996 views and 95 likes. The duration of the video is 00:12:04 or 724 seconds.
Today I teach you how to generate your ore in the end, nether and overworld!
Files – https://goo.gl/eqmZYd
Please support me if you can – https://www.patreon.com/cjminecraft Discord – https://discord.gg/ZvhUKkd
Don’t forget to like, comment and subscribe!
Music by Ninety9Lives Elektronomia – Imagination Video Link: http://99l.tv/Imagination Channel: http://99l.tv/Subscribe Album Download Link: http://99l.tv/GoldenGun
Links: ►GitHub – https://goo.gl/c4JlXe ►My Website – http://cjminecraft.theclever.me/ ►Modding Tutorial Playlist – https://goo.gl/bq6sgx ►Facebook – https://www.facebook.com/CJMinecraft01/ ►Google Plus – https://goo.gl/3n1umj ►SoundCloud – https://soundcloud.com/speed2-pc/ ►MCAmino – http://goo.gl/LzwZ9W ►Votable – http://www.votable.com/CJMinecraft
For modding help or if you want to contact me, email me at [email protected]
My Schedule: Monday or Thursday: ►Modding Tutorial