Centering furnace recipes we’re gonna crave that now so we’re gonna create sintering furnace recipes I’m gonna put it in the same place I’m gonna copy it in again I’m gonna import everything Scholarship dough when you paste this in import it you want the Google entry you want the Google table and the Google Maps and the Java dot util dot map sorry for the entry import you want the Java dot util dot map entry and now everything’s in here I’m gonna go through explain it so we creates an instance of centering photos recipes as we can’t access this Directly so we’ve got a crate instance we’ve create a new of itself we then create a table this is what’s install the recipe we have our two items tack inputs and an item stock output this is called the smelting list the list of melting recipes and this is a hash based Table of three item stacks which we’re going to create there’s then a map for experience where we get to the item stack output here and the amount of experience it gives out called experience list which we create a new hash map for there is the get instance function return instance and in here Private sintering furnace recipes is where you will input a recipe I’ll go and create one of them in a minute or now I’m going to go through and explain how the add recipe works so if we get this sintering result and it’s not empty you return this pot function It’s the same as ads but for tables and lists we put the input 1 input 2 and result into the list and for experience we put the result and the value of experience in float form and add a recipe this gets entering result function so up here we have a an entry For input 1 which runs the amount of times we have this melting list for everything below this does the amount entries we have we compare the input 1 to the entry key so whatever the entry is stored and if it it’s the same we continue we Then do the same thing for the second entry compare it to make sure it’s the same and we return the entry value so this is what the result will be else we return empty eyes were stuck the compare items tax function all it does is we get The item of the stack if it’s the same we return true all you to think about if the messages are the same and the items are the same then it returns true we just get the list here or returning the smelting list and for getting the experience we have the inner entry of The item stack and the output and the amount of experience country and we run it for the amount of things in the experience list we compare them and to make sure it’s the right thing and we return the float value else we return nothing so now I’ve gone through that We’re going to add sintering recipe the item stat1 a new item stack this can be any of your custom items or it can be something else I’m gonna have it be we smell it’s fun Santa hat why not and we also smelt some gold or its outputs it Outputs an acacia door why not this also need to be a new item stack and they might experience it gives 5.0 s I haven’t played around with how much experience this actually is so you have to play around with this health and gain a good amount of experience so thanks For watching this video guys so please leave a like down below and subscribe for the next part of this tutorial where I’ll be doing containers and maybe GU eyes in this episode so thanks for watching man has been hairy anchor bye Video Information
This video, titled ‘Custom Furnace Recipes – Minecraft Modding Tutorial 1.12 2 – Episode 18’, was uploaded by Harry Talks on 2018-02-05 15:58:48. It has garnered 8652 views and 101 likes. The duration of the video is 00:04:41 or 281 seconds.
Welcome to the 3rd part of the furnace tutorial, where we do custom recipes with our two inputs.
Links GitHub: https://github.com/HarryTechRevs/MinecraftModding/tree/HarryTechRevs-1.12.2-Tutorials Discord: https://discordapp.com/invite/xwg8zQJ Playlist: https://www.youtube.com/playlist?list=PLiDUvCGH5WEUEV9nc0Ll2pzUFmSFc21uR Subscribe: http://tiny.cc/sub2harrytech Twitter: https://twitter.com/harrystechrevs