Render geo models in items
This commit is contained in:
@@ -236,6 +236,17 @@ the same places Minecraft's do, so a transform made for Minecraft, like in Block
|
||||
here. A model gets its parent's transform for each place it doesn't set its own. Minecraft's other places, like third
|
||||
person, aren't used.
|
||||
|
||||
### Entity Models as Items
|
||||
|
||||
An item's `model` can also be an [entity model](../entities/index.md#entity-models), a `models/<name>.geo.json` made in
|
||||
Blockbench, drawn in the item's own `texture` laid out for the model's `texture_width` and `texture_height`. It stands
|
||||
in the middle of the block the way Blockbench shows it, 16 pixels to a block with its bottom at 0, and its faces are
|
||||
shaded like a block model's. Its pose is the one in the file, bones aren't animated.
|
||||
|
||||
Its display transforms are the geometry's `item_display_transforms`, which Blockbench's Display tab writes for the
|
||||
"Bedrock Block" format. Only `rotation`, `translation` and `scale` of the places above are used: `rotation_pivot`,
|
||||
`scale_pivot` and `fit_to_frame` aren't.
|
||||
|
||||
## Lighting
|
||||
|
||||
Faces flat against the block's edge get smooth lighting and ambient occlusion like a full block's. Anything inside the
|
||||
|
||||
Reference in New Issue
Block a user