-
Notifications
You must be signed in to change notification settings - Fork 9
Creating Item Models
Hephaestus-Dev edited this page Jan 7, 2021
·
4 revisions
To make your model use an .obj file, add it to the model parameter:
{
"parent": "minecraft:block/block",
"model": "myron:block/crystal_ore_item",
"gui_light": "side"
}Item models support parents, making the transformation for block models very easy. If you do need to specify your own transformations, you can do that too:
{
"model": "myron:misc/torus",
"gui_light": "side",
"display": {
"gui": {
"rotation": [ 130, 100, 80 ],
"translation": [ -0.5, 0, -0.5],
"scale":[ 0.5, 0.5, 0.5 ]
},
"ground": {
"rotation": [ 0, 0, 0 ],
"translation": [ 0, -1, 0],
"scale":[ 0.25, 0.25, 0.25 ]
},
"fixed": {
"rotation": [ 0, 0, 0 ],
"translation": [ 0, 0, 0],
"scale":[ 0.5, 0.5, 0.5 ]
},
"thirdperson_righthand": {
"rotation": [ 75, 45, 0 ],
"translation": [ 0, 2.5, 0],
"scale": [ 0.375, 0.375, 0.375 ]
},
"firstperson_righthand": {
"rotation": [ 0, 45, 0 ],
"translation": [ 0, 0, 0 ],
"scale": [ 0.40, 0.40, 0.40 ]
},
"firstperson_lefthand": {
"rotation": [ 0, 225, 0 ],
"translation": [ 0, 0, 0 ],
"scale": [ 0.40, 0.40, 0.40 ]
}
}
}