Hey everyone Neil here coming back at you with the new and revised custom furnace videos I hope that you had the chance to see the video that I just posted and kind of understand why I’m doing what I’m doing I’m not gonna go into that if you Haven’t seen that video go back and check that one out this is gonna be better that’s all I can say you’re gonna learn more it’s gonna be better then we’re gonna actually make a furnace that is all our own so without further ado let’s jump into our main modding class Let’s just jump into our project just see that I’m missing pretty much everything that I had for the old furnace but that’s okay because we are going to get to that right now let’s do our we’re gonna need to create our blocks so public still can’t spell nothing’s changed there public static Black and this will be a block and you know it last time I did in the 11 I actually want this to be an actual custom furnace it’s it’s I have a bit of a complex if I’m just building a block and naming it after myself so we’re Gonna call this an alabaster oven I don’t know whether or not alabaster would actually work as you know as an oven or not wife would alabaster work for an oven she’s giving me that idk you can cook with an oven well I hope you can otherwise I’d be starving to Death anyways we’re gonna pretend because it’s minecraft what do I care of course you can cook with an alabaster oven crazy so we’ve created our two blocks the reason that we’re creating two blocks is when you have an oven there’s there’s the inactive stay the one where it’s not cooking and then The active state where it is cooking what happens is you have furnace an oven isn’t cooking you load it up with fuel you load it up with something to cook and then boom all of a sudden the block swap out for the active one it does its Cooking once it’s done swaps them back out again so we actually have to create both of those blocks we’re gonna come down here and initialize those now and because I like to comment everything I’m gonna comment that for machines and we’re gonna say black alabaster oven Idol I don’t use equal to new alabaster oven beautiful false and the reason that I’m setting this as false as I’m saying it what we’re we’re gonna pass along these values right these these boolean values boolean is true or false right drew faust so really what I’m doing is I’m passing along a value that’s going to say false we’re gonna have a variable that says is active won’t get that to the second is active variable is going to be is it active false it’s not active so it’s going to be the idle block we’re gonna set the block name Ooh alabaster I don’t and what else do we want to do with this what else do we need to do we need to set our breather cap set creative tab if you let me do this your craft you know I talked about having it complex and I’m still just I’m Making a mod named after me whoo nice recovery there with your alabaster ovens don’t they make the mod after yourself it’s mark I so now we’re we’re initializing the other block alabaster oven we’re gonna have the same class except this time we’re gonna pass along true because it’s true yes this block is Active it is cooking it is doing this thing don’t need a space for that and actually you know what we want to set light level 0.625 float I believe that’s what we did last time does it like it it likes it but it didn’t like the fact That I spelled of them instead of oven sweet so we need to do this block last so we’re gonna mess over we’re gonna create this black glass we’re gonna do like we’ve done with our other blocks we’re gonna put it in our blacks class we’re gonna finish alabaster oven now What this is going to do is because this is a black but it’s also going to have a container Association with it we’re gonna put the extends block container like so we’re gonna import that it’s gonna say hey we have some other things that we need in there We’re gonna add our constructor and yeah we don’t need this stuff get rid of that get rid of that we are going to say material now there is something that we need here and that is we need to bring in that boolean – is it true or is it False so we are going to say right here boolean and we are going to name that is active is active like so what else does someone from us oh we have some done implement methods we get to this we get this let’s take out this to do the next Thing that we need to do oh you know what we need to create a variable we actually want to change this from protected to public let’s do that now we need to create we you know we’re passing along this true or false this boolean expression on whether or not the block is actually Running or if it’s not running and what we need to do is we need to put that data somewhere right so we’re just going this is active and because this is final this is means that it just it can never be changed again right however we can’t Change it in our constructor so we can say this is active is equal to is active and you’re like dude that doesn’t make any sense well it actually does right because this is our variable that we’ve declared and you see that it matches up these two and then we have this right Here that just what we brought over from here right so this is brought over false is brought over here to our that’s not there where is it or a Leviathan it’s brought over to here right this false and what we’re essentially saying is hey I want to I want to put a value into this is active variable and I’m gonna make it whatever is brought over that makes sense you follow me these two correspond these two correspond we need to register these blocks there are otherwise nothing’s gonna happen I Am going to save this I know you in there we’re gonna register these blocks so just like we did up above I want to note it leave this a game registry dot register block thinking about it thinking about it block idle and this is going to be more or less Like a nun localized named alabaster oven Idol I don’t like it well you guys know I can’t spell you’ve been watching these if you’re watching these videos you know that I can’t spell I’m just shaking your head he doesn’t know what he’s doing he does notice though you Spells like a fourth grader doesn’t matter how much college you had splitter terrible we did I don’t let’s do active I’ll faster then active sweet close that up with our semicolon so it likes it we’re gonna save that bad boy let’s head back over to our oven here so We have some unimplemented methods I’m gonna ignore those right now because really what it’s gonna do is just say hey you need a tile in a B right and we’re not even remotely close to doing a tile entity so you know what yeah let’s Add that so that way we can at least say this without errors we’re gonna move that down to the bottom because we don’t really care about it right now the next thing that we want to do is we want to set textures for this block now I Already have some of the other textures but we’re gonna actually go through create some new textures here custom textures so if you remember what we had we had our vanilla items we’re gonna go into blocks we’re gonna look for the furnace our nice somewhere furnace top Side front so we have the front on the front off let’s go ahead and open with paint.net like so so we know what the top is gonna look like you know what the bottom it’s gonna look like what should we make this Alabama we should probably Make it a little bit of it a little bit lighter right so what I’m gonna do is I’m actually gonna select the areas around these two openings and I’m gonna do that by using the selection tool and I’m gonna hold down ctrl whenever I want To add to it so I’m gonna take that down to about right there and then I’m gonna take this down here and then I’m gonna do the same right here right there what am I doing here you know what I need to actually come down to here and then I’m gonna take these Two all the way down and we’re gonna take this across the top then we’re gonna grab that one and we’re gonna grab that one and since this is alabaster alabaster zweite right honey you got a computer on your lap can you google it run alabaster through the Google eyes ER tell me what Color it is while you’re doing that I’m just gonna make it white anyways you you you oh that’s dark we don’t want dark we want light let’s make it lighter okay so white works I knew I was right why do you doubt me like that gosh my Wife bless her let’s open up back down to the furnaces let’s do the front on and let’s see if we can we can replicate this so we did we did the top like so and then we can that came down three all the way down the key all right one two Three four box of it one two three four yep then we did this right here so we’ll do the same over here down there and then these right here and did we do all three of those across the middle we did we did we did all three of those Across the middle and then it looks like we just did so adjustments hue/saturation thankfully our lightness is remembered so we’ll just hit OK on that there we’ve got that one then let’s I don’t want to actually save over my my textures so let’s actually head into here into you know craft Source your craft assets your craft textures blocks and we’re gonna say that this is alabaster front alabaster oven front on use this on one yes this is on one boom like so okay and this one is going to be save as and we got to navigate through all of that alabaster Front this one is the off one right so now couple more couple more we’re going to jump back out vanilla items box and let’s find our furnace furnace for an ass Jim ah furnace side for this top so the top is different you know what we’re just going to do the top and We’re gonna use this as our side and this is easy right because we’re just gonna grab this we’re gonna do our adjustments 43 a little bit lighter save as put that back down we’re gonna bury it in this folder down where it belongs and this is going to be now I’m faster Of an side I know it’s the top we’re going to use it as the side savy right there all right let’s get back in let’s do some textures so how do we do that well the first thing that we have to do is declare a variable so we’re gonna say At side only we only want this to run on client side and we’re going to say privates I icon case is very very very important in Java and we’re going to say icon in front probably already looking a lot like the code that we did last time Do some imports you can do control shift oh very important import like that I always make sure that you guess I’m gonna relates to minecraft or FML or minecraft forge this isn’t what you think it is your life is great you use that flippantly you’re a don’t say that life’s great sometimes You got a reason to smile check those if you have some ones to say like urbis or anything like that you made a boo-boo it’s not you know where it’s not gonna work so icons write the rendering of icons textures stuff like that we all Want that to occur on the client side so that’s why we’re specify side dot client first method public void register lock icons it’s important that you’re doing register block icons because this is a block if it was an item you just you register icons in this case do you Register block icons and we’re going to reference eye icon register and we’re gonna call this icon register because it’s easy and it’s simple I’ll make that a method without like so let’s import icon register again control shift o icon register oh it’s in Minecraft we’re good We’re going to say this dot block icon you see it right there boom is going to equal icon register register icon and we are going to say Neil craft or whatever yours is dot mod ID Yossi’s the first one up there about mod ID plus whoops : Plus Faster oven side case is important and then this dot icon front one that we declared up above is really gonna kind of follow the same thing icon registered register icon you know craft mod ID this one’s a little bit different right because we have this is the front and the front of These could either be this or this and so we’re going to use this is active variable so if it passes along and says hey this was true right what we want this to look like is this we’re gonna put in our quote we’re gonna say Plus This dot is active so if it is active we are going to say that the icon is the alabaster oven front awed if it’s not I feel like I have one too many no we’re good here okay we’re good here it’s not it’s going to be alabaster so it’s not active alabaster oven Crunch ahh boom like so many years nope we’re good so this actually takes care of the block as its rendered so you place the block boom it’s got a front it’s got a front that will change and then the sides are all the same right I’m gonna do a little bit of studying And I may come back and show you how to do a top versus the sides like the vanilla force you know what I digressed let’s just go look at the vanilla furnace code so we can come down to reference libraries and then Forge source and I’m assuming guessing it’s Gonna be under here block furnace block furnace so it’s under net dot minecraft block block furnaces open this up so it looks like we’ve declared two of those and we’ve named the one one thing one another yeah item dropped unblocked added this will look familiar later a good icon ah So here is that you know what are you feeling it let’s do it let’s see what happens let’s open up let’s go back to our sorry my cats trying to climb through the blinds there’s no Kiki’s out there for you to kill what what are we doing modding vanilla items blocks let’s go Back to the furnace and let’s get that furnace I put a top on there right so let’s do this because we’re gonna need to grab both of those we want a furnace side and this was the top so let’s do this let’s go in and save this as Mike on top Like so this one we’re gonna gather just the middle of this and we’re gonna do our adjustments to do in saturation see me lighten up a little bit let’s just save this we got to bury it back down again I know that you guys have been having some trouble with textures sometimes it Can be a complete pain in the butt don’t hesitate to reach out to me on skype or via email you can add me on skype by going to Neal gaming at gmail.com or you can add me on skype the same way I accept all invites to Skype so yeah if You need help protectors anything else give me a shout so really what we’re seeing here is we’ve done this right we’ve done our side code we’ve done our conditional statement that hey we want this to be you different if if this dot is active right furthest front on or off If it’s not active now this last one is something different this is an icon on top I bet you a buffalo nickel so what we’re gonna do is we’re gonna go into our alabaster oven we’re gonna create another one of these and I’m gonna say side only side clients private eye icon We’re gonna say icon top and I know that when you look at this you’re like it has these weird fields remember that this is a variable you can you variables can be anything right your variable could be and as long as you reference it properly later on in your code as it doesn’t matter it’s a container it’s a box it’s like taking your leftovers in an empty butter container it doesn’t matter right as long as the container is the same each and every time it’s cool so this one you’ll see here the N right 9 3 5 n is right down here 9 3 5 n following me that’s the top and I bet you the O is gonna be that icon front because it goes through all this fun stuff now this is interesting because this is going to be a lot different than what I had so we’re gonna kind of roll with this And I’ll do a little bit of research on this but what we are gonna do is essentially say is that this dot icon top is going to equal icon register register icon and it is Yeow crash dot mod id+ this guy right + alabaster oven top Semicolon close that up I know I kind of got off track I said I was gonna go research it later and I realized that we haven’t even covered that part yet so I will get for that yeah right now and that will actually include this episode because we’re clocking it in 27 minutes And I kind of wanted to finish around the 30 minute mark so we need to do our get icon method and what that get icon method is and again this is something that we only want to render on the client-side silverside appliance and it is going to be public No no boy boy Mike on get icon and they’re just going to be inside metadata and you know what I want to do is just your thoughts I’m gonna look at this bad boy real fast getting icon so I am unsure so you guys will come back to that later return That’s a date I that is equal to zero and side is equal to three so really what is this saying right this side is equal to three and if you a block has six sides right I thought if I if I remember correctly zero is the top one Is the the bottom and then two is the left side three is the front four is the right side by this the back so really what we’re saying is if this is that we’re gonna say this dot icon front is what’s going to be there else side is Going to be equal to metadata metadata or else this side was equal to metadata then this oh hi John John’s a good buddy of mine this dot icon from this lock icon like so it doesn’t like this I did something wrong oh well because you put that on the Outside of that goofy bully alright so let’s say this we are going to run this and let’s see if we actually have our top and they’re sad that our front so that would be cool if we did super cool if not we’ll come back at the beginning To next episode and fix it look at that we’ve got a side get aside and our top to the side well that’s weird that’s okay though that’s okay how does it look what am i doing ronbo over here you need to hear yeah a LaBeouf’s or oven we didn’t add it Into any language yeah it looks like he’s putting that side on the top and of course it’s only point in one direction we know that and I mean One Direction isn’t like you know North not a shitty British boy band I may have offended some people by saying that I don’t care Don’t come back don’t ever watch my videos again that’s what I say I’ll look into this we’ll get this tuned up and get that fixed so that way we have a proper top icon like this furnace side top oh you know we should do just a check You know what the top looks like what is the bottom look like the bottom looks like the front well that’s weird what is this I bet you this is great those this those goofy minecraft row grammars and the bottom is the top well I’ll get that worked out Anyways that concludes this episode come on back and we’re gonna work on our default direction next time thanks for watching everybody like comment subscribe and I’ll see you then Video Information
This video, titled ‘Minecraft Modding Tutorial 1.7.2 #13.1 – Custom Furnace’, was uploaded by Neale Gaming on 2014-04-15 03:46:48. It has garnered views and [vid_likes] likes. The duration of the video is or seconds.
Creating the block, block class and texturing.