Skip to content

Instantly share code, notes, and snippets.

@AjaxGb
Created July 10, 2017 04:33
Show Gist options
  • Save AjaxGb/54b1010214759ac6539402b6fb0b9079 to your computer and use it in GitHub Desktop.
Save AjaxGb/54b1010214759ac6539402b6fb0b9079 to your computer and use it in GitHub Desktop.
Reverse engineered Minecraft's shield model (w/o pattern support)
{
"textures": {
"layer0": "entity/shield_base_nopattern"
},
"elements": [
{
"from": [-6, -11, 1],
"to": [6, 11, 2],
"faces": {
"up" : {"texture": "#layer0", "uv": [0.25, 0.00, 3.25, 0.25]},
"down" : {"texture": "#layer0", "uv": [3.25, 0.00, 6.25, 0.25]},
"north": {"texture": "#layer0", "uv": [3.50, 0.25, 6.50, 5.75]},
"south": {"texture": "#layer0", "uv": [0.25, 0.25, 3.25, 5.75]},
"east" : {"texture": "#layer0", "uv": [3.25, 0.25, 3.50, 5.75]},
"west" : {"texture": "#layer0", "uv": [0.00, 0.25, 0.25, 5.75]}
}
},
{
"from": [-1, -3, -5],
"to": [1, 3, 1],
"faces": {
"up" : {"texture": "#layer0", "uv": [ 8.0, 0.0, 8.5, 1.5]},
"down" : {"texture": "#layer0", "uv": [ 8.5, 1.5, 9.0, 0.0]},
"north": {"texture": "#layer0", "uv": [10.0, 1.5, 10.5, 3.0]},
"south": {"texture": "#layer0", "uv": [ 8.0, 1.5, 8.5, 3.0]},
"east" : {"texture": "#layer0", "uv": [ 8.5, 1.5, 10.0, 3.0]},
"west" : {"texture": "#layer0", "uv": [ 6.5, 1.5, 8.0, 3.0]}
}
}
],
"display": {
"thirdperson_righthand": {
"rotation": [ 0, 90, 0 ],
"translation": [ 10.51, 6, -4 ],
"scale": [ 1, 1, 1 ]
},
"thirdperson_lefthand": {
"rotation": [ 0, 90, 0 ],
"translation": [ 10.51, 6, 12 ],
"scale": [ 1, 1, 1 ]
},
"firstperson_righthand": {
"rotation": [ 0, 180, 5 ],
"translation": [ -10, 2, -10 ],
"scale": [ 1.25, 1.25, 1.25 ]
},
"firstperson_lefthand": {
"rotation": [ 0, 180, 5 ],
"translation": [ 10, 0, -10 ],
"scale": [ 1.25, 1.25, 1.25 ]
},
"gui": {
"rotation": [ 15, -25, -5 ],
"translation": [ 2, 3, 0 ],
"scale": [ 0.65, 0.65, 0.65 ]
},
"fixed": {
"rotation": [ 0, 180, 0 ],
"translation": [ -2, 4, -5],
"scale":[ 0.5, 0.5, 0.5]
},
"ground": {
"rotation": [ 0, 0, 0 ],
"translation": [ 4, 4, 2],
"scale":[ 0.25, 0.25, 0.25]
}
},
"overrides": [
{
"predicate": {
"blocking": 1
},
"model": "item/shield_blocking"
}
]
}
@AjaxGb
Copy link
Author

AjaxGb commented Oct 16, 2021

Java, although given that it's four years old I have no idea if it's still correct.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment