It’s finally here from custom ore generation in minecraft let’s see how to do that fortune fabric courses with advanced topics such as entities custom structures and three armor models linked in the description below all right we found some packing intelligent once more and in this tutorial we’re finally going To tackle one of the most requested topics ever custom or generation and you’re gonna be crazily surprised that while it might look quite complicated it actually is fairly straightforward but for the time being let’s just go into our world package into the mod configured features class and once again i will copy over Some stuff all of this is of course available to you in the description below in the github repository in individual adjusts as well and you can see that we have two different things that we need one is a list of or feature config targets right here and then the Other one is once again the configured feature so the list here is actually very very interesting because what it basically does is it says okay stone and stone or replaceables right here can be replaced with this mithril ore and then deep slate or replaceables can be replaced with this deep slate methyl ore So we’re basically defining what can spawn where and it was very interesting if we actually go into the stone or replaceable so we can see this is a rule test and specifically this is a tag match rule test so what it basically looks for is that hey it’s a specific Block inside of this block tag if that is the case then indeed that block can be replaced with mithril ore that’s the interesting thing here now if you just think a little bit further you can first of all of course see netherrack as well as the base stone Nether right here so you can see that should pretty much mean that you can also replace another rack with something if you go one step further how can you do end stuff well literally just copy it over instead of using blocks.netherac use blocks.end and then You have a rule test for end so this is pretty much how easy it is to well add some other stuff here as well highly recommend just try it out and see how far you get with it it should be very straightforward especially if you have a little bit of java knowledge there Something like basic to intermediate should be more than enough for you to do this and then when it comes to the configured feature right here you can see the mithral or configured feature once again uses the feature.or and then a or feature config now this or feature config is very straightforward to Understand it just basically takes this list right here and then the size right here is the size of the vein so this should be the i’m not sure if it’s like the average vein size or the max vane size something like that but it’s the vein size and if we Actually go into the feature or and see where this has been used this is used in the or configured features class and we will actually be able to find let’s see for example something like emerald right in line 55 actually has a size of three and then two is actually the smallest One which is the ancient debris small so keep that in mind right so i wouldn’t add this size i wouldn’t make it less than two i probably wouldn’t even make it less than three i highly recommend if you want your ore to be really rare maybe three should be enough but there Is one more thing that we can basically do in the place feature in just a moment where you can also change how many veins spawn but for this we’re actually going to need a new class in the feature package which is the mod or features that’s just what i called it And this is just going to have some helper methods for us so i’m going to copy them over one more time this is of course once again all available to you as well so we can actually take a look at them i believe in the place features When they are in let’s just go oh or gold right here and then they are there there they are so you can see this is the modifiers modifiers with account modifiers for rarity so i’ve just basically taken them they’re all private i don’t know why if they would be public It would be much better but for the time being we’re just gonna basically copy them over because they’re not that complicated it’s gonna be fine and then in our more placed features once again i’ll copy over the mithra ore and it’s going to be very straightforward indeed You can see this is the place feature in this case we’re going to take the modifiers with count so how does this work well this is this should be the veins per chunk so we’re going to see seven veins per chunk and then we have a height range placement modifier so this Modifiers with count as you can see takes in a placement modifier and there are some really cool ones so this is really cool the trapezoid is basically a triangle with one point at negative 80 and the other point at positive 80. what this does is basically the placement Modifier here of trapezoid makes the distribution of this ore so that it basically spawns the most in the middle of those two well y values right so so the most or we would expect to find right around zero even though negative 80 does not exist that doesn’t matter Then it’s basically cut off at the bottom point so you might have seen the picture that is how or spawn in 1 18 1. it’s really interesting and there are some really cool placement modifiers as well so if a middle mouse button click on this and actually press ctrl h after Clicking on the placement modifier here you can see there are some really cool ones for the placement modifier but it even goes further because not only can you use different placement modifiers you can also use different height providers so if i click on this and press ctrl h here you can see there’s Bias to bottom uniform there’s trapezoid just like we’ve seen the constant one very biased bottom and weighted list you can basically spawn your ores however you would like them to i highly recommend once again playing around with this i cannot stress this enough playing around with this the numbers here is Just the best idea and after we have added this we can now add the mod or generation right here some mod or a generation and what you will find is that the actual method here looks very very similar to the other ones so let’s just import this pressing alt and enter You can see this one actually just adds them all to the found and overworld biomes and then this is the generation step underground horse which is very important if you middle mouse one click on this you can see underground ores happens before vegetal decoration therefore when we go into the mod world Gen class right here in the method we want to mod or generation to generate the oars before we add the flower and the trees that’s very important keep that in mind otherwise it will not work so be wary of that but otherwise that is pretty much all that we need to do you Can see you know overall it’s not that crazy when you think about it of course there’s a lot of stuff to play around with namely of course the size here and then the count right here but once again be open to experimentation try it out a Bunch of stuff also take a look at the vanilla examples cannot stress that enough but then that’s pretty much all that we need so let’s generate a new world and let’s see if it works all right fans was back in minecraft so let’s see i think i already spotted it Right there it is so we already have some of our custom or spawning right here you can see deeply deep slate mithril or some more here this would be at what is this about so let’s just go into creative again and then this is you know 39 So that’s you know pretty much what you would expect it to there’s some more even up here so you can see spawning that’s actually not r or this was diamond let’s see some more there it is so you can clearly see there is quite a few of it spawning all around here and This i mean this is really freaking awesome i mean that’s also a really freaking awesome cave so let’s actually see if we can also find some in the stone right here that would be you know sort of the the best thing if we can also find that right because of the Crazy bias towards the bottom right because of the negative 80 and then to the plus ae it’s very very rare in stone actually so what i have done is i you know i have this fill command where i just basically replace where i can replace the tutorial mod olin Mithril or this one right here with air and you can see like it’s no blocks were failed and if i so this should do it you know all the way down more or less so and you can see no fill no blocks were filled so this is also a way that you Can basically uh look for it you don’t have to necessarily only replace stone you can also replace your own custom blocks here and you can see still no blocks were filled no blocks were filled like it’s nowhere near as prevalent as in the in the deep slate however i have actually found Some so i did like fill some of them but i just didn’t find them i believe i literally there it is so there are actually some i mean that’s just uh you know very very good but yeah that’s pretty much so it’s very very rare but once again one of those things where Play around the numbers a little bit and then you’re going to probably get to exactly what you want to get to with that so that’s really cool and that’s it actually how easy some custom or generation is in minecraft right but that would already be for this tutorial Right here i hope you found this useful and you learned something new if you did i would very much appreciate like and don’t forget to subscribe for more tutorials just like this one i also want to thank all of my lovely patreon supporters for supporting me and this Channel it is very much appreciated and i’ll see you in the next tutorial so yeah Video Information
This video, titled ‘Minecraft 1.18.2 Fabric Modding | ORE GENERATION’, was uploaded by Modding by Kaupenjoe on 2022-03-30 13:59:52. It has garnered 3019 views and 65 likes. The duration of the video is 00:08:44 or 524 seconds.
In this Minecraft Modding Tutorial, we add custom ORE GENERATION to Minecraft 1.18.2 with Fabric.
== MINECRAFT COURSES == ▶️ Learn Forge Modding with Minecraft 1.18: https://url.kaupenjoe.net/CourseForge118 * ▶️ Learn Fabric Modding with Minecraft 1.18: https://url.kaupenjoe.net/CourseFabric118 *
== ASSETS & DOWNLOAD LINKS == GitHub Repo: https://github.com/Tutorials-By-Kaupenjoe/Fabric-Tutorial-1.18.1/tree/36-oreGeneration Gist: https://url.kaupenjoe.net/yt252/gist
== TIMESTAMPS == 0:00 Intro 0:31 Adding Configured Feature for the Custom Ore Generation 3:05 Creating the ModOrePlacement Helper Class 3:42 Adding the PlacedFeature for Custom Ore Generation 5:19 Generating the Ore in the World 6:19 Demonstration 8:24 Outro
== TAKE A LOOK AT MY COURSES WITH COUPON CODES == ▶️ NEW Forge Modding with Minecraft 1.20.X: https://url.kaupenjoe.net/CourseForge120X ▶️ Learn Forge Modding with Minecraft 1.18: https://url.kaupenjoe.net/CourseForge118 * ▶️ Learn Fabric Modding with Minecraft 1.18: https://url.kaupenjoe.net/CourseFabric118 * ▶️ Complete and Roblox Lua Game Development: https://url.kaupenjoe.net/RobloxCoupon *
== SOCIALS == Discord: https://discord.com/invite/yqxykanpWf Personal Twitter: https://twitter.com/Kaupenjoe
Instagram: https://url.kaupenjoe.net/tutorials/instagram Facebook: https://url.kaupenjoe.net/tutorials/facebook Twitter: https://url.kaupenjoe.net/tutorials/twitter TikTok: https://url.kaupenjoe.net/tutorials/tiktok Written Tutorials: https://url.kaupenjoe.net/tutorials/blog
== LICENSE == Source Code is distributed under the MIT License. Additional Licenses for other assets can be seen below or in the accompanying CREDITS.txt on download.
== ADDITIONAL CREDITS == Outro Musik by Kevin MacLeod: “That’s a Wrap” Kevin MacLeod (incompetech.com) Licensed under Creative Commons: By Attribution 3.0 http://creativecommons.org/licenses/by/3.0
== AMAZON AFFILIATE LINKS == Amazon Referral [US]: https://url.kaupenjoe.net/amazonref/us * Amazon Referral [UK]: https://url.kaupenjoe.net/amazonref/uk * Amazon Referral [DE]: https://url.kaupenjoe.net/amazonref/de *
== AFFILIATE DISCLAIMER == * Some of the links and other products that appear in the video description are from companies which I will earn an affiliate commission or referral bonus from or are my own products. This means that if you click on one of the product links, I’ll receive a small commission or additional kickback without any additional cost for you. This helps support the channel and allows me to continue to make videos. Thank you for the support!
== HASHTAGS == #Minecraft #MinecraftModding #MinecraftTutorial #Kaupenjoe