Hi everybody dr. Neil here that’s weird episode what eight yeah 8 episode 8 we’re going to do fuel handler today what is the fuel handler a fuel hand roller allows you to specify items of your own that work as fuel easy right yeah let’s get into it the clips we’re Going to create an item that is going to be our fuel that’s going to be the first thing that we do pretty straightforward if I do say so myself get into our main modeling class that is going to be public static item item tree pitch We are going to make tree pitch in the future when we get into biome generation and stuff like that we’re going to create our own custom trees and we’re going to have special trees to drop tree when you you know chopping down but in the meantime we’ll put the cart Before the horse will make the tree fit pitch now right so we declared the atom let’s initialize it item tree pitch equals new and see items dot dot set wow I really want to like let this do its thing so that when I type the damn thing At the end all the time tree useless useless i say i should have just typed it down tree pitch now let’s register the item game registry dot register item and this is going to be item tree pitch three i’ve already created the texture for it yeah so it’s YouTube guys you can pause it you can go create your own texture it ain’t no thing let’s jump in and check it out GT check check it out check it out though you see my tree pitch drinking an energy drink today I’m drinking an AWS energy drink and they Taste like grapefruit juice now I don’t know whether or not that’s a good thing there’s a spider don’t like spiders mr. Frodo died are you doing up in the tree thanks for the foods anyways so I’m drinking not normally I drink rock star I like rocks I don’t like Monsters I don’t like amp any of that so I’m drinking a NOS today why because it was two for three bucks now 7 11 it tastes like grape fruit juice and I you know I don’t know whether I’m impressed with weather enjoy it I’d like grapefruit juice I don’t know how I feel About having breakfast you know because an energy drink is usually my breakfast fill my cup here a little bit while I’m doing that let’s get in we actually need to change our game mode back to one let’s get in a look at our tree pitch There you have it so the tree pitch we are going to actually make that into a fuel we can put that into a vanilla furnace and it will cook stuff so we’re going to get into some of the some of the vanilla code we’re going to Have a look at that tasty so let’s do that um the reason that I want to get into the vanilla code is because I want you to be able to see my buck got furnace furnace furnace furnace furnace once you see what the values are right of these different fuels so we’re going To scroll down through this code until we get to what is the method ah you know what it’s not in the block class it’s actually in the tile entity class my bad so net minecraft dot tile entity tile entity furnace cool that’s like get out of fuel something like that scrolling Scrolling scrolling scrolling more scrolling get out of burn time so here we can see that a block of coal returns 16,000 material that would 300 wooden slab 150 so one coal is equal to 1600 so we in terms of bounce we want to find out hey well what is tree pitch how Abundant history where you go cut down a tree there it is so what we’ll do is we’ll actually say that ours is worth 800 but here you’ll see blaze rod a lava bucket so on so forth what each of these is worth so let’s get in we’ve created Our item let’s get it an actually create our fuel handler so what we’re going to do is we’re going to zoom back up to our stuff and under Neil craft we are going to do a new class and we are going to name this easily enough you’ll handle it And we’re actually let’s do this let’s put it under the handler because we’re going to have a GUI handler later yep handler ok so our fuel handler is actually going to implement some vanilla code called I fuel and water then we’re going to go ahead and import that and We’re going to have some methods that we need and this is really straightforward right so we’re going to use an if statement here so if fuel dot get item equals our tree pitch needlecraft dot item tree pitch right we are going to return 800 like so That’s it that’s all we got to do let’s get in and check it out or get a cat on our knees no feet silly animal all right so let’s get in let’s give ourselves furnace and oh we need to give ourselves some free pitch so let’s do that tree Pitch like so we’re going to give ourselves some manganese like so we’re going to drop the manganese in there going to drop the tree pitch in and nothing happens well crap well why not ah we gotta register it let’s go and do that let’s register our fuel handler you Want anything to show up in game you gotta register it right all right all right earlier come on come on dude and this we’re actually going to put in our regular event rather than our pre initialization so we will go to our main modding class we’re actually going to Come down to here and we are going to have something along the lines of game yeah game regístrate dot register fuel handler and it will be new fuel and Allah spelled correctly just like so let’s import it from Neil craft mod handler like so and that’s actually coming over here and referencing and Saying hey tree pitch is cool I don’t know it’s cool I think it’s cool you think it’s cool otherwise you’re going to be watching this video right back in what do you want to bet things are cooking nope not cooking I took them out now they’re cooking so tree pitch is now A pen I got to get in there and chin up those names manganese ii and got sweets so we’ve created our own fuel and what you can do is you can create all kinds of different frou fuels right so our tree pitch just does 800 based upon the Rarity of it maybe you wanted to do like you go find coal right and that’s 1600 you could put in your own block like anthracite right specific type of coal or maybe maybe you want oh I don’t know this your own fantasy fuel that you want To put in that works for even longer or maybe you want to take kool kool and put it into a machine later on to reprocess it to make it even more efficient right to refine it and really all you need to do is just come into that fuel handler And add an if statement saying essentially if the fuel right whatever is in that particular machine equals that item returned the amount and we’ll talk more about what this amount means in relation to the furnace when we get in and start building our own custom furnace so you have it that’s Pretty straightforward quick episode your own custom fuels I’ll get that out of the language in the meantime thanks for stopping by like subscribe comment if you have any questions I’m here for you if you need any help and y’all have a great day bye bye Video Information
This video, titled ‘Minecraft Modding Tutorial 1.7.2 #8 – FuelHandler’, was uploaded by Neale Gaming on 2014-04-06 19:39:26. It has garnered views and [vid_likes] likes. The duration of the video is or seconds.
Yep. Burn your stuff in Vanilla stuff! Sweet!