Let’s add these amazing custom tools to minecraft with forge let’s see how it’s done adding tools at the first moment might seem a little bit daunting but it’s actually not that bad it of course depends how many different sets of tools you want to add in this case we’re going to add amethyst Tools to the game an amethyst sword pickaxe shovel an axe and a hoe now for this while we could start any mod items we’re actually going to create a new class in the item package right click new java class this is going to be an enum this is Going to be called the mod item tier exactly like this and this will implement i item tier from netminecraft item and we can then hover over this and say implement methods all of those methods are going to be implemented and as you can see it has added some Methods as well as this semicolon the semicolon is very important because this is actually an enum and not just a class so the idea is once we’re done with implementing this enum we can actually implement our different mod items right here and we can see an example so if we middle Mouse button click on the i item tier and then press ctrl h we can see that there is an item tier class as well and if we open this then you can see this is the way that minecraft has it set up so these are the item tiers Wood stone iron diamond gold and another right with all of their respective fields actually implemented so the harvest level max use item efficiency damage and injectability and then last but not least an ingredient so this would be the ingredient that you could use to repair this item and then you also Have immediately the way of taking a look at what the default values for the default item tiers are so you can place your items here between something above something or wherever you want basically but let’s first of all implement this the great thing is that we can basically Go into the item tier and basically copy over the entirety of all of the fields because they’re always going to be the same now we are going to get errors this is because they’re final and they’re not being assigned currently we can fix this by simply hovering over one of them add Constructor parameter and then making sure that we actually select all of them we can actually select everything by simply holding shift and then selecting the most bottom one then everything in between and those ones get selected and then hit ok it will then generate a constructor for us which will Immediately assign all of the fields here on its own the only thing we need to change is this shouldn’t be a lazy value this should be a supplier and then in here we’re actually going to create a new lazy value with the repair material given as its parameter we’ll also need To return all of those so return max uses efficiency attack damage harvest level enchantability repair material dot get value very important this has to be get value because we’re saving this in a lazy value and then we have to get the actual value to return this now the Entire enum is set up you can of course also download this in the description below there is a github repository as well as the code just blankly so you can copy it over all available for your convenience and once this is done we can now add our Amethyst mod item tier we’ll do this in front of the semicolon and this is going to be called amethyst and then we can simply put in some parentheses and instead of those we have to actually we’ll actually have to create this so this is a call to the mod item tier Constructor let’s just go through let’s say let’s say a harvest level of three let’s say max uses is 150 a 4 float efficiency with an attack damage of let’s say 12 and then an enchantability of 10 and then last but not least a supplier of an ingredient we can simply call ingredient Dot from items and then we can simply pass in mod items items.amethyst.get now if you want to add additional ones very important comma and then add the new one so for example we could get the firestone one and then just for the sake of argument i’m just Going to copy the inners here so it’s very important that the last one ends with a semicolon and before a comma i’ve seen this multiple times that people get a little bit confused with this if you’re not that familiar with java can happen from time to time but just so you know Right now in terms of the actual values you have to play around with those especially when it comes to balance if you want to have a nice balance then of course those need to be tweaked so for example this is a little bit crazy so 12 attack damage is way better than Netherride but it also has only like 150 uses so maybe that’s not too bad this of course is just as an example you can of course tweak your values however you like and now that we’re done with this back to the mod items we go and in the Mod items class we will now start to actually implement this let’s actually take the firestone because that’s going to be a little bit easier and then start this so amethyst underscore sword this is of course an amethyst underscore sword in the name as well and then here we will make it a Sword item of the sword item first of all as you can see takes an item here so this is going to be the mod item tier not amethyst then it takes an attack damage so this is additional attack damage so let’s say for example 2f and then an attack speed let’s do 3f and then the normal item properties so the attack damage is actually an integer so this is going to be two now very important that we don’t have any max damage in here you can by the way also put in default max damage this will then however override the max Uses that you have put inside of your item tier if you want the enormous sword like this then this would be the setup you can also take a look at how minecraft registers the swords by putting the cursor over the sword item and pressing alt f7 and then we can see if We look at this how the vanilla swords are made sword item we have the item tier then a then attack and a speed so usually a sword has an additional attack damage of three as well as a negative 2.4 attack damage now ours is way faster what this once again Is something that you just need to play around with a little bit and let’s add the rest of the tools so this is the pickaxe changing the name here to pickaxe as well and then this is a pickaxe item now the great thing is we don’t need to actually do anything else We of course can change the attack damage and the attack speed here this would be something that we of course wanted to do and wanted to test a little bit further but the great thing is that the item tier actually already has the harvest level inside of it so we don’t Need to explicitly state that again then let’s get the amethyst shovel same here shovel this is a shovel item once again it doesn’t need anything else maybe no additional attack damage also a little bit less speed the axe this of course being an axe item maybe a little bit more Damage but a lot less speed and then last but not least the amethyst hole which once again atheist hoe as the name and this is a whole item right and those are all of the registry objects that we need for our tools of course it can be a little bit tedious putting this All in but that’s what we’re gonna do luckily we don’t have any crazy json files we only have the item model jsons and we’re just gonna copy them over quickly i had all of those of course prepared already but they’re actually very easy just as an example for the amethyst hole Here it simply refers to the amethyst toe texture inside of the textures folder which we’re also going to add in just a moment very important however for the tools is that the parent is item slash handheld then you will have the actually holding effect for the tools otherwise you it will just Look in third person like you were holding a normal item but that’s of course not what we want we want the tool to be held and i’m just quickly going through as you can see the other ones are literally exactly the same just pointing to a different texture Those textures as well of course the json files are linked in the description below and available for you to use let’s get the textures over as well and even though it’s not the most important thing don’t forget to add the translation strings to the en underscore us.json File in your lang folder it’s just gonna make it a little bit nicer in game all right once again we find ourselves in minecraft and let’s see the tools have been added to the game let’s just take them out here and let’s just test them out for the sake of Argument as you can see of course the attack speed and the damage is quite a lot for all of them but that’s gonna be something for you to figure out in terms of balancing of course you will need to try out a few things so let’s see the whole works totally fine As you can see the uses are going down by quite a bit you can also see this works as well the shovel is going great indeed let’s dig down a little bit to get some stone as you can see i can get the stone as well even got some advancements isn’t that Nice i quickly went to look for a mob and they go there’s a pic so let’s see i think this should be a one shot and indeed it is of course i mean that’s 15 damage that’s gonna do a lot of damage but yeah that that’s basically how you add Different tools to minecraft and i would say that’s pretty cool and this is it this is how you add your own set of tools to the game i would definitely advise to just play around with the numbers a little bit especially with the mod item tier try out a few things See what will work and that would be it for this tutorial right here i hope you found this useful when you learn something new of course appreciate a like if you did and i will see you in the next one so yeah Video Information
This video, titled ‘Add CUSTOM TOOLS to Minecraft 1.16.5 | Forge 1.16.5 Modding #16’, was uploaded by Modding by Kaupenjoe on 2021-08-02 13:30:18. It has garnered 8088 views and 187 likes. The duration of the video is 00:09:02 or 542 seconds.
In this Minecraft Modding Tutorial, we will add custom Tools to Minecraft 1.16.5 using the Minecraft Modding API Forge.
== MAPPINGS USED THIS TUTORIAL == mappings channel: ‘snapshot’, version: ‘20210309-1.16.5’
== MINECRAFT FORGE 1.16.5 PLAYLIST & SUBSCRIBE == 📃 The Minecraft Forge 1.16.5 Playlist easily accessible here: https://url.kaupenjoe.net/playlist/116forge 🔴 Don’t forget to SUBSCRIBE for more awesome tutorials: https://url.kaupenjoe.net/tutorials/sub
== ASSETS & DOWNLOAD LINKS == GitHub Repo: https://github.com/Tutorials-By-Kaupenjoe/Minecraft-1.16.5/tree/15-tools Gist: https://url.kaupenjoe.net/yt30/gist Textures: https://url.kaupenjoe.net/yt30/textures
== TIMESTAMPS == 0:00 Intro 0:26 Creating a new ModItemTier Class 3:34 How to Add more than one Item Tier 4:16 Registering the Tools 6:30 Adding the Tool JSON Files 8:48 Outro
== TAKE A LOOK AT MY COURSES WITH COUPON CODES == ▶️ NEW Forge Modding with Minecraft 1.20.X: https://url.kaupenjoe.net/CourseForge120X ▶️ Learn Forge Modding with Minecraft 1.18: https://url.kaupenjoe.net/CourseForge118 * ▶️ Learn Fabric Modding with Minecraft 1.18: https://url.kaupenjoe.net/CourseFabric118 * ▶️ Complete and Roblox Lua Game Development: https://url.kaupenjoe.net/RobloxCoupon *
== SOCIALS == Discord: https://discord.com/invite/yqxykanpWf Personal Twitter: https://twitter.com/Kaupenjoe
Instagram: https://url.kaupenjoe.net/tutorials/instagram Facebook: https://url.kaupenjoe.net/tutorials/facebook Twitter: https://url.kaupenjoe.net/tutorials/twitter TikTok: https://url.kaupenjoe.net/tutorials/tiktok Written Tutorials: https://url.kaupenjoe.net/tutorials/blog
== LICENSE == Source Code is distributed under the MIT License. Additional Licenses for other assets can be seen below or in the accompanying CREDITS.txt on download.
== ADDITIONAL CREDITS == Outro Musik by Kevin MacLeod: “That’s a Wrap” Kevin MacLeod (incompetech.com) Licensed under Creative Commons: By Attribution 3.0 http://creativecommons.org/licenses/by/3.0
== AMAZON AFFILIATE LINKS == Amazon Referral [US]: https://url.kaupenjoe.net/amazonref/us * Amazon Referral [UK]: https://url.kaupenjoe.net/amazonref/uk * Amazon Referral [DE]: https://url.kaupenjoe.net/amazonref/de *
== AFFILIATE DISCLAIMER == * Some of the links and other products that appear in the video description are from companies which I will earn an affiliate commission or referral bonus from or are my own products. This means that if you click on one of the product links, I’ll receive a small commission or additional kickback without any additional cost for you. This helps support the channel and allows me to continue to make videos. Thank you for the support!
== HASHTAGS == #Minecraft #MinecraftModding #MinecraftTutorial #Kaupenjoe