Do you want to learn a bit more about how to implement custom model data to your items in java minecraft well if that’s the case this video is exactly the one you’re looking for you see here behind me i have several diamond swords and in this video we’re Not just going to make the one diamond sword look like several different item designs oops i’m also going to show exactly how easy it is to implement it with mmo items yeah so let’s take a look at how it’s done but wait a second before we can do any Of that we need to make ourselves the actual item that we’re going to put in the resource pack i went into blockbunch of course i made myself a bit of a sword i gave it a texture and then i went in the display settings and this is where You can drag and pull in different directions in different translations in different scales in order to make the model look the way you want it to look when it’s held by the player in the game world then of course you go through the first person the head the ground and the Frames and of course the player ui when you’re done with that you go to file export export block item model you put it somewhere on computer and then you take that file and implement it in your resource panel okay people eyes up to the left if we go To that window you can see that we have a folder called assets in a file called pack.mcmeta these two are the first items you’re greeted by in your resource pack usually there’s also an image here called pack which is the one shown when you open your resource pack Settings and you choose the one you want to have that is the little icon that’s shown there if we open up assets there’s a folder called minecraft if we open up minecraft tool there are two folders and all of the folders and files till this point are super important for Your resource pack to actually work now in the models file we can find another folder called item and this is super important for if you’re going to overwrite any vanilla existing textures and items in general anything that goes into the play inventory and in custom i put my own custom models These are just duplicates of the original model but i’ve done it fixed during a little bit of a tweak that we’re going to take a look at in a second and if we go to the textures same thing here i’ve added my custom textures in here and this is super important it’s Also very important that you remember what folders you put them in because this comes back when we’re actually putting information into our files that so they link up properly and you don’t get that weird purple black big square on your screen right so let’s take a look at what the file Looks like first up we’re going to take a look at the custom model we made and the custom model has all of its information stored here these are all the different cubes and blocks about it and also the display settings are at the very bottom the display settings are quite Interesting because if you want to change something to vanilla minecraft items like the scale you want to make them double the size you can just make a file that’s called that or just add this to the existing model file of the vanilla minecraft item it’s that simple so display settings Allows us to do quite a fair bit of fun these are then of course the blocks like i mentioned that the model is built up of but at the top here the textures path right here is super important is now when you’re going to change where the custom item has its texture And as i said i made a folder called typecustom and then of course i know that the custom sword texture for this particular one is custom underscore sword so this has to be written this way textures already know that it’s going to go into the texture folder to find your textures And in textures it’s going to find this but you see with just that setup we’re not going to get the items in the game no in order to get the actual items to display on stuff we need to overwrite information in the existing item And how do we do that well the way we’re going to do that is by using predicates and predicates and custom model data input and this is how it’s done if we now open up the diamond sword file that i put in the items folder in models we’re going to find ourselves Something like this in the very top i’ve added a credit to myself because this is one of my own custom items of course i would like to have myself recognized within that so this is how you use the credit you type credit and colon and then you add the Information you want to have within these two and then a comma on the end at the very end of it all we add the rest of the file information now something that’s worth noting here is that you can actually change the diamond swords look by simply just giving it another texture right here If you want to have a custom regular flat texture but you wouldn’t have to do that you just need to place an image in items because the item generated gives us that information by default this is essentially a system that gives us whatever flat 2d image we have Into like a voxel-like model in minecraft it’s done with this input right here that’s minecraft generating it for us and that’s how they are made but now we’re going to add our custom 3d model and first off before we do anything else we need to have a comma here because We’re going to type other information at the end of the file one of the most common issues that i find people have when they contact me about stuff that doesn’t work when they’re making resource pack is that they’ve forgotten or added too many commas and somewhere typos are Insidiously easy to make and they’re also one of the most common things that breaks your items when you’re working with them and looking for commas and things that aren’t where they’re supposed to be is one of the most hectic things you can do when i tested and set this up i actually Forgot one myself i forgot to come up here at the end of my or my credits which of course is kind of sad because i added credits because i just wanted to have credits and then it broke the file but regardless if we had the comma there this is sort Of what the override looks like and i’m going to go through this with you so in the beginning you type overrides like this and then a hard bracket this is not the the regular wing bracket or like a parenthesis the ones like these nope it’s a hard bracket And the hard bracket has to be the main container and the container is something that begins and something that ends and everything that is in between there is things that goes in the container text wise this is a bit how programming is read and in that one we add some soft doings And then we add the predicate now the predicate is what allows us to overwrite the file with custom model data as you can see here we have the overrides are here so predicate gives us two things we’re gonna have to add one is the custom model data and in this Case i’ve typed a thousand you can make this essentially whatever number you want it to be it there is a limit of course you can find more about that on my wikis online but in general you can give this whatever data value you want to have now This data value is the value that you’re going to use and call for in the game to get the model to look like the different model that you’ve added like if you want to get the diamond sword look like a custom biome sort you need to apply this data value to the Item when you’re summoning it and i’m going to show you how that’s done in the game a second and then of course what model is supposed to put in so if we do that i have this file saved and i now go into minecraft and I’ll take a bit of a sneak by updating my resource pack like i saw if i now added it actually i have to think about that i don’t think i did mistakes were made people okay let’s get resuspect turn on all right now that should have sorted it But you may ask yourself wait a second why do we only see regular swords didn’t you just add custom textures to these well i mean i sort of did but when i made this video concept in my head when i started building this room i thought well I’ll just add the swords on top and they will be kind of cool when i show you them that the models are customizable but kind of spoil that didn’t i well regardless uh if we open the first suggest in here we have a diamond disorder regular one and if we open the second Chest now we have a custom model okay so let’s pull them out diamond sword custom model this is a bit interesting because i mean if i take a look at them it’s the same right it’s the same so we’ve managed to override the item data for the diamond source we have a Regular diamond sword but we also have a custom-made diamond sword the only difference is that this one holds a certain value now there are more chests here so we have another one here but they are the same aren’t they how would we go about adding more custom model data files to one file Well let’s check it out and see exactly how easy it’s done because if you haven’t already figured yeah it is very easy so i’m bringing up my editor again and this time we’re going to add more predicates and all we need to do here is just copying this Add a comma paste add a comma paste add a comma and paste because i know that i have four custom models i want to add now we’ll already set those models up this is going to be quite easy i know they have custom sword too i have Custom sword three and i’ve custom sort four and of course i need to make sure that they all have unique custom model data so i can’t just apply thousand then it’s gonna take the first one that we have here i need to have new data for The rest i’m gonna do one thousand one one thousand two and one thousand three for these give a second like so and then i’ve saved that now if we go back into minecraft and update the resource pack this is when things become interesting because if i’m not completely mistaken now If we go around the corner here we should see that in d there are four types of sword colors added and as you can see by my tags 1000 that’s the first one we had in our inventory gonna toss away well i just realized that i might not have had One thousand in the right chest there regardless one thousand and one i actually had okay so we have one thousand that is a gray sword you saw in the beginning we have one thousand two that is a slightly red sword or 1001 i mean 1002 Is a more purplish sword and 1003 is a slightly green sword and they all of course look the same when i scroll through them you can see that it’s only a matter of changing the colors so what i did here is that i duplicated my original model file and then i just Made a bit of an edit to all of the new files where i said well use this texture instead and then i made four textures that all had the same naming conventions like i did here and that added this info formation to it but what about mmo items in this chest right Here you have a sword that’s called a great sword mmo items is a plug-in you can use on your servers and stuff like that and if i go into chat i type mi edit i’m actually going to bring up the sort i was working on semi edit like that i’m going to Take this as a great sword i know that this is a great sort there we go and this one is the custom model data source i’m going to open that up and you get this interface right here now right here at this little painting icon you can actually Add your custom model data to this file you can see here it’s a great great so right now the diamond grade sort let’s add one of those inputs that we said we had before so i’m going to take 1004 and click that and suddenly you can see that it’s Applied the custom model right here to our mmo item if i were to click that again and type that to 1003 well not 103 because as you can see that brings it back to the diamonds what we had before that’s what happens when you don’t use the values you’ve added So you see that well it’s a good that i made did a mistake just 1003 gives us that one if we use 1002 uh well we need to edit of course again should give us the red version and if we take that in our item yeah well the purple one That seems to be all fine so you can see here now i have my great sword added and i can make a bunch of other cool stuff with that one as well just open up my great sword here if i want to edit it add enhancements and stuff like That block cooler reduction let’s just change the weapon damage yeah let’s make that 100. so if you take a look at this one now you can see weapon damage plus 100 so it’s working completely fine with mmo items as well and that is all i had for this little video I hope that you learned something about custom model data as you remember if you brought up the file right here you have the file with the predicates and overrides be very careful with the commas and the same thing here make sure that you define your texture surface because otherwise you’re going To get the weird black and purple textures showing up and that’s about it now you can of course also do this for other type of block items that’s in the items inventory for the player which means that yeah you can make hats for your characters as well it works the very same way Play around with it and i’m sure you’re gonna figure it out but that’s been all for today leave a like and subscribe i have been kevin and now for other adventures in other worlds to see more stuff done for this beautiful game we call minecraft uh oh yeah well not necessarily just Minecraft i guess but i could call it minecraft if i wanted to make a book about it minecraft yeah kevin sawing craft that’s a good one is that even i wonder what kind of language that would come from a bit interesting Video Information
This video, titled ‘Custom Model Data – Resourcepack Tutorial for Java Minecraft’, was uploaded by ArtsByKev on 2020-11-30 14:12:05. It has garnered 112520 views and 2759 likes. The duration of the video is 00:12:36 or 756 seconds.
Custom Model Data – Resourcepack Tutorial for Java Minecraft – What is CustomModelData? This video will teach you all you need to know about custom model data when editing your json files in Minecraft.
Get epic 3D item models, custom armor and more on our Webstore! https://www.artsbykevstudio.com/webstore
Custom_Model_Data is a number based (1, 2, 3, and so on) “NBT tag” written inside of an item model JSON in Minecraft, we can use it to show multiple variants of models bound to the same item in one resource pack. Optifine uses similar formats to make naming an item show a custom model. Here are some examples of how you summon with CustomModelData in game (on a server) since the commands vary on different setups, as one or several of these should work):
/give @p the_item{CustomModelData:value}
/give @p the_item 1 0 {CustomModelData:value}
/give @p minecraft:the_item{CustomModelData:value}
/give @p minecraft:the_item 1 0 {CustomModelData:value}
Example:
/give @ArtsByKev iron_sword{CustomModelData:1}
Are you getting ERRORS? Here’s how to solve them: https://www.youtube.com/watch?v=dKXIYmiGaIg
Here’s how Predicate overrides should look (best practice is to put them at the end of your file):
{ “parent”: “item/generated”, “textures”: { “layer0”: “item/the_item” },
“overrides”: [ {“predicate”: {“custom_model_data”:value}, “model”: “item/your_model”} ] }
Below is a filled out example (using an iron sword) with two unique models in the CustomModelData tag:
{ “parent”: “item/handheld”, “textures”: { “layer0”: “item/iron_sword” },
“overrides”: [ {“predicate”: {“custom_model_data”:1}, “model”: “item/my_model_1”}, {“predicate”: {“custom_model_data”:2}, “model”: “item/my_model_2”} ] }
With Custom Model Data in the model file, we can not only make our diamond sword look like a another model, but we can also make the diamond sword look like 100’s of different models, yet have them all in the same resourcepack. How you add and customize your model data in the model’s file is easy, and in this video you will have learned how to do it in less than 15 minutes. We look into model overrides, predicates, data values and more. To summon them in Minecraft the most common command is (copy and try) */give @p the_item{CustomModelData:value}* Be sure to replace “the_item” with your item, and the “value” with the actual numberic value of your custom model data.
#minecraft #custommodeldata #blockbench
Subsscribe for more tutorials, behind the scenes, Minecraft Marketplace related content and more. I’m here to help you become a better Minecraft content creator! You can join the ArtsByKev discord where we’ll be able to socialize even more and continue to grow this creative community we got going: https://discord.com/invite/MFFw6b3QWr
This video has been made not only covering how to add Custom Model Data for Java Minecraft, but also showing you just how quick and simple it is to get working with a server plugin like MMOItems.
The best thing about custom model data is that you can add a crazy amount of customization to your Minecraft server. To give yourself a costum model data item (with the config I used for this video), simply type: /give [playername] [item] 1 0 {CustomModelData:[value]}
Keep track of your model data, what models you add to what data, etc. The better your documentation is, the more flexible it gets. Most minecraft commands are case-sensitive, so be careful to write out CustomModelData this way, and not lowercase.
The most common FAQ issue I hear about among my subscribers are problems related to files not showing the right texture, why they get a black and purple block, why the texture isn’t showing, that their file is broken, and so on. This is mostly super simple to solve, and has to do with SYNTAX. In other words: be sure to always spellcheck your files, one character extra, or missing, immediately causes the entire .json model to break.
In less than 30 minutes you will become a Minecraft animation pro using Blockbench. How do I animate in blockbench? By using keyframes, the animation timeline and putting thought into motion you can create awsome animations. Or learn a bit about Math animations for Minecraft: https://www.youtube.com/watch?v=otTergBo3us
Are you new to Blockbench? Tell med own in the comments and let me know what you would like to see me create. As a marketplace developer I do have a lot of projects going on, but getting inspired by this wonderful community is hands down the best thing I know when creating new video content! For me it’s all about how to evolve an entity.
Blockbench is a free to use software. If you have not already installed Blockbench on your computer to create Minecraft Bedrock Models or custom Minecraft mobs, then download it via this link: https://blockbench.net/ Meanwhile you’re at it, give the developer a solid follow on twitter, they well deserve it! https://twitter.com/JannisX11