Multipart item models
This commit is contained in:
parent
5718fb5e16
commit
83a2a2e852
|
@ -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"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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 ]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -1,4 +1,5 @@
|
||||||
{
|
{
|
||||||
|
"parent": "simplemultipart:multipart/multipart",
|
||||||
"textures": {
|
"textures": {
|
||||||
"texture": "block/iron_block"
|
"texture": "block/iron_block"
|
||||||
},
|
},
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
{
|
{
|
||||||
|
"parent": "simplemultipart:multipart/multipart",
|
||||||
"textures": {
|
"textures": {
|
||||||
"texture": "block/gold_block"
|
"texture": "block/gold_block"
|
||||||
},
|
},
|
||||||
|
|
|
@ -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 }
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue