Hello everyone welcome to a new tutorial in this channel and today instead of a unity tutorial we’re going to be doing a minecraft modeling tutorial which i have any plans to do except for doing something i would like i don’t tell you but yeah i did this just for my free time So um in this tutorial we’re going to be doing the or generation which hasn’t come up any tutorial it hasn’t come up come up yet but for 1.8.1 which is very kind it’s kind of easy to say the least so we’re going to be putting some stuff here and then There’s this stuff so let’s start off with the tutorial so first i’ve already made it a class here this is my metal mod which i’m already developing and i’m not going to continue it until i’m done with other projects but i’m going to use this project as my Temporary since i already made a made an or generator we’re going to make a new one so there will be nothing here okay so uh let’s create a java class and inside let’s create our to and inside we’re going to be putting a let’s let me just check at least three things inside And for to generate uh an ore we had to create at least three stuff that we wanted to put in like the configurations the placements and you know the other stuff that needs to be done so the first first off let’s put in a just type in public static final And let me check back okay a list list off or configuration that if i get block states uh let you see and it’s tick loading okay or since i don’t have any i’ve already prepared a block which is bronze i have bronze over here and i will put in the bronze or bronze Uh is it target list this list provides a list of blocks that we wanted to generate why did they use this list well usually in the core code of minecraft that’s wait let’s go to somewhere here i’m gonna type that in just a little bit dumb Usually we have we have wait huh i’m gonna pause for a second here usually somehow some sometimes have this stuff here which is oh this is the core code of minecraft and inside here there is some rule test here defining where they would be generated and some of them are stone or Replaceable steep or replaceables part of the nether and you know natural stone and one of these configurations section target block states or iron target list this is what we want to have like that one target is the iron ore which will only generate in the Storm or so you know it’s just a list of generation stuff so we want to put in list off and or convict or configuration dot target and first off i’ve created a bronze or block which in here we if you have created it just check out some tutorials somewhere somewhere in youtube And i’ve already created it like this and inside here we wanted to generate one stone so we so we can place it on stone and the block we want the block site we want is the um uh see um our base for the blocks class here which defines the whole block areas And we’ll go back to our tutorial or generation and then the ore features in here the target we can add or no fmm blocks that we since i want the bronze ore to be generated and then with tape it’s default block state we can play this there you can add another block which If you want if you want to put in the deep side version like this one in the base code the deep slate or replaceable switches for the deep slate iron in our material tutorial origin let’s make our second variable which defines the vane size because i don’t know why but They should have made this into one field one and figure out it comment double why they did this the three things you have to do to make all of this so public static final you see configure feature this is the the you know the plus for the features I just put a question mark and we put our or bronze and it’s equal to um feature and feature utils which usually in the organization this is commonly used like the or iron future utils that which they use which i also use you to have registered and which is Going to create the id for this since they usually do it so and to define what type of generation is this so or bronze that’s what i mean that’s what we want to put in and then we’ll get this um the configured feed the fit or configuration we want um That or not configured and then we’ll take in the this will take in a target the target list like the target list the target list and then the usual vein size the minimum maximum being size i think because usually we this is said to have the vein size i think so 13 Would be my base size let me see oh nothing oops and pause this oops sorry i had to do something before this so new before configuration and we’ll put our or bronze target list all the blocks that we want to generate the target blocks that we want to generate These the bronze ore and i think the main size the default ring size that we wanted to generate and then finally the third one the third one for bronzeboard is the placed feature which will define the the placement of the oars so final placement place feature or placement because usually in these Parts the orifice will go to the source code okay um just looked at the core code and hidden here they define all the placements so we’ll take in here and see um placement details dot registered lights men youtube this is the youtube the core util of minecraft for placement dot register And then we want the four bronze and should be a different idea i think smooth let me see all right well i think i need to put bother but i define it and then um okay and we take our configured feature from above or bronze dot paste please I have placed and then from there we want to take some code out from this from the core code which is this three this three this is the placement the list of placement modifiers for or plate for for the oars and these two are the most of them common so We want to take these three methods and put it in our class you want to put them we’re gonna place them in the class and we want this common oil placement because we usually bronze and some bronze or copper which is the main compound of bronze usually generate A common which is also in the replacement features which is um i think it’s here copper so we want to place this in the commonwealth placement um board placement if you want to make this where you can use the aware replacement but since we don’t wanna we just have to delete this Because we don’t need to generate the blogs or in where where occurrences so column or placement and back here you can see that i don’t really know anything about it though because i’m just a little kid which is um thinks it’s very good but see but i’m following some Stuff about this code here i followed some iron iron placements and just copied it to copy their code so i just have 10 just like in my tin Just like in my tin i just place 15 so i’m going to put 15 i don’t know and then we do the height we do the height so the height placement uh my range placement but i don’t want these triangle or uniform but if anyone knows i think this is just You know the pattern or the arrangement of the ores since most ores using using triangle we’re gonna do that and the vertical vertical so there are two um arguments these takes the minimum and the maximum the mix the minimum height and the maximum height so in order placements in in in our iron In one of these iron the iron iron middle this generates from the y level 24 to the y level of 56 i think yeah if you fact check that you might get this you might i might be correct if it’s based on the base code so since we want to generate the since Example we want to generate below it so vertical anchor dot for if it’s bottom this is the absolute the lowest y level the absolute the y level you want the above bottom down the number you want above the bottom not the absolute example if you want since it’s i don’t know if it’s Negative i had never thought you know about what example if it’s negative 2056 and if we we put 10 in it and we put 10 inside above what the minimum level would be so 246 because you just minus 10 with that so go to the bottom which is like the Minimum of negative 1256 and for the maximum height just to be absolute the absolute value of 2 56 maybe what did the iron say okay um 40 what did the 14 yeah 14. okay there we go i think that’s all of it okay now we’re ready to regenerate now All all what’s left here to generate is through an event with the event which generates the bio the volume or the chunk so what we’ll need to do is to go on to the to create a class or an event class which generates everything so first you create a class Then do this thing which is more than if this is an event bus subscriber which subscribes to events the mall id should be your mod id and the bus should be the default bus of forge so back in my already created the missing copy okay by a little england so public And before we put a static should be stacked static void biome biology this this is where the biome runs and in here let’s put in the subscriber okay so in our event so let’s do a switch in our then that category it this should filter out the nether and the end dimension so That we don’t generate all the orthody and and leather so this is a safety check so case leather and anger and end and then we’ll just put some empty bracket brackets and finally the default default and back here let’s see um okay oh do that event no uh tutorial pictorial origin And take our bronze placement it should be the bronze placement huh i forgot and is the generation builder in which the builder that generates the um biome and we’ll add a feature so that so that it could generate the orbs since we have this plate feature or one Spaceman this isn’t what we are going to add so back to our copy okay so we have to do it as underground works this is the um the declaration that we need instead that defines if it’s an underground or or anything that is used for generation And then finally the last piece of code there you go this is the last piece of code i think maybe and maybe maybe yes okay this might be the last piece of code so let’s review in our true origin this list this first data point of this first property is This is the defining for what the target blocks that we want to generate either deep you can add the deep slave version of the or or the normal version of your order in this second second we can and we added the bronze the bronze or configure feature which is which defines the The um vein size and somehow the or the bronze the orange ones psychic i think and finally the place feature defines the the position where the order is about to be generated with it again and finally in our forge bus subscriber we will we add we Go to our biomoldy event and we’ll note in in the event we’ll add this feature this place feature so that it will generate yours well it generates the bio so this is all what i understand maybe you experts know what the real meaning to this is so let’s let us generate and um Open minecraft for products okay okay now we’re in minecraft so first what we’re gonna By five and i’m going to i don’t have any uh was it i’m sorry um i don’t have any mods of x-rays because this really bugs me out Um so being lucky i just found the ore so i just found my bronze orb while doing spectator mode and look at this i have the bronzer now so that code was to create these bronze or so if you are thank you so thank you for watching the Tutorial and i might do more do more tutorials about this uh tutorials about stuff that haven’t been Video Information
This video, titled ‘Ore Generation | 1.18.1 Minecraft Modding Tutorial’, was uploaded by Fender’s Simple Tutorials on 2022-02-02 06:55:35. It has garnered 348 views and 8 likes. The duration of the video is 00:21:09 or 1269 seconds.
Sorry for the Sounds and The Bad Quality of this Video because I was in a hurry so Please do Support me by Subscribing to the channel for the best of this Planned Tutorial Series.
..-. .. .-. … – / .–. .- .-. – / — ..-. / — -.– / ..- -. .–. — .–. ..- .-.. .- .-. / .- .-. –.