Multipart item models

This commit is contained in:
Shadowfacts 2018-12-24 11:47:50 -05:00
parent 5718fb5e16
commit 83a2a2e852
Signed by: shadowfacts
GPG Key ID: 94A5AB95422746E5
5 changed files with 41 additions and 1 deletions

View File

@ -43,6 +43,9 @@ public class MultipartModelProvider implements ModelProvider {
multipartModels.add(id); multipartModels.add(id);
adder.accept(id); adder.accept(id);
} }
// TODO: should multiparts be able to control this?
multipartModels.add(new ModelIdentifier(partId, "inventory"));
} }
} }

View File

@ -0,0 +1,34 @@
{
"display": {
"gui": {
"rotation": [ 30, 225, 0 ],
"translation": [ 0, 0, 0],
"scale":[ 0.625, 0.625, 0.625 ]
},
"ground": {
"rotation": [ 0, 0, 0 ],
"translation": [ 0, 3, 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 ]
}
}
}

View File

@ -1,4 +1,5 @@
{ {
"parent": "simplemultipart:multipart/multipart",
"textures": { "textures": {
"texture": "block/iron_block" "texture": "block/iron_block"
}, },

View File

@ -1,4 +1,5 @@
{ {
"parent": "simplemultipart:multipart/multipart",
"textures": { "textures": {
"texture": "block/gold_block" "texture": "block/gold_block"
}, },

View File

@ -5,6 +5,7 @@
"slot=north": { "model": "multipart_test:multipart/vertical" }, "slot=north": { "model": "multipart_test:multipart/vertical" },
"slot=south": { "model": "multipart_test:multipart/vertical", "y": 180 }, "slot=south": { "model": "multipart_test:multipart/vertical", "y": 180 },
"slot=east": { "model": "multipart_test:multipart/vertical", "y": 90 }, "slot=east": { "model": "multipart_test:multipart/vertical", "y": 90 },
"slot=west": { "model": "multipart_test:multipart/vertical", "y": 270 } "slot=west": { "model": "multipart_test:multipart/vertical", "y": 270 },
"inventory": { "model": "multipart_test:multipart/vertical", "y": 180 }
} }
} }