Hey guys it’s thomas here with technovision and welcome back to another minecraft modding tutorial video for 1.16.4 now in this episode we’re going to be covering loot tables to add a custom block drop to our block and in order to fit all the information into this one video I’m going to be splitting this up into three sections and as you can see on screen in the first section we’re gonna be adding a custom blue table so essentially uh block drops to our ruby block that we made in the previous episode and this will change based on the Enchantment on the pickaxe then in the second part we are going to be overriding the vanilla loot table for the cole or block and then in the third episode we are going to be injecting some of our own entries into the existing loot table for the emerald ore block so three Examples of how you can use loot tables to add some interesting drops to your game alright so to get started we are actually going to create a directory to store our custom loot tables so to do that you want to go over to your package explorer over here And go open resources now right now we have a a package here a directory called assets and this obviously stores all of our assets for the game but what we want to do is close this up and we actually want to create a new folder and resources here So right click resources new directory and we’re going to call this data and just like you would expect this data folder is going to hold all the data jsons for our game so what you can do in this data folder is create a new directory And you want to name this the name of your mod id so in my case i have right here tutorial so i’m going to name mine tutorial so as you can see just like assets we have our our mod id right after there we go so inside of our mod id Folder we’re going to right click create a new directory and we’re going to name this loot tables and you want this to be it has to be specifically loot underscore tables with that underscore there we go and inside of loot tables we want to right click create a new directory and we’re going To call this directory blocks all right so this is again the reason we do this is because it follows the structure of the game’s packages but so now we have a data your mod id folder loot tables and then all of the loot tables regarding blocks So custom block drops are going to be inside of this blocks package here now i am going to show you the other packages inside of loot tables just so that in the future you can add your loot tables to more advanced things to their respective directory So the second directory we want to make inside of loot tables is going to be called chests and we’re not going to be using this in this episode but you will be throwing your loot tables for all of the things that spawn inside of chess whether that’s Like a dungeon chest or in a village that will be going inside of here another directory inside of loot tables that we want to make is called entities again we will not be using this inside of this tutorial but any sort of loot table that has to do with the drops For an entity like for example the drops of a creeper or a a pig would go inside of this folder and then finally we have our last directory inside of loot tables and that’s called a gameplay and you’re probably never going to be using this unless you are making a very advanced mod But uh all the loot tables that have to do with things like trading like piglen trading uh phishing all that sort of stuff would be going inside of this folder right here now to actually make your loot table you want to come over to the blocks package here Because we are going to be making a loot table for our ruby block and you want to right click create a new file and this is going to be a json file and it’s going to be named the path of your your specific block that you are making this loot table for So for example before i actually do this in mod blocks you can see that our ruby block the path is named right here ruby underscore block so we would have to set our loot table’s name to this that way the game knows that this is what we’re setting the loot table for So again go to your blocks here blocks package right click new file and name it exactly what you put your block path so mine is ruby underscore block and then you want to add dot json of course because this is a json file hit enter add a repository All right so we now have our json file now loot tables are very complicated in how they actually are created and structured and it does require a lot of knowledge of json but i have a really helpful solution in the description so if you head to the description of This video you can actually find this website here and i actually found this from my good friend turdy wordy who also does tutorials on on minecraft and modding and this is essentially a loot table generator which will allow you to generate a minecraft json blue table for a block or really Anything without having to actually code in json which is super helpful especially if you don’t know json that well although it always helps now first thing you want to do make sure that the version up here is set to 1.16 uh because that is the the version we Are using for this tutorial another thing i should mention before we continue is that there are a lot of presets here with this preset button you can click any of these presets like for example if you wanted to find the redstone or loot table you could type redstone underscore or And there we go you can see blocks redstone ore and if you click it and not only does it give you the redstone or json here on the right but you can actually edit any of the values as necessary so super helpful and i definitely recommend playing around with that But we are just going to reload real quick all right so before we actually get started here with all these values i want to actually explain really quickly what loot tables are and how they are structured and how they work because loot tables are really really complicated when you don’t understand Exactly what these sort of entries are and what they’re doing so i’m gonna make a little crappy animation that you can look at right now but essentially every loot table is a json file that has pools now a pool is like essentially just a group of entries There can be multiple pools in a loot table there can most often just be one pool but just know that there can be any amount of pools that you want so inside of a pool there are entries and there’s also a value called rolls and this essentially Determines how many of these entries are randomly selected so these entries can be all sorts of different stuff all sorts of different drops and a lot of different things that you can mess around with that i’ll show you in a second but you can add multiple of them and Inside of these entries you can add functions and conditions now these functions will carry out unique properties uh and then the conditions will actually specify what conditions you need to meet for this entry to actually roll and to happen i know that’s really complicated and i Hope this sort of helps a little bit but you’ll see it in action in a second but just know that there can be multiple pools and in each of these pools can be multiple entries and each of these entries can be multiple functions and conditions So yeah all right so now that we have that out of the way uh first we want to select the type of our loot table we are going to be making a block drop loot table so we are going to click minecraft block here There we go and you can see it set the type right there to minecraft block and uh you can add as many pools as you would like but i’m going to be starting out with one pool so you can see it auto generated a pool for us here So we have a pool and we need to select the rolls value now the rolls like i mentioned earlier is uh how many entries in the pool are going to be randomly selected so if you have like 10 entries for example inside of this pool and you have a roll value of 2 That means out of those 10 entries 2 will be randomly selected from this pool they’ll compete with each other to get selected when you break this block uh to keep this simple i’m just gonna be setting this to one because i only want one thing to execute When um one entry to execute when i break the block but you can mess around with this you can even have a range like a minimum and maximum so it’s random or binomial if you want but i’m going to be having exact one and it shows you right here uh some Information you can also have bonus rolls but i’m not going to be messing around with that so we also have an entry here it auto-generated an entry for us and you can see here so we have our pool right here and instead of that pool is the entries array and we have our First entry here and this entry is just an item entry so uh we can select with this entry an item that will drop uh when we break this block so right now what this is saying is that when this uh this block is being broken in In our case it’s the ruby block it is going to drop a stone block we don’t want that obviously so i’m going to delete this and you can type in whatever you want to drop when you break your block i’m going to be setting this up kind of Similar to an ore so actually when you break the ruby block i want it to drop the ruby items so to just get one of your custom items in here you’re going to type your mod id so tutorial colon and then the name of your your item or block so in my case Ruby and so what this is saying it’s going to give you an error but that’s because the the generator doesn’t know about our custom items so just ignore that but essentially this is just going to this loot table right now super basic uh but i believe it would work Uh is essentially just dropping a ruby item one ruby item every time the block is broken so yeah and again you could also have it drop like itself like it could drop the ruby block uh whatever you wanted if you wanted to use a vanilla item you could type minecraft because that is The mod id of minecraft’s colon and then the name of the block or item or you could just select from this list here and there’s tons on there so but again i want this to drop our ruby item so tutorial colon ruby and we can add a function or condition uh Condition would determine you can see you can select some weird conditions here would determine uh what condition this entry needs to meet to run we’re not going to mess around that just yet but we will do that later and then functions are just some interesting things that we can set For this uh this entry so one of the functions that we can set for example is the set count so if we add a function here again to add a function to this entry i just selected the functions button here and there’s a bunch of different functions here if i delete this You can see all the different functions i’m going to be selecting set count i believe right here set count and this will set the amount of the item you specified how much of it will drop so if you set this to one for example then one ruby will drop If you set this to five then five ruby items will drop every time you break the the block uh you could also set it to range which is what i’m gonna do so i’m gonna set the minimum range to one and the maximum to four and what this means is that every time You break the ruby block with this uh loot table uh there will be a random chance to get anywhere between one to four rubies so you can have a range like that uh or you could also have a binomial so yeah i’m going to do that so You’re going to get a chance between one to four rubies every time you break this block and we can also set again a condition for this function so even functions can have conditions uh so i know it’s very advanced a lot of stuff going on here but Again just to show you you can select any condition you’d like here uh but i don’t want any conditions for right now so i’m just going to leave this be so there we go right now our loot table you know it is functional like i said Uh but we want a little bit more than this so um in order to actually have multiple functions um rolling but that don’t conflict with one another uh what we can do is we can actually get rid of this function here and this entry and we can add a new entry And we can set this to alternatives and uh we can actually have children here and we can select children entries so what alternatives we’ll do as an entry will allow you to have uh this is like one entry and when this is uh rolled by the pool it will uh Check any of these entries essentially so this can this will allow us to do stuff like having a silk touch silk touch like custom enchant effects as well as like fortune and all sorts of stuff like that so i’m going to be going with the entry alternatives i just wanted to show you That previous example just so you kind of understand entries uh and then inside of here we’re going to add a children this is going to be item again i want it to drop the tutorial the tutorial ruby and we’re going to add a function here Uh the count i want to set it to a range between one and four and we’re going to add another children to or another child rather to alternatives so another child because what i want to happen is i want silk touch to actually drop the the block itself not a ruby item So what we can do here is set this to item again because it is an item drop uh we can set the drop to our mod id tutorial colon and then the block so ruby underscore block because this is what i want to drop for this specific Entry and then we can select a function um we can select the count if we want uh i believe one is default though so we don’t need to set any of these functions let’s see if i want anything interesting in here uh no i don’t need anything interesting in Here so we can just get rid of this function but we do want a condition so the reason we want to condition is because we want to check if the player has the silk touch enchantment so we can select i believe it is a match tool For a condition and you can do all sorts of stuff here you can check if the player is holding like granite you can check if they’ve got like a potion potion effect you can check item tags all sorts of stuff but i’m just going to be checking in an enchantment So i’m going to leave all this blank and i’m just going to select enchantments and we want to check for silk touch silk touch and we want we can check an exact level or we can check like a minimum i’m going to do range because i want just like a minimum so I’m going to leave max empty because there will be no max but i want to make sure that they have at least level one of silk touch for this so all right hopefully this is making sense so basically if you see over here it’s editing our our uh loot table here so um This is this pool is gonna roll the minecraft alternative uh entry here and if the uh the player has the enchantment silk touch and it’s at least level 1 then this loot table will make sure that the block drops itself the ruby block if the player does not have silk touch Then it will run this entry which will give the player between one to four ruby items so yeah kind of hopefully making sense here i know it’s a lot to process but you’re just gonna have to mess around with it yourself some other things i want to add inside of our our Ruby item drop entry here is some additional functions so let’s see what we can add um let’s go to functions for this entry so that would be right here and let’s see what other functions we can add here we could add a uh apply bonus yeah apply bonus here this will allow us To uh set like a bonus amount that will drop when the player has a fortune enchant because you know these things they don’t work like naturally like just because you have your block dropping rubies doesn’t mean the fortune enchant will automatically affect that so we need to add it ourselves so We can do like apply bonus for example and we can select the enchantments uh i think it’s looting or not looting what is it called fortune that’s the one for mining and we can select a formula here uh you could select like an individual multiplier but i’m going to just be following the The or drops formula and there we go so as you can see right here when we mine our our thing with fortune it will uh it will apply a bonus so that’s very important i want to make that a distinct there and then i guess another thing another function we could add Instead of our basic item drop here is uh uh what’s another one that most ores have explosion decay is another one that most uh ores have so this will make sure that uh it will change the drop amount if um the uh the thing explodes from like a Tnt piece for example because as you know in minecraft if an ore is blown up with tnt sometimes the ore will actually uh like be destroyed in that explosion so yeah that’s what explosion decay will affect and yeah i think that’s pretty much all that we need for right now so as you Can see we have created a pretty advanced i would say it’s you know it’s basic but pretty advanced medium level advanced loot table and you can see it all right here and just to run through it one more time uh this time on the actual loot table itself Um we have one pool just a single pool with one roll so it’s going to select one entry and we actually have one parent entry called minecraft alternatives that has two children the first child is a block drop for the ruby block so this will this means that the ruby Block will drop itself and we’re making sure that the player has silk touch for this with at least a level of one uh if that is not the case then it will move on to this other entry here for a minecraft item and this will drop the ruby item our custom ruby item And uh we’ve got a few functions here first the ruby item could be anything from one to four rubies so that will be selected here uh we also have a bonus being applied if the player has a fortune and chance and we also have explosion decay so as you can see we’ve got All these sort of like sub functions and sub uh conditions inside of our entries inside of our pool so yeah again the only way that you’re going to actually make sense of any of this is by trying it out yourself and making mistakes and specifically checking out these presets So once you are done with your loot table and you’re all happy with it you can actually come over here copy your loot table go back to intellij right click in your your json here where your loot table should be and you can paste it in and just like That we have our loot table and thank god for this uh this generator otherwise we would have to uh pretty much code all this by hand which would not be fun i can promise you right now so yeah there you go you’ve got your loot table all set in intellij Alright so we should be good to go and run the game now to test this out so file save all and we can run the game and i will see you in a second all right so we’re inside of the game now and we’ve got a ruby blocks and some pickaxes And if we throw this on the ground uh if you remember in the last episode we actually set the harvest level to the number two which means that we should only be able to harvest this with iron tools and above so if we actually try this with an iron Pickaxe we should get between one to four uh rubies and there we go we got three this time so it should be random so if we try it one more time we might get a different number we might get the same but there we go That time we got two rubies so it is working perfectly and if we try it with a stone pickaxe it should not be able to harvest because it is below the harvest level that we set in the blocks tutorial so there we go so we got nothing that Time perfect and then i also want to try this out with our silk touch pickaxe so we got silk touch and chant on here and it should drop the block itself so there we go perfect just like how an ore works in the vanilla game and also of course if you Enchant one of these pickaxes with fortune there will be a chance for extra rubies when you mine it just like we set in the loot table all right so that’s the end of stage one of this tutorial episode now in the second stage i’m going to be showing you how to completely override A vanilla loot table to add your own custom one now i do not recommend doing this if you are trying to make a mod that is going to work with other mods because this will completely override even changes that other mods are making to vanilla loot tables I can show you in the third phase of this episode how you can get around this so i really don’t recommend this method unless you really think that it’s specific to your use case but i’m going to show it anyway just you have the tools available to you So if you want to completely override a vanilla loot table you want to come over to your data folder here and as you can see we have the mod id folder for our mod id which is tutorial now what you can do is you can actually create The directory to the vanilla game files using the vanilla game mod id which is minecraft and you can overwrite them from there so we can actually right click on data create new directory and we want to name this minecraft because that is the mod id of the vanilla game And then just like we did here we’re going to create the same directory so right click on minecraft create a new directory and just name it loot underscore tables and then inside of here i’m going to only make the blocks one but you’re welcome to use the other ones if you Are making loot tables for those things i’m going to right click create a new directory and name this blocks great so we now have the directory of the vanilla game loot tables for blocks so what i’m going to do is i’m actually just going to copy this ruby block The one we made and i’m just going to just right click copy and i’m just going to paste it in here just so that i don’t have to make another one uh because i do want to keep this video somewhat short and i’m going to rename this Uh we want this to override an existing vanilla block so in my case i guess we’re going to do this for the coal ore block so this would be coal underscore or json and you hit okay and add a repository great so we actually now have a we are overriding The loot table for the cool or block with our custom ruby block json so now our coal ore should drop rubies one to four rubies unless you have a silk touch pickaxe in which case it’ll drop a ruby block so yeah and again this will completely override any other changes that other Mods or vanilla minecraft are making to this loot table so we can test this out by file save all and clicking the green triangle to run the game all right so we’re back inside of the game and we’ve got our coal ore blocks so if we drop one down and we mine it With an iron pickaxe there we go as you can see is completely overridden the uh the vanilla loot table for it so now it just pretty much follows our custom loot table perfect alright great so that’s the end of phase two so now we have created a custom Blue table for our custom block we’ve overridden a vanilla blue table and now we are going to inject additional entries into an existing loot table without completely overwriting it so to do that and again this is going to allow you to actually um change or add code To the uh the loot table for a vanilla block without actually overriding the things that other mods are doing so this is the preferred way of doing it you can do this in another class if you would like but i’m going to be doing it in our main class just because it’s not That much code but you want to make sure that everything you do eventually ends up in your on initialize method here so go to your main class essentially and what i’m going to be doing for this phase is we are going to be editing or i guess injecting additional code additional entries into The loot table for the emerald ore block so first i’m going to grab the emerald or loot table and to do that we can just create a private static final identifier and i’m going to name this emerald underscore or underscore loot underscore table underscore id this is going to equal oh i spelt Emerald wrong this is going to equal a uh just a simple identifier so a new identifier and uh to grab a loot table id you just want an identifier uh with the the mod id and then the uh the actual path so the mod id in this case since it’s a vanilla Loot table would just be minecraft and the pathway would be blocks slash oh blox slash emerald underscore or i keep misspelling emerald there we go so as you can see we are grabbing the uh the emerald or loot table id by getting the identifier getting a new identifier essentially With the namespace or mod id uh in this case minecraft because it’s vanilla and then the pathway to the actual loot table and you want to omit so get don’t include um the loot underscore tables here just blocks and then the name of the the block and then i’m also going to Grab just really quick because we’re going to do some stuff with it in a second the uh pathway or the identifier for our custom ruby block loot table so again we can just do private static final identifier i’m going to name this ruby underscore block underscore loot underscore table Underscore id this is going to equal a new identifier oh definitely not that a new identifier and this time the namespace is not going to be minecraft because it’s not vanilla this is a custom block or a custom blue table rather so this would be our mod id so we would just Throw in mod id again accessing that string up here and then for the path uh it would be blocks slash and then as you can see here the pathway is blocks and then ruby underscore block so that’s the path blocks and then ruby underscore block There we go perfect so now we have our ruby block loot table all right now to use these i’m going to make a new method right below the uninitialized method called modify loot tables and we’re just going to throw all of our code in there Just so we can call it in on initialize without any sort of like you know messy code in the main uh the main function here so i’m gonna make a public or no i’m gonna make it private rather because no one needs to access this so private void uh modify loot tables Modify loot tables there we go and again you can name this whatever you’d like this is just my specific one and i’m going to be throwing my code in here so in order to actually inject additional entries into a a loop table we need to get the loot tables when they’re being Registered to the game so to do that we can actually get loot table i believe it’s not not config loot table loading callback i think yeah okay loot table loading callback uh dot events and then i believe it’s dot register and inside of this dot register we can uh well first let’s Set the parameters so resource manager it’ll if you type resource manager and you hit tab it should autofill all of them there are a ton here i think all we really need is resource manager loop manager uh we can call this id for short let’s call this supplier because we know What kind of supplier it is and just setter there we go so this is going to open up into some braces here there we go and then inside of this uh this register method here we are going to be running a bit of code so we’re essentially uh like adding our own Stuff when the uh the loot tables are being loaded in the game pretty much so what we want to do is check for the emerald blue table id so uh we can do that with if emerald or loot table id dots equals and then we can just grab The id right here that we have uh there we go so if that’s the case because what this is gonna do is it’s going to go through all of the loot tables in the game so uh we’re first checking for the emerald or loot table And then once we know that we have that specific um loot table because it equals the id that is currently uh you know uh in in play here then we can uh add our own code so let’s just write a little note here checks for emerald or loot table And once we know that it’s that one again you can customize this however you would like uh what you want to do is create a pool in code so just like we made a pool here in our our generator you can see our pool right there we’re Going to do that in the code here so to create a pool you want to use the fabric loot pool builder and i’m just going to call this pool builder for now and this is going to equal a fabric loot pool builder dot builder and then we’re Going to use a few methods inside of this builder to actually build our pool so we’re going to build the pool first and then we’re going to inject or insert or add whatever you want to call it into the existing loot table so uh there’s a few ways you can go About this i’m gonna show you two examples um let’s say for this example let’s say we want to add just a single individual item so we just want to add one item to the loot table of emerald ore so to do that what we can do Is first do dot rolls and we can uh we can just create the amount of rolls to one so let’s let’s put inside of here constant loop uh loot rather not loop constant loot table range dot create and this will set the uh the Roles for our pool so in my case one and again just like uh in this generator here we’ve got the rolls here so we’re creating a pool and then we’re setting the rolls to one so yeah there you go uh and i believe you could actually set this Also as a range if you wanted i believe you could use instead of constant loot table you could use uh what is it called i’m forgetting uniform loot table range i believe yeah dot create dot between that’s what and then you could set two floats like 1.0 f And then like 3.0 f so that would set a range between one to three rolls but yeah you can use that if you want i’m gonna be doing a constant so just one roll and then uh i don’t want a semicolon there i want to keep going so then we want to add An entry so we can do that with dot width and we can add an entry by just doing item entry dots and then builder with a lowercase dot builder um this is a method rather and we can just add the item that we want to inject into this loot table so I guess the item i want to use is items dots let’s do like a gold nugget there we go gold nugget and again if you wanted to add your custom item you could do mod items dot and grab your custom item but yeah i’m gonna add a gold nugget to This and make sure you import item entry and uh let’s see what else can we do here let’s let’s hit the amount so we could set the amount with a function so again all the stuff that we’re doing here is exactly what we’re doing in this loot Table generator we’re just doing it with code instead of json so um another thing we could do as a function so we could do with function for example and we could throw in a function like uh let’s let’s set the count so set count loot function there’s a bunch Of different ones that you can look at yourself if you want dot builder and uh let’s throw in this is gonna set the count the amount of gold uh nuggets that are gonna drop we could set this from anywhere between uh well dot builders rather so inside the builder we need to set Uh a uniform loot table range between and we can set let’s do same as the uh the main loot table 1.0 f the main by main i mean the ruby block glue table rather 1.0 f and 4.0 f uh and then we also have to dot build this builder so there we go Yeah kind of annoying but as you can see uh we’ve pretty much just built a pool pretty much so it’s got a roll of one it’s uh just got one item one drop which is gold nuggets and it will drop a count amount of a range between one to Four so it’ll drop between one to four gold nuggets and yeah we can just build this and add it with supplier dots with pool with pool and then we can add our pool so uh pool builder that’s this thing right here that we just created And then of course this is we don’t want the fabric loop pool builder we want just the loot pool so we got to do dot build in order to actually make sure we build it into a pool and yeah there we go so that is a pool and we have Successfully added it right here to the emerald ore loot table and you can do this for any sort of loot table that you want now you could add additional dot width methods here but because they would be entries inside of the same pool it would actually compete with each other Now you could get around this by using an alternative entry like we did here that’s uh where is it minecraft alternative entry here with children but i’m just gonna make a second pool and inject it like that so uh just for our second example here i’m gonna try adding an entirely uh new Loot table into the existing table so it’ll combine them together so what’s a little note here i can set injects or add custom loot table so again this will not overwrite it like the last example i showed you not this example like uh the one we did here So this one overrides the the block again this will not overwrite it this will add it on top of existing material so again we can grab that pool builder again and this time our pool we’re going to do some interesting stuff with it we’re going to set the rolls To uh just like last time just one so constant loot table range dot creates and we can just set this to one there we go oh we also need to name this something else cause we’ve already used pool builder so let’s do pool builder two i guess Uh i don’t wanna send me go on keep doing that so we’ve set the roles to one now we can also we can just add our loot table so dot width and uh you can see in our last example here we added just with dot width just an item entry This time we are going to add a loot table entry so we’re injecting an entire loot table salute table entry dots builder builder and then i believe we just throw into that builder the loot table so let’s import loot table entry and we can throw in Our ruby block loot table id copy it we got it from the identifier here and paste it in and there we go i think that’s pretty much it so this second pool builder is again just as a role of one but instead of uh adding an item entry With just one item and a function this time we are actually inserting adding our entire all the code inside of the ruby block loot table so yeah that’s that’s pretty much oh well we gotta do one more thing before we’re done we need to add it to the supplier so Supplier dot with pool remember this is very important you have to actually add it to the uh the loot table so we’re going to add the pool builder tool too because that’s the one we’ve been building right here dot build there we go so I know this is a lot very sorry i know but hopefully you now know how to actually um uh not not just override but add into existing vanilla loot tables because this is highly requested so now that we’ve done that we can file save all and uh we just need to Throw in on initialize so make sure you always run all this code in on initialize let’s just throw modify loot tables in there so again that’s the name of our our function here so we’re grabbing our our identifiers using them inside of this custom private function and then we’re Just calling it in our on initialize method in the main class cool so now we can run the game and test this out all right so we’re inside of the game again and we’ve got our emerald ore this time and again it should not get rid of the Existing loot table it should add on top of it so uh our sheep is checking us out here if we actually mine this block here there we go so we can see that uh both pool we added both pools here so first it’s using the existing loot table Of uh just the regular emerald low table and then we also added those gold nuggets that pool of gold nuggets and then finally we also injected our ruby uh our ruby block uh loot table in there so we’ve got essentially three loot tables merged into one or essentially three pools in one loot Table and yeah so and again because we use two pools instead of one for the gold nuggets and the ruby stuff we uh they aren’t competing so they both uh run separately but if we put them in the same pool uh they would actually compete with each Other and sometimes you might get gold nuggets and other times you might get rubies so keep that in mind when you’re designing them and again if we use silk touch here we can see we actually get uh that gold nugget one is running like normal uh because we didn’t set any silk touch Stuff with that but we get the emerald block and we also get uh this block as well all these things working perfectly just like we set in uh in the code in the main class all right so that’s going to do it for this episode thanks guys so much for watching I know it is a ton of information and i know this is a really long video but i wanted to show all the possible ways that you can use loot tables that way you wouldn’t have to wait for other videos so it’s all in one place but again definitely make sure you check Out this builder mess around with it make mistakes get errors in your code do whatever you have to do to fully understand this because once you do i promise it’ll be so much easier to modify stuff and make really awesome advanced loot tables and of course definitely make sure you Check out this sort of cool system we can use to modify existing loot tables i didn’t show you everything but there are a ton of different like methods you can mess around with here adding different entries functions conditions so definitely check all this out and i will also leave a bunch of links And tutorials uh additional stuff additional help for all of this in the description so thanks guys so much for watching and i will see you in the next episode Video Information
This video, titled ‘Minecraft 1.16.4: Fabric Modding Tutorial – Loot Tables (#5)’, was uploaded by TechnoVision on 2020-12-30 18:26:41. It has garnered 15587 views and 591 likes. The duration of the video is 00:38:17 or 2297 seconds.
Learn to code a Minecraft mod from scratch in this complete tutorial series! In this episode, we create a loot table that allow for custom block drops and also override and modify existing vanilla loot tables. I also showcase how to create a fully functional ore using enchantment addons.
— Important Links —
● Loot Table Generator: https://misode.github.io/loot-table/ ● Additional Info: https://minecraft.gamepedia.com/Loot_table
● Discord: https://discord.gg/m5fjByfrKP ● GitHub Repository: https://github.com/TechnoVisionDev/Fabric-Modding-Tutorial-1.16.4
— Music —
● [No Copyright] Chill Lofi Hip-hop ● Phil Smiff – lake.side ● Xori – Dreamin
— My Channel —
● Subscribe: http://tinyurl.com/zbc7mwy ● Instagram: https://www.instagram.com/tomm.peters ● Twitter: https://twitter.com/TechnoVisionTV
#minecraft #modding #tutorial