Custom Model Data - Resourcepack Tutorial for Java Minecraft

Аватар автора
Игры и Магические Миры
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. 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} Here&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}...

0/0


0/0

0/0