Come to dig dig dig and let’s add a custom tool tier to minecraft all right we find ourselves back and tell you once more and in this tutorial we’re gonna be adding a custom tool tier to minecraft now what does that even mean it means the following you know that Certain blocks like obsidian can only be mined with for example a diamond pickaxe now we’re gonna do the same thing but we’re also going to make it so that certain blocks can only be mined with netherright and certain blocks can only be mined with our custom tool material So well let’s just take a look for the custom tool material we basically in the item package just going to create a new java class called the mod tool material class now this is going to be a little bit weird because what we’re going to do is we’re going to Implement the tool material interface right here but then what we’re going to do is we’re going to not implement anything but click on this press ctrl h and look at the two materials from that minecraft item and what i’m just going to do is i’m just going to copy over the Contents of this because this will always look the same this is basically always the same thing just copy the contents over here you’re going to get some errors that is absolutely no worries that error is because the constructor doesn’t have the right name so you just name it mod to a material And then all of the errors should go away these ones are going to be fine so these arrows will go away once we change this from a class to an enum and now no more errors should be present and in theory you can now have you know wood Stone iron diamond gold and netherright you know your two materials right here the great thing about this is that you have access to those values so you can basically take a look at them and then so you could change them if you wanted to for example and we’re just going to Keep netherright but i’m going to rename this to tanzanite and now very important the mining level here is going to be five because once again right so if we take a look at this mining level for diamond is three netherright is four and then anything above it you know we can Just change this basically your ability let’s just say like something like 1800 mining speed is gonna be a little bit less than another right but maybe the attack damage is gonna be way more or you know something like that maybe no maybe maybe only maybe only like a seven That’s okay and then enchantability is going to be a lot as well and then here we actually don’t need all of this insanity we can just do following just make a supplier of an ingredient so this is going to be ingredient.of item and it’s going to be mod items Tanzanite this is gonna then gonna be the ingredient that we’re going to be able to repair this with if you run into an issue that this lazy doesn’t work properly right you can just literally replace this with a supplier i highly actually i highly recommend doing this One way or the other because there really isn’t any reason to have this anyway so you can basically just do this and then there you go this is our supplier of ingredient and then there you go so this should be pretty much fine now this class is of course as Always available to you in the description below it will pass to an individual just as well and now we have this that’s great so this is now mining level five absolutely no worries now let’s go into the mod items class and let’s just create a new pickaxe in this Case we’re just going to make a new tanzanite pickaxe we’re just going to create the pickaxe in this case but the idea goes exactly the same for everything else you need the tool materials only once and then you can use them for all different types of items Basically so for all different types of tools this is going to be a pickaxe item this is going to be mod i mod 2 material there you go mod tool material that tanzanite you know attack damage maybe a little bit less for uh for a pickaxe attack Speed maybe also a little bit less there go max count one that should pretty much i think this should be default but it’s gonna be fine and then there you go so now we have a tanzanite pickaxe that has mining level five now first of all let’s Add all of the you know things we need to always add four items right the translation over here nothing too crazy there you go tanzanite pickaxe and then let’s add the item model file as well right just points to a you know to a normal texture over here this is like at This point we’ve seen this plenty of times before so i think that you should be able to get that do this on your own even but that’s gonna be okay so now we have this this and this so now the actual tanzanite pickaxe is in game but we don’t have any Block at the moment that can only be mined with netherride or only mind with our custom tanzanite tool so to do this what you want to do is you’re going to go to the data folder you’re going to make a new directory called fabric in there you’re going to make a new Directory called tags instead of there we’re going to make a new directory called blocks and now this is very important right we know the from minecraft the block tags are needs diamond tool needs iron tool needs stone tool in fabric what we need is we need a needs tool Level underscore 4.json this is going to be the netherride one so for example um we do have some things in here let’s say the tanzanite ore can only be mined with this let’s actually get the entire thing over here right and then the netherride or let’s say right can only be mined with Netherright because netherite is tool level four let’s get this out of here right so then the or block will only be able to be mined with netherrite and above let’s just copy this by dragging it into the same folder while holding control and then we’re going to do needs tool Level 5. now this is our custom tool level right and what we’re going to do is we’re just going to say this is then going to be the tanzanite block so let’s get that out of there as well and then in needs to level five we’re going to say okay The tanzanite block is the can only be mined with our tanzanite tr pickaxe and funnily enough that’s actually all that you need to do to basically add this be sure that the json files here under the data fabric tags blocks folder so that that is you know correct they’re named Correctly so it has to be needs underscore tool underscore level underscore you know and then four five six or what however basically many you want to do and the level number here of course refers back to the mining level that we’ve made the tool material with so pretty much should Be fairly self-explanatory you can now just add you know other ones as well right so you can just basically copy this over change this around and then you know maybe make a shovel item so and continue along with that and then you also have a custom full tier so that you Can basically specify with what certain blocks are mined with well a little bit of a typo snuck in this is of course not a pickaxe pickaxe this is a tanzanite pickaxe there you go that’s actually kind of a funny typo i’m not gonna lie but now everything should Work so let’s go into the game all right so we find ourselves in minecraft again and we have a diamond pickaxe another right pickaxe and a tanzanite pickaxe and of course in theory those two blocks should only be mineable with well netherride here and tanzanite here let’s first of all try The diamond and you can see it does take a little bit longer and as you can see nothing drops from it exactly how we’d expect it to now the netherride should be able to mine the ore let’s see and there we go something drops absolutely amazing but it should not be able to Mine the block itself exactly what happens now the tanzanite pickaxe however should be able to mine the block let’s see and there we go able to mine the block and of course the ore as well because in this case you know everything works if it’s the level or Higher that’s pretty much how you can add a custom tool levels to minecraft and that’s gonna be it for this tutorial right here i hope you found this useful and you learned something new and i’ll see you all in the next tutorial so yeah Video Information
This video, titled ‘Minecraft 1.19.2 Fabric Modding Tutorial | CUSTOM MINING LEVEL | #30’, was uploaded by Modding by Kaupenjoe on 2022-09-19 13:59:46. It has garnered 2569 views and 47 likes. The duration of the video is 00:07:27 or 447 seconds.
In this Minecraft Modding Tutorial, we are adding a custom Mining Level for custom Tools all with Fabric in Minecraft 1.19.2
== SUPPORT ME ON PATREON == ▶️ https://www.patreon.com/Kaupenjoe
== ASSETS & DOWNLOAD LINKS == GitHub Repo: https://github.com/Tutorials-By-Kaupenjoe/Fabric-Tutorial-1.19/tree/30-miningLevel Gist: https://url.kaupenjoe.net/yt428/gist Assets: https://url.kaupenjoe.net/yt428/asset
== TIMESTAMPS == N/A
== 25% OFF FOR GAMING SERVERS == ▶️ https://www.bisecthosting.com/Kaupenjoe
== 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 *
== SUPPORT ME ON PATREON == ▶️ https://www.patreon.com/Kaupenjoe
== 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
== 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