Thomas Thomas Thomas grooves oho hey guys it was personal one-on-one here within the represent Amano make a fortune today and we’re taking you through how to create your own custom chest okay so this is making a chest from scratch by the way this is actually just going from the vanilla code and Making a few changes here and there okay cuz richest right from scratch but this episode will be M go over a few episodes however if you are looking for some nice occurs which might sort things like this one scratcher and go check out stretcher full because yeah okay I tried to make And tour as simple and easy to stand and he goes into a little bit more detail but I try and get fast easy and understand so people can just go for it ok so let’s start with going to our block class open up TM block what I’m Going to do I’m going to go public static block foot chest okay what we’re doing we’re going to go sort chest it’s gonna be equal to new slots chest and then we’ll come back to here in a second and we will add the rest of the extensions of this please I’m going to Create this classical chest hit finish on this round extending locks we’re going to send block Ches so we’ll import that I see something asked us to add a constructor as per usual and that’s the integer and you see that fish gets a block chest that this integer is equal To one of the lists is referred to inside of the code which is comply power okay so we just basically two sets to zero because this will be edited later on drawing the Finks which is set to zero okay so what we need to do so nobody’s go to darts set block name Sorts chest darts set creative tab TM creative tabs dot tab block dot sets texture name strings dot mud ID plus coal on top chest okay and there are going to be a capital okay I’m going to create a texture layer because it’s not little more where you will create a text Grabs it because it’s got more sides and it’s also using a custom model so come back flat layer okay so inside of such ask me to add a few methods inside of here okay and these methods are we’re going to only need to require the methods which refer to either block Chest or the Thailand sea chest okay so the balance doesn’t refer to it block added doesn’t refer to it however on block place by just refer to it as you can see here so it says talents just the bun and we’re just going to paste this right up in here Okay so we’re going to edit that in it and this method doesn’t to it by the looks of it nope okay come base poker that doesn’t refer to it by the looks of things either okay and our neighbor lot change however that does refer to it so we need to copy and Paste this into here and break block also refers to it so we need to copy this over don’t worry we’ll go through each of these methods okay so and we’ve got unblock activator which doesn’t refer to it by the looks of things however the inventory function on the Scoffs much much much much doesn’t also refers Tris please copy this over and lots of in the way I’m going to expand my wrinkles entire a bit about how noise because the kids just make a little noise of noise paste that over paste is anything else that also refers to Talents to chest doesn’t look like it and obviously we need to do this register icons at the bottom that’s it from what I can see anyway okay so you’ve got a few errors here and that’s because we’ve got some variables that are actually here inside of this class So the way we’re going to do this is we’re actually going to find function being a function out somewhere inside of this curve so we’re actually gonna function Oh wherever this is which I think this might actually be da that ocelot one which is yet whip or correct this one Here okay so we gonna copy this ocelot thing over and paste this above the iconic thing below that so so guess with them and then we got function B which means sort out and that is just a random number okay so now we’re going to do going hit ctrl left I’m going to find tile and see chess make it case sensitive I’m going to replace it with tops tile and sit chest our talented touch gesture from all their hit find five let’s put title right title find and replace all good so okay we’re going to create this class now hit finish and We’ll come back to that in a second once I’ll explain everything it’s up here talents chest well o extends tile and see chest okay we’ll just do that and hat so you have no shoes and all I was fixed but one which is this unrequired ever okay I’m Kind import sorry okay so on what pace by basically this does this just makes sure that the M the block that’s placed and which is the chest rotates around when it’s in place okay so you can see here is going to refer to all the sides From what’s being placed on so zero one so you’ve got zero one two three four and obviously that’s it we really want it to rotate to be able to face of always we don’t want to be able to face up and down so it’s only gonna happen if Statement for four of them and this just basically sets which rotator which way is actually facing and obviously this just gives it its display name once you’re inside of that chest okay so that okay so you’ve also got unlabeled what changed okay basically well this is going to dim is it’s going To check to see if it’s another Thailand sees chess block next to it okay so if there is another talents is just block is going to go over to the talent at Thailand c-class and say we want you to do this this and this okay and that will Create a large chest for us okay the break block this just says make sure everything that spills out as contents that’s why it has items stuck in it so it checks the step size of everything so it juts the correct amount of stuff okay So he’s got in the get a.m. and the book which is basically also get the blocks and stuff like that inventory okay this is like a natural name of the block okay so we’re going to do is inside these two then side of this drink here we’re going To go to Tots chess I’ll go to your last sunset side so I’m going to copy that over I’m going to paste it on all of these ones here on the container chest level okay that’s what class that’s how it’s getting its name okay this one here I’m not too sure what this does about the Ocelot I’m assuming it says I mean this is some cases sitting on it all to put the upslope bomb so much excellent that’s an action sorry arching this creates the Thailand see and obviously and this what actually gives it its Texture for when the particle Phet when it’s broken okay it doesn’t actually give it its texture okay it just shows the particle effects again now on to the talents see till chest okay what we need to do it’s not actually a statin here we’re going to go and create now go Change the package of this first by the way so we’re going to change this to tile and see tail dot dependent you or Thailand less crime so we’ll do else so we’re going to move that’s the package inside of that package we’re actually going to create a new file and That will be just plot tile and see some so ATM tile and sit and finish okay I’ll be right back okay about that okay and yeah okay so that’s actually great so basically set up here I’m actually going to make it register the actual tile and see so I’m really go public Static void main registry okay and then we’re gonna grate register tile entities and to see sorry okay that’s gonna be a method we’re going right now so I’m gonna dip I’m going to go right game registry dark register Todd see okay so I saw a talented class which meet our Tile and see tops chests dot class and the IDS going to be a string which we have to anything we want so we can have strings dot dot mud ID why is it I get my strings class oh that’s tough because no rings ducked asks is important on string the time Swing start mod ID okay say that okay get really sorry space that now that same we just registered silent T and now on to the actual Thailand submit okay once we’ve registered in the main registry so it makes me register at the main register so I’m gonna at the top of This by the way so block cm top title and see dark image see okay so now it’s had a fair what we need to do is we are going to grab anything that refers to talents to chest okay what we’re gonna do so we’re going to copy these Variables up here pop you in pay some smart Allen stick I call the obviously it replace these with touch add that and come you overwrite these as well or now we can I’m right back it’s over okay so am as I’m saying these over and I’ve hat We can alright so we’re going to come with that now we’re going to find anything else that’s here okay so we need to copy this so you’re not gonna copy that we are going to find anything else that refers to frost chest lot for us just look block chest so if I Suggested smile in a little mud that I’m working off which is called out to craft okay so we need to copy this get inventory name oh it’s a little chest so it’s going to a custom name variable which we’re actually going to create because actually no sites appear already And there it is so make it private okay and look it going from where we were so we need to copy these as well these two here and paste it inside of here so let’s copy the three s copy the read from MBT yeah we’ll go over and paste it Into here just contents it’s going to ask us to create that as well by the looks of things which is great no it’s not okay so just contents that is a variable up here which involves all right how many slots are inside of this island see okay so if we change this Amount of slots that work but up so you don’t change it because we want basically we’re going to be using the chest GUI the chest the default chest GUI okay I’m not doing advanced dude-g wise today just the normal chest so go back to where we were which is here so As I’m aware truly I kept up a lot and flatten it I’m sorry I was just sort smote with the kids but just hit okay we’re here so we need to copy the rights as well the rhytm BBC and places inside of here we don’t need the inventory stat limit Because that what we could plan if it wants to know saying but forsakes say either only only one six stacks of 16 to be able to place in here but we are not going to do that okay we don’t need that don’t need this of them this one here And we paste this into here reads copy this one has check for rotation test which will actually create the Bab lock we just copy this one how much is the block chest okay paste this into here like so do we need anything out here no because remember keeping these image Large chesticles we’re going to be using the default GUI that’s just the sounds you can change that you want to do so you can copy this over and change the sound you wanted when it’s closed and I think that assists everything oh no we got this one here as well okay I love ride that’s anything we can load you can okay so I guess doubt is everything okay so what we need to do we need to find this okay so and replace it with tile and to write and to taught chest this all and what the hell just Happened that happened okay which isn’t good because you’ve just got loads loads loads loads loads and loads of errors because we are not copying we’re not following this let me outside the repair site but and now we only have a couple hours at the month because it changed out to town see Ya you you get the point watched happen okay we need a cast chest type let’s find cast chest type and this and that is just an integer which we can place at the top apparently except that is all I was gone but what we do when You get rid of this block chest Fink here go down to wherever its it is and change this to top chest and any place we can employ it all and that is it okay so why is this airing in here so we need to import talents he took chest okay and Leave it all guys that’s the main part of the code gun we’ve tackled quite a big part of that okay so that’s bit we need to do is we need to actually create textures and also render the block itself so we can close all of this Actually wait a minute did I just yeah I don’t want to do that I wanted to go back to that so I need to change this thing at the bottom here which is the planck’s okay and I’m going to change this to sucks chest and strings dot modded ID so Okay so we’re going to do is we’re going to go to our client proxy and we’re going to add a few rendering methods okay the first one’s going to be rendering registry ran the ring registry dot register and see rendering handler I think yep though not much surrounds it and then I’m lit lit up on the wrong thing let’s go to clients registry dots find Thailand see special render ailments okay so talented class is going to be tile and six tops chest class and the special render is going we knew at torch chest render render okay and we’re going To place this creates class site once we’ve added these two brackets at the end and we’re going to place it inside of render dark tile on the score and sit except only finish it’s going to create a cluster okay we’re going to come back to that in a just a moment okay And but the next thing we need to do is we need to register the item a bit we need to do them item renderer sighs what what’s so reason being is because if we don’t it just look like an old chest because we’re extending the Clio the talents your chest so minecraft forge Client dark register item renderer okay so we’re going to do item dot gets item from block so let’s be the inventory item I know you’re AC on the scroll plot Lyceum score but that’s my other mods which is add scrap to keep going from that I Don’t know why okay and that’s going to be sorry TM block dot tots chest and then the render we’re going to have is new item render plot chest and we’re going to create this class inside of dot render dots item weight finish and that’s it Okay I’m going to come back to this one in just a moment okay however there is a set power going to look for to render this okay and that is going to be if you go to search file and we go to chest and hit search then we go for it from that Involves chest okay whatever and we are going to go into recom sauce we’re going to go to net minecraft clients renderer talents e talents each at render is not going to open okay all we’re going to do is we actually end this search now we’re kind of copy this Over to the top chest renderer okay and like I said we’re gonna make a few modifications to this class okay so import fit again so these few modifications okay we’re going to get rid of blocked chests obviously and Thailand sea chest wherever they called upon like here talents it this is going To be a place with touch chest now answer your first fit just the bottom layer but obviously we’ve got these here which we’re going to replace with tops if we could change that that and here and just important okay and that’s it okay so what we’re going to actually MIT Changes here too is we’re going to keep the normal on there I’m going to get rid of the Christmas one and the tracks one I want to keep a novel double and trap double so okay and what I’m going to do is we’re gonna get rid of all of these If statements here okay so we’re going to span this chest like we normally would and same loop here is going to be no else just gonna go like that okay so we’ll get rid of the Christmas Day stuff and stuff like that okay so obviously we need to not format because it doesn’t Like that did we get rid of those if statements yes we did okay so I actually what I’m going to do one here cuz I get me eclipses so we need to don’t you don’t you guys a nice addition for I’ll be right back once we’ve done it so that I’m back I was just editing my preferences for this okay and okay so what we need to do here we need to edit these textures okay it’s the way we’re gonna do this is we’re going to go to strings dart mud id+ : textures textures – block blocks a man obviously Our um file name okay and the file name for this is going to be a denote sorts large right taught chests and also going to copy this over I will change is just a lot chest okay so what we’re doing now is I’m actually going to show you how to Create texture okay so I’m going right back once I have the texture from the arts crafts mod because I’m going to find that easier to use then Pat no I’m not I’m actually going to show you how to create that file first because we added background we didn’t really do anything with it Okay so what we’re going to do is we need to go what’s a falcon say okay it’s ready to add a constructs to this class so we’re going to go public item editors chest and we’re going to add chest model okay let’s go me equal To new their model chest okay Bob so we need to create this constant okay this quote local barrel so we’ll make it private model chest chest model equal to new model chest so I think that’s how it is anyway or maybe also we don’t find this Shepard do it because we’re going To have a larger slop my god chefs model so basically in here the handle type we’re going to return true and sorry about the noise what’s going to return the other statements the August statement true no so it’s not true right but remember I turn right you’re going to rather than return Even because this is a void metric don’t need to return me and basically what gonna do is we’re gonna write a line of code in here that will render our chest properly okay I’m gonna type is tile entity renderer dispatcher dot instance dot read the tile and see at tile line Sisal it’s going to tile and to sort chest okay but obviously sorry I need to make a new talented suggest we notice that the all the constants in my opinion actually too important so if you actually even look at this we’ve wanted to but basically we’re just going to set All of these other constants the zero because it has to be used inside of here over for the special memory which we don’t really need to know much about that’s just like sent out upset walnuts so we’re going to set us all to zero D because it’s a double Okay so just paste that all the way from here import talented till chest it’s having issues so the last ones are float now yeah okay so what we’re going to do now is create a texture okay so I said I’ll be right back once I go and grab The texture from a draft mod be right back okay so I’m what willing to do okay so once obviously it end up you want to navigate to your mCP folder you want to go to build temp recom source assets minecraft textures blocks and then go to check their block hold textures models Sorry no where is it no I’m confused again we just find that file again so if we got search file chest obviously we up bump okay and where was it now sauce net minecraft app site was it client renderer it was inside of ONC okay so you need to navigate to the entity Folder go to chest and basically what units are open is the normal double and the normal chest okay so I’m going to right click and hit open wave that’s right hit open open wave pick dotnet I directly okay so um what I wanted to do So ops did you open this anyone want to open up the normal double chest as well basically what you need to do is you want to just edit these two to whatever you want them to look like okay so obviously this is you want to add at the Top at the inside the bottom of what’s going to look inside the chest the actual hinge and stuff like that okay so I’ll show you an example from the adequate mod which is inside of documents programming time speeds you tutorials sauce main Java assets TM textures blocks and obviously we’ve got Our last tool chest and our Top Chef so when it open and here’s an example of the ones that summative use our texture okay so there’s the two examples good so we need to do is say them as lasso chest and also plot chest inside of your and Inside of your access folder so sauce main job assets TM textures block so save them side of here and once you’ve done that leave it or not that is your chest dump okay so what are they we’re going to actually run this now run climb I’m going to see if the game launches up hopefully it will fingers crossed single player new world it’s not going to launch upside so it’s not going to work or anything because I forgot to actually register the block which I just remember then the game registry that Register black touch chest touch s dot get on localize name okay so obviously I’m actually going to give it its name now which will be tile dot top chest dot name equals tutorial chest save it so we’re going to run this now and hopefully it won’t just so single Player will play this new world and let’s actually tilt this brightness a bit so let’s go to our next tab and look at our block we’ve actually got our tile I think right not tight right tail dot put cast up a lowercase C I’ll be right Back let’s run game and without which is little B gamer and you see we’ve got our tutorial chest the case it we could actually place this down and it looks like a frost check our frost Jess from the house craft market place this you can make it a double chest we can rotate It and any direction we would like okay and you know case it says chest because we didn’t change it looks a slight slip chest there but we didn’t change one more thing and the last thing we didn’t change was if you actually go to the tile and see chest which is inside of Our talent C folder we need to look for this rescue tale chestnuts change this to so chest so I’ll need to go swallow constant name by the switch is places like here here here and that’s it so now you can run it and hopefully it will launch and look Like everything we wanted it to be single player played well okay a little chest and you guys that is get this from the grocery budget or alarm show you how to add a clone of the normal vanilla chest you see we can’t place it Jason like that like normal chest would do Okay we post about two back now okay Oh guys has been the gross budget or one show you how to make your own custom chest nice watching I guess see you guys in the next episode bye Video Information
This video, titled ‘Minecraft forge modding 1.7.X – Custom Chest’, was uploaded by Grovesy on 2014-03-26 21:49:07. It has garnered 7572 views and 70 likes. The duration of the video is 00:34:10 or 2050 seconds.
in this tutorial i show you how to create a custom chest Src Code: https://github.com/TheGrovesyProject101/ModdingTutorials