đ Model
Introdcutionâ
Render an item model.
items:
default:topaz_pickaxe:
model:
type: minecraft:model # type is optional in this case
path: minecraft:item/custom/topaz_pickaxe
generation:
parent: "minecraft:item/handheld"
textures:
"layer0": "minecraft:item/custom/topaz_pickaxe"
tip
If you do not specify a type, it will default to using minecraft:model
.
Tintsâ
In this configuration, we create a model for custom leaves. However, the default leaves in the vanilla game do not have color, so we need to configure a tint to color them.
default:palm_leaves:
model:
type: "minecraft:model"
path: "minecraft:item/custom/palm_leaves"
generation:
parent: "minecraft:block/custom/palm_leaves"
tints:
- type: "minecraft:constant"
value: -12012264
info
Places where colors are required support the use of decimal or RGB format
value: 16711680
value:
- 255
- 0
- 0
# or
value:
- 1.0
- 0.0
- 0.0
value: 255,0,0
# or
value: 1.0,0.0,0.0
minecraft:constantâ
type: "minecraft:constant"
value: -12012264
minecraft:custom_model_dataâ
type: "minecraft:custom_model_data"
index: 0
default: -12012264
minecraft:dyeâ
type: "minecraft:dye"
default: -12012264
minecraft:fireworkâ
type: "minecraft:firework"
default: -12012264
minecraft:grassâ
type: "minecraft:grass"
temperature: 0.5
downfall: 0.5
minecraft:map_colorâ
type: "minecraft:map_color"
default: -12012264
minecraft:potionâ
type: "minecraft:potion"
default: -12012264
minecraft:teamâ
type: "minecraft:team"
default: -12012264