forked from Haven-King/myron
-
Notifications
You must be signed in to change notification settings - Fork 2
Creating a Model
Qboi123 edited this page Nov 1, 2022
·
1 revision
Models should be centered on the origin, [0, 0, 0]
. Standard Minecraft blocks are of the unit size (1x1x1).
Despite using obj's .mtl
ending, Myron Updated materials are very different to accommodate the options and restrictions of Minecraft and Fabric's rendering API. The only things you need from the exported .mtl file are the names of each material. A basic example of the format is as follows:
# In addition to the materials used in your model itself, Myron Updated
# will check for a material named "sprite". This texture will be
# used for the model's sprite. If no "sprite" material is found,
# the first material in the file will be used instead.
newmtl stone # The name of the material used in the obj file
ambient_occlusion true # Equivalent to Minecraft's ambient occlusion flag
uvlock true # Equivalent to Minecraft's uvlock flag
texture minecraft:block/stone # The texture this material uses
# Material files will often define more than one material
newmtl crystals
ambient_occlusion true
texture minecraft:block/diamond_block
For a comprehensive list of options, see materials.