Skip to content

Commit

Permalink
♻️ Add texture_slot attributes to model
Browse files Browse the repository at this point in the history
  • Loading branch information
misode committed Dec 14, 2024
1 parent feb0ce8 commit 1814a28
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions java/assets/model.mcdoc
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@ dispatch minecraft:resource[model] to struct Model {
ambientocclusion?: boolean,
gui_light?: ("front" | "side"),
textures?: struct ModelTextures {
[#[model_texture(definition=true)] string]: #[id="texture"] string, // TODO allow texture references
[#[texture_slot(kind="definition")] string]: #[texture_slot(kind="value")] string,
},
particle?: #[id="texture"] string, // TODO allow texture references
elements?: [ModelElement],
display?: struct ModelDisplay {
[ItemTransformType]: struct ItemTransform {
Expand All @@ -32,7 +31,7 @@ struct ModelElement {
to: [float @ -16..32] @ 3,
faces: struct ModelElementFaceMap {
[Direction]: struct ModelElementFace {
texture: #[model_texture] string,
texture: #[texture_slot(kind="reference")] string,
uv?: [float] @ 4,
cullface?: Direction,
rotation?: (0 | 90 | 180 | 270),
Expand Down

0 comments on commit 1814a28

Please sign in to comment.