Come to your tenth minecraft modding tutorial for minecraft 1.3 point to this is sai guy 1 121 and let’s go ahead and good serve so um I want to take a little break from making our furnace I’m sorry I know a lot of you guys really want me To finish that however I just I’ve been working on it for about a month without any break even when i’m not making tutorials i’m researching how to do stuff testing stuff which takes forever and so I just want to take a little break from furnaces it may be a tutorial Or two I may get another furnace tutorial out later I don’t know but yeah so for this little break for from furnaces I want to cover something simple and fun and random and that is how to make new flowers okay so um it’s really really really easy the first Thing we’re going to want to do is declare a new block so public well easy compared to what we’ve done been working on so far if you’re new to modding you may want to go ahead and watch my how to create a block and how to create a new Or videos but we just wanted to find a block so public static final block and we want to name this tutorial flower equals new lock flower we don’t even have to create a new block class it’s amazing well you do if you want to make it drop special stuff but oh well equals New block flower and where we’re going to set this to 182 and 0 so that I’ve never done this before basically this is a kind of declaration where you’re going to take the position in side minecraft minecraft what’s it called tile set but we’re obviously using our own Textures so we don’t need that I’m just setting it to 0 and then dot set block named tutorial flower dot set hardness 0.0 F dot set resistance and we’ll make this immune to tnt let’s set this to 100 f a flower immunity and he completely and utterly um dot and let’s go ahead And make it really bright so dot set light value and we will name this one point 0 up at five point zero point five you don’t want it to be too overpowered right yeah so that will be a nice little flower I’ve actually already got a Texture made and if I can find it and now this was an interesting texture to make because what I had what I did is I created the background transparent so I use to make textures just because it’s nice and easy and it has a little snap to grid with the pencil which makes It really good for 16-bit textures but I just it’s a really bad texture I made it in like five minutes but I just set the background to transparent and they drew the texture so this will be the only thing in it we don’t need to full block Texture okay so now we just want modloader dot register lock tutorial flower and modloader dot add name tutorial flower tutorial flower and we want to tutorial flower dot luck index in texture equals mod letter dot add override / terrain dot PNG and we want a tutorial underscore flower dot PNG is what I named the texture um so that’s really basic code ah now we get to the slightly more advanced code but it’s still really easy which is nice you can tell I’m a lot less stressed in this video I’ve been very stressed for the Past month or so I’m just going to create a comment so flower generation okay so we want it’s basically the same right for right now as our or generation and that is for and I equals 0 I is lesson a flower rarity so I I’m not Quite sure what the average is I think it’s somewhere around two ish I’m just going to set it to five so that we can find it easily um if we were to fed it to 25 like we ever are or up here it would be everywhere i plus plus okay now We want inte R and pause x equals chunk x plus r and dot next int 16 on is the size of the chunk and we want plus eight now we want inte R and pause y equals R and dot next int again ah the height at Which it’s going to spawn so what’s that this to 128 actually we’re going to set this to 256 because we want it to be everywhere and inte R and pause Z equals chunk Z plus R and dot next int 16 plus eight okay now here’s the magical piece Of code we just want new world and flower and we want to torial flower dot block ID and um actually I think that’s it dot yeah it’s giving me an error hmm ok dot generate world r and r and pause x let’s see if this out there We go r and pause y & R and pause Z and it’s giving me an error world Jen flowers with an s okay there we go so um basically the world gym flowers it’s a world gencode and if you want I could cover that in a later video but what it Is is it is world gencode and it’s you know we need to generate a new world its world generation code up but it makes it so that it can only generate on grass so I’m just going to set this to new world all the default settings and building terrain okay oh great You know this makes it very difficult to find line in flowers minecraft this makes it very difficult um anyway it’s that really horrible texture here’s our or our earth generating wonderfully um this is making it difficult on me great job minecraft perfect world generation as always okay yeah oh good okay um you Know I don’t think flowers turn right in swamp biomes here we are okay you can see my really horrible texture right here we have our new flower so obviously you’re going to want a better texture than mine if I switch into if I switch into survival it you’ll see there are a Few bugs with it unfortunately however that basically how to generate our new flower so thank you for watching sorry about the bug here actually I’m going to see if there’s yeah that’s unfortunate um actually I do want to check one thing and that is if I can set dot set F dot Set dot i dot ID dropped and oh okay um so let’s set this to we want it to drop diamonds what is the idea of diamonds you know what I don’t know let’s just look in the item class um this is just random stuff right here sorry That I don’t know the idea of diamond so don’t expect me to memorize every single i’d be in BK diamond is eight ok so we want ID dropped ok um and that is eight new random and i’m not sure what this one is so i’m Gonna set that day too and yeah okay um that is not a method decided I was hoping we could just set it to drop diamonds but you’ll basically just create a new block custom block class for that and then set this instead of block flower to block whatever it is and Then what you’re going to want to do is instead of extends block just put extends block flour and then you can set it to drop diamonds and all that so um and actually that’s the reason it didn’t work with because flowers technically I believe use metadata when you drop them So you are going to want to create a custom block however that that would just take too long for this tutorial so thank you for watching don’t forget to subscribe for more and I’ll see you next time bye Video Information
This video, titled ‘[1.3.2] Minecraft Modding Tutorial 10: How to Make a New Flower’, was uploaded by Sciguy1121 on 2012-09-30 20:17:33. It has garnered 640 views and 3 likes. The duration of the video is 00:11:51 or 711 seconds.
This is my 10th Minecraft modding tutorial for 1.3.2. In this tutorial, I will teach you how to add a custom flower to the game.