-
Notifications
You must be signed in to change notification settings - Fork 9
Creating Block Models
Hephaestus-Dev edited this page Jan 7, 2021
·
5 revisions
Once you have your block model, put the exported .obj
and material files in your models/block
folder. Now all that's left is for it to be added to your BlockState file:
{
"multipart": [
{
"apply": { "model": "minecraft:block/stone", "uvlock": true}
},
{
"apply": [
{ "model": "myron:block/crystal_ore" },
{ "model": "myron:block/crystal_ore", "y": 90 },
{ "model": "myron:block/crystal_ore", "y": 180 },
{ "model": "myron:block/crystal_ore.obj", "y": 270 },
{ "model": "myron:block/crystal_ore.obj", "x": 90 },
{ "model": "myron:block/crystal_ore.obj", "x": 270 }
]
}
]
}
Myron supports normal models, multipart models, and weighted variant models. Note that your model will have its UV's locked if either the uvlock
option supplied in your block state file or the uvlock
option in your material file is true. You can include or omit the .obj
extension here, either will work.
Currently, multipart and variant models may not obey materials properly. There is a fix for this in the JMX library. There are plans to merge that fix into Fabric API itself.