Hey what’s going on guys dirty work here and welcome back to another minecraft mining swirl fort version of 1.15 in this trailer I am going to be going over biomes so I’m going to be doing biome for deferred registries and as that’s a better way to do things so let’s get Started so the first thing you’re gonna want to do is create your bio minute package inside your in it bio minute class inside your init package and inside of here you want the registry the deferred register now to make this a bit quicker I’m going to copy that from Blocking it new by just copying this line right here and there we go now all you need to do is change block to biome and we’re gonna rename this to biomes and forge registry biomes just like that make sure you import biome and there we go now you Need the registry object so that is just a public static final registry object and then you’re going to take in the butt biome not the block and I’m just gonna pull this example underscore biome and that’s going to be equal to biomes dot register first is the name of the Biome so and let’s call it example underscore biome and the supplier is just like normal so like blacks and then it is a new example biome now obviously we haven’t created that yet so we need to go ahead and create this now I’m going to create this inside world Gen actually not well doc gen I’m gonna put this in world dot biomes and I’m gonna call this what do we call it example biome right example buy it yes example buy in there we go and this is just going to extend biome just like that now just add the Constructor there you go and we need to make that public so we can use it in other classes and now this is where you can add any other methods so you can do carvers features entity spawning structures you can build the services you can say whether snow generates Whether water freezes you can get the sky color you can get the river not sure what that does entirely and but you can do all these different things as those different things you can do and what I’m going to do is I’m going to add a spawn And I’m gonna do spawn list entry dot I think you can add it how do you actually add it oh I think you add it don’t feel the way you could add it add spawn there you go and then entity classification dot and I’m gonna add just creature Spawn nest entry is just a new spawn list entry first is the entity type so entity type dots I’m just going to use a vanilla one but when we create our own entity and we will add those at that instead the weight is how many of them there are Or like yet how many of them of them there are so the higher the number the more of them there are I wouldn’t put the number too high and just in case I think you can open implementation and it should show you should show you it’s used but it’s not Showing you where it’s used what’s this dot spawns let’s have a look and then we can see if it’s used in here spawn stop hurt mm not sure not sure where’s the shoes then in energy yeah I know but you can see the vanilla values if you just look in the vanilla biome Classes I’m just gonna add a weight of 20 I think that’s quite high and I’m not sure and the main group count is literally just the minimum that you can find in a group so I want that to be – I want the maximum to be 10 so there’s Gonna be quite a lot of bees and you can also do other things in here as well so for example you couldn’t do temperature noise you can change the water color so that is an int there was a way you can also set the blocks actually I will Cover that in a minute but there is a method I want to add and that is add actually don’t add it as a method but I want to add actually no I will leave those for those tutorials specifically so now obviously if we go now by a Minute we will have and once we import this because we haven’t added the build so for that it is just biome dots builder it’s a new biome drop builder isn’t it so a new biome builder and then you can do dots and there’s all these different things you can do so first Thing is the depth I think that’s how low it is but I’m not sure I’m not going to touch that downfall is rain I believe and no that’s precipitation I note that that’s the type of precipitation so the rain is how much so if I go precipitation you can then do rain type Dots and then you’ve got none rain and snow I’m gonna make it snow and then after that we can do scale so that’s basically how big the biome is and and so that I can find this easily I’m gonna put that to 1.2 F which I believe is Pretty big you can do surface builders but I’ll go over that in a second temperature so the higher this value is the hotter it will be and the lower is the colder it will be so I’m gonna put it as 0.5 which is slightly hot I think Zero is just normal you can do water color and the water fog color so to do these I am going to go to a site I’m gonna bring this over and I believe the site is a decimal cut there it is math is fun this will be linked in the Description if you just come to here you can decide on the color that you want I’m gonna have it is this pink color right here so just copy that in paste that there you go and then let’s do the water got color as well so you basically want That to be slightly more gray ish and like do you want it to be like a light gray but also still pink so it’s slightly tricky to do and yeah maybe a bit lower than that that might work yeah I think that might work okay so now that you have done that I’m going to be covering the surface builder so let’s just go on to the end of this and so this is going to be kind of long and but we’re going to want surface builder and no I came to million brackets out so if this builder the first thing is just going resurface Builder dots default because I want it to just be the default but obviously you can do all these different particular surface builders or there is ways to create your own and I’m just use default and then the next thing is a new surface builder config because you want to Config yet you want to config this and in here it takes three states so let’s just figure out why this is being so dodgy and can we not format that why up that’s why there we go that’s better nicer so this takes in free block states so the first One is the top block so basically the main block of the biome and I’m just gonna use block in it new because I want to use deferred registries for everything now death block and actually yeah no no no no no let’s just use block in it let’s use our example block and then Don’t get default state for the top block and then for the middle block we will use our block in its new and we will use def block docket D don’t get don’t get default state and then yes so this is basically the block under the top block so this would be for example The grass and this would be the dirt and then this block right here is the one you find under water in your bio so for that I’m going to use a block if you left use a vanilla block for this one so that is just going to be like blocks and Let’s do a case year planks don’t get default state just like that and let’s just format that okay so the next thing we’re going to do is the category so that’s basically what biomes it will try to spawn it next to so in order to do That let’s make sure we’re out of the right brackets yet that one’s right as you can see it links to that there we can do dot category nope nope nope that’s not right dot category there you go and he’s just category dots and as you can see there’s loads of different Options I’m gonna spoil it next planes to make it a bit more common as of the planes are a common biome okay so the next who I did explain slightly wrong I had to look this up but the next one is the depth and the downfall so from what I understood the Downfall was actually no I got the downfall right so if we do duck downfall and this is basically how often it rains I’m gonna make it zero point five or snows depending on what you set the precipitation to but I’m gonna put point five so it’s half and half and and it Will snow half the time and it will be fine not half yeah all right and then next is the depth so I explain the depth slightly wrong but it’s basically how low down or high up your biome is so the default value for depth is 0.125 and so I’m gonna set this slightly lower and you’ve got to be careful with this value as any change can really adjust how high up or low down your biome is and but I’m gonna do depth and I’m gonna put zero point one two and you will see how much Of a difference that will make one thing I would just like to mention with the water colors right here is I use decimals now if you weren’t familiar this decimals is a very rarely used color scheme and more commonly people use hexadecimal but as you can see this Takes in an int and a lot of people think the only thing you can put is decimal numbers now this is actually wrong if you didn’t know you can put zero X and then the hexadecimal value so for example F F F F F F and and that Would work as you can see if I put that in here that would work perfectly fine so you can have hex if you want and I know a lot of people do prefer hex and a lot of people get angry when I use decimal I just use decimal because That’s kind of what minecraft uses so I just thought why not just use decimal it takes just as long to search up what color is so get it okay so now that we have done that there is one last little thing we need to add here and that is The parent so for example well basically a parent is what biome is parent is pretty much so I think the best example of this would be the bamboo forest the parent of the bamboo forest is the jungle biome so if you want it to be by itself and not really have a parent Biome you can just parent off of null and that will work absolutely fine okay so now that we have done that I just want you to go back into the biome class so let’s go back into our example biome and I’m going to show you a few things So what we’re going to do here is just go into what can we do and because as you can see if I do add there is a few things we can act so we can add the Carver feature spawn which is spawn structures and I think there’s something Else so something else no that’s all you can add so basically the Carver is for caves the feature is for things like grass trees flowers and that stuff spawn is entities structure is structure I think you can add lakes as well or at least I thought you could add Lakes but maybe you can’t so yeah and the way we can find basically how to do this is by going into the vanilla class called default biome features oh I put default twice now to go into this class just hold ctrl and click on It and if you go down a bit you should find the method yes here you go so you have the Karthus you have the ocean carvers the structures the lakes desert lakes monster rune stone variants saws extra gold extra emerald ore in fact its own all these different methods does Hundreds and hundreds of them and so yeah and a lot of them actually aren’t mapped yet so if you look here like these ones aren’t mapped but these are just mega spruce trees and this is also a mega spruce trees it’s different config and but yeah there’s all these Different methods so less let’s go ahead and add some so s collapse at the top because that’s where the most common ones are let’s go and add let’s add a carver shall we so obviously if you want you can create your own Carver’s and ocean Carver’s structures lakes all These different things and to do that you just need to basically look into world Carver’s so if going to here you can basically learn how to register a new world carver and it’s slightly complicated and there’s a lot of maths to it and but if you know what you’re Doing you can you can probably do it so let’s just go back into our biome and let’s go ahead and add the default cave so to do that we’re just gonna add Carver now the carving stage or its new carving stage isn’t it ah no that’s it so it’s generation stage carving docks Err and there’s also liquid as you can see right there let’s just put that in is there anything else let’s have a look no it’s just air in liquid I’m not entirely sure what that does I’m not really an expert with biomes I’ve only created one biome in 1.15 and that was For the community modern that was basically just a copy off of that and as you can see we’ve got the world Carver cave by doing biome create Carver and it takes in first the world Carver and the probability config so this value right here is super super sensitive that’s why As you can see they put quite a long decimal because it’s it’s really quite sensitive and I’m actually gonna add another Carver four ravines as well so generation stage generation stage dot carving and and let’s do air again and then biome dot create Carver world Carver dot and as you can see those Canyons caves he’ll caves underwater canyons and caves I kind of want to see what happens if I put a he’ll cave should we put a he’ll cave let’s try a hell cave let’s see what that does and then the config is just a new probability config so new probability Config and the float let’s just look at the probability for ravines so as you can see that’s 0.40 too so I’ll just put that in there to be safe you kind of want to always stick with safe values rather than unsafe values and now let’s add a feature so you can Basically use all of these let’s have a look at one we can do so let’s add fossils so let’s copy this we’re gonna add a fossil it’s pretty nice so let’s say feature dot fossil with configuration placement so let’s have should we have a high chance because obviously fossils are normally Relatively rare let’s put an 128 for that value oh I think I accidentally removed bracket yes I did and whatever feature shall we had so we can also add trees of course if we just find some trees in here and add oak tree flowers what I’m not sure let’s add huge Mushroom shall we so let’s add all of the huge mushrooms why not why not let’s go all out with this and we just got to remove the biome in because obviously it’s our own biome and obviously you can do all other things that you want and you do need to make Sure you actually change this to the right one though so that’s going to just be defaults I think it’s public anyways default biome features oh do you fault biome features please say it public it is okay that’s good if it wasn’t that’d be a bit of a pain because we would have to Actually edit ourselves long yet and just change that what it actually is and we can fix that up and obviously you can go ahead and add all your different features but that’s all I’m going to add for the features and stuff like that’s okay now those just One last thing I would like to change and one last thing I would like to show you so first I’m going to actually change these all to this dots I just prefer to do that I don’t know why but I think oh it just looks a bit better and And it allows you to understand it a bit better and I would like to also mention that you can do default biome features and you can call one of those methods in here like that now just so you know for example something like the mushrooms and The trees might not work and the reason I say they might not work is because our ground block isn’t grass or dirt basically you can’t plant things on it so they might not work I’m not too sure and don’t know how vanilla handles that But we will see but I’ll see you can do default biome features to add and there’s all these different things you can add directly from the default biome features so let’s add what should we add just as an example here let’s add let’s just add the ORS and so we have those as Well and let’s also add the extra gold default biome features add extra gold of this and just because why not let’s add the emerald as well of this and we’re using this because that’s the biome that you want to add it to next well finally actually we need to Set the registry name of the biome so to do that it’s just this dot set registry name actually we don’t need to do that because the deferred of registry does that for us so because as you can see if we go into our bio minute right here this is the Registry name because if you look here string name if you look here the new entries name it will automatically have the mod ID prefixed and it knows the molar ID because of this right there okay so the next thing we’re going to do is create two methods in here so these Two methods are pretty much the same as how we did biomes in 1.12 if you haven’t done that but I’m going to write them out anyways because I know a lot of you haven’t come from 1.12 so the first method is going to be a public static Void and that is going to be called register biome that is first going to take in the biome and we’re gonna call that biome and then next is the type now we do a type dot not like that but a type dot so that we can have multiple Types and you need to make sure you import the correct type so that is the one from not that one you’ve got to make sure you import the crap type it’s the one from biome dictionary so just go down see if we can find it you need to Make sure that you have the right one how wise this won’t work there’s a lot of types as you can see there you go net on minecraftforge common biome dictionary you need to make sure you import that one and in here we can just do the biome dictionary Dot ad types biome and types and then biome manager dot ad spawned by him now this is basically how you add it to the overworld or yeah the over well now we need a method which actually calls this method and that method we are going to make a public Static void so that we can call it from other classes and we’re gonna call that register biomes okay and in here we can just call the register biome and actually we can make this register by a method private so that’s it can’t be used from other classes actually it’s Probably better to make it yeah private private pilot and register by an first one is and the biome of course so that is example biome get and then the types is the different types that you want so we can do type dots and there’s basically all these different types so Because mines planes I’m going to choose typed up planes and then you can choose all these different things this will basically determine how it spawns but I’m also going to do quite a few different things we could do maybe sparse I’m just gonna choose overworld I don’t want to go too complex but Obviously you can add basically as many as you want but I’m not gonna add anymore now the final thing we need to do is go into our main class and cool these so going here and after we have registered our tile entities we can do biome in it Dots biomes dot register and we going to pass in the bus and then we need a new subscriber event in this class so you need to make sure you have this mod event bus subscriber at the top of your main class and then we can just add a New tribe event just like that and make that a public static void on register biomes that is going to take in a final registry event dot register and that’s going to be the biome event just like that and in here we’re basically just going to call biome in it dot register biomes Just like that so that will be called when all the biomes are registered but this should be called before this is anyways so that is actually pretty much it so I’m now going to close all of these fix this up and I’m now going to load into the game make sure you have Generated a new world obviously and because otherwise you won’t be able to find your biome and unless you go to ungenerous it chunks so yeah I will see you guys in the game okay so guys I am now in my biome now to find this biome I did have to Create a buffet world and I spent quite a while looking for it otherwise and I couldn’t find it but as you can see there are bees there’s my block as the top block and then it’s the def block and then just stone of course yeah for some reason Well not for some reason and as I thought the mushrooms and trees and stuff didn’t spawn because it’s not or grass and you can see there’s some interesting landforms I don’t actually know why it’s quite so spiky and that I wasn’t entirely sure but as you can see there’s a lot of gold @y 64 so yeah i don’t know why it’s so noisy i think that is because of the depth that I set because I set 0.125 no 0.2 instead of 0.125 double zero something like that I think I set 0.12 yeah yeah and as you can see the water is nice and pink and The fog when I go into it you should see is that back sort of color we got the a case year planks at the bottom it honestly doesn’t look bad I think if we fix these these missing textures I think I think it could look pretty good and Personally I quite like generation like this because it forms some really cool landforms and if I just go in spectator mode my every and n if you weren’t aware we should be able to see caves and yeah there is caves and I wonder if never caved never caves actually worked they Probably didn’t actually work because it’s not in the nether and but it was worth shop right and fossils should be here and but honestly the trance that we’re gonna find one because they’re still pretty rare is pretty slim just check around for a few more seconds look at this cave that’s pretty cool Pretty interesting cave then there should be emeralds here as well but testing that isn’t oh yeah there you go emeralds just as I said that yeah there should be fossils here too but I can’t bother to spend hours looking around for that so yeah and I hope you guys did enjoy This tutorial I am currently going to show you the next or at least the video audio so here is here is the video audio so obviously this is the biomes and the next video is containers so basically by containers I mean like barrels basically blocks that have an inventory and GUI is Basically gonna be with that video as well and then I’ll do advancements config dimensions fluid world types and etc etc you can see all the way down to core mods and guns which is very interesting and it may not stick to exactly this schedule it might change a Bit but I think the overall is gonna be this is roughly the schedule some of these videos I should get through very quickly like doors slabs crops passive entities world types dimensions config fluids advancements they’ll all be very quick tutorials I’m probably going to record a lot of them today and tomorrow And I will gradually post them I’ll probably do a lot of recording at weekends and post during the week and week over weekends and whatnot I’m hoping to get at least two tutorials out a week and every week that’s that’s my hopes but I know when it is my exams When it’s those weeks I probably won’t have any out for the weeks of my exams we’ll see when it comes closest at the time how I can manage the time I have so yeah I do hope you guys did enjoy this tutorial and it’s very exciting and We will have may dimension for this soon and a world type as well but I think this looks pretty cool nevertheless so yeah if you did enjoy this tutorial please do be sure to smash her face into that like button and subscribe if you really enjoyed please do be sure to Share it and yeah I will see you guys in the next video goodbye Video Information
This video, titled ‘Minecraft Modding Tutorial 1.15 | Episode 21 – Biomes’, was uploaded by TurtyWurty on 2020-03-15 21:45:11. It has garnered views and [vid_likes] likes. The duration of the video is or seconds.
Turns out that to get it to spawn in the overworld, you need `BiomeManager.addBiome(BiomeManager.BiomeType.COOL, new …