Hang on guys – you were – yeah and welcome back to another minecraft intro for bird from 1.15 in this firm we’re going to be going over how to create and/or now this tutorial does not work for version 1.14 or 1.13 as it is different so just find that you’d know That this is purely just for 1.15 and this is very easy to do now I’m not actually going to be creating a new or block but if you want to do that and you basically just create a new block you don’t have to make it extend or block as Many people think you have to do it’s just as simple as creating a new block if you want to make it drop XP the video after next will be on advanced blocks so if you look in that one and you can see how good it’s basically the same as my Advanced items but with blocks and and it’s just and XP to drop I think or or drop XP or something like that so yeah so the first thing we’re gonna want to do is go into our world gen car package if you haven’t created that you can go Ahead and create that inside your main package and in here we’re going to create a new class and I’m just gonna call this mod origin actually no I’m gonna cool it tutorial or jet now this is not going to extend anything it’s not gonna implement anything and it’s not Gonna have any annotations it’s just gonna be a normal old class and in here we’re gonna want a method group which is public static void and we’re gonna call that generate or okay inside of here we’re going to want a four loop so we can loop through all the biomes So for biome biome in forge registries okay before registries dot biomes now this is a list of all the biomes that Forge has registered so even if you have other mods and any biome that Forge has registered or another mod has registered into forge it will take all those biomes And the vanilla biome so basically pretty much any biome and in here we can do one of two things so first thing we can do is check the biome so we can check for a certain thing now I’m just going to give you a quick demonstration Of this so I’ve got a check that the biome is a Plains biome and as I don’t want it spawn in any other bite and this is purely just for this toriel sake and but you might want to do this you could you can do several things in here so if Biome and then you can do dot and then you’ve got all these different things you can do and like does water freeze dust no generate it’s high humidity and you can do all these different things but I’m just going to do if biome is equal to biomes dr. Plains so it will Basically only generate the or if it’s the Plains biome now obviously you can do an else here for example and you know do something in here and but I’m not going to do that I’m just going to keep with the F and so inside of here we’re going to want to do Biome and I see no we’re going to create the placement first so if we do configured placement and we’re gonna call this custom config and that’s going to be equal to placement dot count underscore range which will only show up like this if you have the If you have a new mapping you might need to update your mappings to do that count range get rid of this and then dots and then this is unmapped so it is this one right here so it’s that function and that takes in a new count range convict So the first thing here is basically the the camp so how common it is so 20 for example is really common and so I am going to set it to 20 because I want it to be really confident 20 and when I say really common I mean like more common Than coal so you know really common next is the bottom offset so this is basically the offset from the bottom of the world and and I’m just going to set that to 5 so I want it to be 5 blocks off the bottom of the world the top Offset is the offset from the top of the world so I’m just going to set that to 5 as well but that one’s a bit strange and then this last one is maximum so this is basically the maximum height it can generate take away the offset from the Top of the world so it will be this whatever this value is take away this I don’t know why it works like that and I don’t know why it’s not just maximum I don’t really know why the offset exists and I’m gonna say the maximum is 25 just Like that and if we import from figured placement and there we go and then we actually need to add the feature to the buyer so yeah that’s that’s what they’re called so all our features and structures also work as features now so that’s basically what they’ve called it Anything that generates in the world which is on top of the normal chunk generation and it’s called a feature with some exceptions but mostly features and and add a feature you just do biome dot add feature the decoration stage is going to be generation stage that’s not right generation stage dot decoration dot Underground ORS and then the feature is going to be feature dot or not emerald or thank you what just happened Peter dot or dot with configuration and that’s just import feature so that we can get all our things make sure it’s from the Minecraft package and in here You’re gonna want to do a new or feature config that’s gonna take in or feature config dot filler block type and then this is basically the block that your or is going to generate in and so natural stone is just a stone granite diorite and andesite never AK is just never AK And and if you want to create your own you can use create down here which uses a predicate of the state I’ll only use that if you know what you’re doing really but I’m just going to use natural stone because obviously in a Plains biome that’s kind of Weaver and then the Next parameter is the block that you want to generate so I’m just going to do block in it dot example underscore block and then keep it simple if I could actually type that is and then don’t get default state if we import block in it So as you can see that’s now going to the edge of screen so that’s just ctrl shift effort and that will fix it up a bit and then the next parameter is basically I think it’s how common it is no it’s the size so the maximum size of The other or so the max vein side and I’m gonna set that to be ten and then after to bracket so come to brackets out you can do dot with placement and then that will take in our custom config which is up here if I just ctrl shift f5 It weird so let’s just fix this up ourselves okay and then like via we can just push that over there that’s not really an issue so that’s pretty much it we just need to register this really so we can close that class now we can go Into our main class and we need to create a new method in here so we need to make sure this is a lastly first thing we need to do is this if you haven’t already and you need to make sure this is a at mod event bus Subscriber and the bus needs to be bus not mod so you know that’s quite important if you don’t have that just copy that in the video and in here we’re gonna have a subscribe event so at a subscribe event it’s very important you have that avoids the method never be Fired and this method needs to be a public static avoid and it’s and I’m just gonna call it load complete event and that’s gonna take in FML load complete event and we’re gonna call that event okay and in side of here and we’re just gonna simply do a tutorial tutorial origin dots Generate or so we need to make sure this is obviously done before the service starts and and it is because FML load is done way before the service starts so that’s good if it started after the service starts it will crash because you can’t do it post service status so That’s it I’m now going to load into the game and see if I can find my or that’s not going to be the quickest thing in the world but I’ll see if I can find it and then yeah I’ll see you guys if I Find it ok so guys I am in the game as you can see with my coordinates I find explains why I’m wasn’t too easy so I’m at negative 60,000 but here we are here is my or is there if I look over there I don’t know if you can see it but it’s About there there’s some more and there’s some there there’s loads and because I’m gonna playing spying yeah some there just something there there’s some there’s some they’re there they’re pretty much anywhere I go it’s gonna be there and so yeah that’s us actually that’s it then for this tutorial so if You guys enjoy so please do be sure to smash face into that like button and subscribe as well because why not and yeah I will see you guys in the next tutorial good bye Video Information
This video, titled ‘Minecraft Modding 1.15 | Episode 12 – Ore Generation Part 1’, was uploaded by TurtyWurty on 2020-02-16 21:15:16. It has garnered 10194 views and 237 likes. The duration of the video is 00:12:29 or 749 seconds.
Hey guys, TurtyWurty here, in this video I cover how to do ore generation. In the next video, I will be going over how to make custom armour. Hope you guys enjoy the video! Note: I will be going over other methods to create items/blocks in the future and I will let you decide which to choose based on different ways.
My Discord Server: https://discord.gg/d5cGhKQ My Personal Mod(Vanilla Expansions): https://www.curseforge.com/minecraft/mc-mods/vanilla-expansions Episode 11: https://youtu.be/-DHk61mLjHA My GitHub: https://github.com/DaRealTurtyWurty/1.15-Tut-Mod
Minecraft Forge 1.15.2: https://files.minecraftforge.net/maven/net/minecraftforge/forge/index_1.15.2.html