Let’s make our blocks minable and add custom loot tables to Minecraft oh is that I can tell you once more and in this tutorial we’re gonna be adding a custom loot table to Minecraft and this basically will enable us to mine our blocks and they will actually drop themselves or whatever we basically Choose for them to drop now for this we will be using loot tables which is a special type of Json file now this will actually go into the resources folder and then inside of a new folder called Data now instead of here we need to make another new directory called tutorial Mod so this is the actual name of our mod ID and then inside of there we want to make another directory called loot underscore tables and then inside of there last but not least we want a blocks directory now it’s extremely important that this directory is written correctly And you have data tutorial mode loot underscore tables and then blocks this time in plural and when it comes to loot tables they can be quite complicated so let’s just first of all create a new file over here and that’s going to be the black underscore opal underscore Block dot Json now for the sake of argument I will be actually copying over the Json file the confidence of it but I will show you two great resources that you can use so first of all this is the Json file now this is one of the ones That is actually not too complicated if you could believe it so we’re basically going to have one pool in this case and then we’re going to do one roll and then it chooses one of those entries in this case we only have one entry so it is Always going to drop a black block now the two resources number one is going to be missile GitHub i o right here and that is the loot table generator Linked In the description below and that is absolutely amazing because right here on the left you can basically Define like Whatever you want you can for example to see well what is roll mean well the amount of entries that are are randomly chosen so if you’re like oh well I want two of them then you can see two stones will actually be dropped I’m like I actually don’t want two stones to be Dropped I actually just want one stone to be I actually don’t want a stone to be drawn I actually want Oriole mod Poland black underscore opal underscore block to be dropped and it can even deal with this it just will basically not display the texture because of course it Doesn’t have the texture in disk but yeah you can add different entries you can even add different functions right here right so you can set the count you can do you can set the damage you could add enchantments all of this craziness is available to you I highly recommend Looking at this and then you can just copy it from here or alternatively and this is probably even one of the better ones under the external libraries what you can do is you can go down all the way to let me just find it client X from 193 or whatever your version might be going to data Minecraft and then right here in the loot tables blocks you have all of the load tables from every single block that is in vanilla everything is available here so for example right like how does coal or drop well it drops like This which we’re actually going to in just a moment because we also have some ore so everything is available here so you know anything that you might want to do you can basically look up at either the external libraries or generate stuff via missile IO and with that I’m Actually going to copy over the remaining four files over here for the oars and you can see they are pretty much exactly the same as the call or right because of course when you have an or the first thing you want to check for is the hey does the actual tool that the Player uses have silk touch on it and if it does then we’re actually dropping the actual block itself and if not then we’re going to drop the raw black op and here we can see we also apply a bonus if in this case a fortune enchantment is present so once again highly recommended To check out both missile as well as the vanilla loot tables now we’re not done just yet because right now these blocks right all of the blocks that we’ve basically added they still don’t know with what type of tool they can be harvested with and for that we actually Need another folder inside of the data folder and that is going to be called Minecraft you might have heard of that before and until there we want another directory called Tags and then inside of there we want another directory called blocks and then we want one last Directory and that one is going to be called minable oh that is not how you write it you write it like this minable right now I will be copying over the Json files now that’s of course all available to you in the description below in the GitHub repository and let’s Just copy them over so you can see the minable has four different Json files x.json holder Json bigx.json and shovel.json and then inside the blocks fold are very important not inside of the mindable folder we have three different Json files and that is the needs Diamond Tool Json file that needs Iron tool Json file and the dawn tool now if we look in the pickaxe one I already prepared all of the different blocks in there right so those are all of the different blocks in here so all of them can be mined with a pickaxe that Should make sense right and then if we don’t Define them they can be mined with wood and anything above however if we do Define them for example in the iron one then in this case the Black Op or in the Deep slave black opal ore can only ever Be mined with iron tools or above that is the general idea and then for example if we just were to let’s say duplicate this and just add it right here then we can for example say hey this is in stone and Netherrack maybe so we’re gonna add Another rack right here so those can then only be ironed with diamond or above so that would be the general idea I know people are going to ask well what about if I want my blocks to only be minable with netherrite well we can actually add that as well and that is Under the data folder we actually want to make another new directory called Forge and then instead of here once again tags and so there we want blocks again instead of here we want a new file called needs underscore netherrite underscore tool.json and then we can just copy this in this case and then Let’s just say that the N Stone one can only be mined with netherrite and then this can be mined with diamond normal and deep State 1 can be mined with this and then the block can actually be mined with wood as well let’s just say for the Sake of argument that should in theory work all like that and that is actually all that we need to do however it is pretty important that you have all of those tags set up correctly otherwise it will not work and then you do need to add you know if you add another block That could be mined by the shovel then you want to add it here as well another very important note if you add things to these tags and they have a typo in there somewhere right so for example I have a typo right here now if this is the case The entire tag will no longer work this means that the needs iron tool Json file is completely void and it does not work so neither your custom entries nor the entries from vanilla will work so please keep in mind to check and double check this for any typos and then also make Sure to not reference any blocks that are not yet existent but once you’ve done this well we can go into the game and see if it works alright so we find ourselves back in Minecraft again and in theory oh well or main first of all we should go into survival mode that’s a Pretty important step over here now the reason this might take a little bit longer is because of course it’s um it’s a wood pickaxe but you can see I can mine it and the block drops now let’s continue along I believe uh this is still no we don’t have anything with Stone you can see this is why it takes so long right we basically can’t mine it with it uh but this one should work so iron for this and it does and then iron for this should not work question mark it does let I have to double check this However this should not work and you can clearly see this does not work however with diamond it should also not work however with netherrite it should work and it does and we can actually double check this right let’s just like keep this going and it should Not drop anything if I do it with a diamond pick and as you can see it does not work this one should work with a diamond pickaxe but nothing else or an and above basically so iron will not work it takes a little bit longer and it does not drop anything however netheroid Will work because it always is the needs x dual and above right so it’s if we say it needs the Diamond Tool then it’s the Diamond Tool and everything above it but that is pretty awesome indeed now the blocks drop something and you can Define what type of tool things can be dropped With there you go it is right both the Deep slate as well as the Black Opal or are able to be mined with iron so that was all fine and that would be it for this tutorial right here I hope you found this useful and you learned Something new I’ll see you all in the next tutorial so yeah Video Information
This video, titled ‘Minecraft 1.19.3 – Forge Modding Tutorial: Loot Tables | #4’, was uploaded by Modding by Kaupenjoe on 2023-02-08 15:59:50. It has garnered 6775 views and 131 likes. The duration of the video is 00:08:00 or 480 seconds.
In this Minecraft Modding Tutorial, we are adding custom Block Drops using Custom Loot Tables to Minecraft 1.19.3 with Forge.
== SUPPORT ME ON PATREON == ▶️ https://www.patreon.com/Kaupenjoe
== COMPATIBILITY == ▶️ Compatible with 1.19.3 and 1.19.4 ✅ SHOULD BE Compatible with 1.20.X
== ASSETS & DOWNLOAD LINKS == GitHub Repo: https://github.com/Tutorials-By-Kaupenjoe/Forge-Tutorial-1.19.3/tree/4-lootTables
== 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