anvil rendering updates, anvil handler to reduce code localization, tong items now have IDs associated to the item registration to make matching them easier

This commit is contained in:
Mohammad-Ali Minaie
2017-06-11 01:44:30 -04:00
parent 7f6d9616ba
commit 981d117f3d
17 changed files with 1009 additions and 438 deletions

View File

@@ -2,26 +2,26 @@
"__comment": "Designed by Kitsushadow with Cubik Studio - https://cubik.studio",
"parent": "block/block",
"textures": {
"particle": "forgecraft:blocks/stone",
"texture": "forgecraft:blocks/stone",
"texture1": "forgecraft:blocks/anvil_base",
"texture2": "forgecraft:blocks/anvil_base_top"
"particle": "blocks/stone",
"texture": "blocks/stone",
"texture1": "blocks/anvil_base",
"texture2": "blocks/anvil_base_top"
},
"elements": [
{
"__comment": "Cube1",
"__comment": "Box3",
"from": [ 0, 0, 0 ],
"to": [ 16, 14, 16 ],
"faces": {
"down": { "uv": [ 0, 0, 16, 16 ], "texture": "#texture" },
"north": { "uv": [ 0, 2, 16, 16 ], "texture": "#texture" },
"south": { "uv": [ 0, 2, 16, 16 ], "texture": "#texture" },
"south": { "uv": [ 0, 2, 16, 16 ], "texture": "#texture1" },
"west": { "uv": [ 0, 2, 16, 16 ], "texture": "#texture" },
"east": { "uv": [ 0, 2, 16, 16 ], "texture": "#texture" }
}
},
{
"__comment": "Cube2",
"__comment": "Box41",
"from": [ 0, 14, 0 ],
"to": [ 16, 16, 16 ],
"faces": {

View File

@@ -0,0 +1,60 @@
{
"__comment": "Designed by Kitsushadow with Cubik Studio - https://cubik.studio",
"parent": "block/block",
"textures": {
"particle": "forgecraft:blocks/stone",
"texture": "forgecraft:blocks/stone",
"texture1": "forgecraft:blocks/anvil_base",
"texture2": "forgecraft:blocks/anvil_base_top"
},
"elements": [
{
"__comment": "Cube1",
"from": [ 0, 0, 0 ],
"to": [ 16, 14, 16 ],
"faces": {
"down": { "uv": [ 0, 0, 16, 16 ], "texture": "#texture" },
"north": { "uv": [ 0, 2, 16, 16 ], "texture": "#texture" },
"south": { "uv": [ 0, 2, 16, 16 ], "texture": "#texture" },
"west": { "uv": [ 0, 2, 16, 16 ], "texture": "#texture" },
"east": { "uv": [ 0, 2, 16, 16 ], "texture": "#texture" }
}
},
{
"__comment": "Cube2",
"from": [ 0, 14, 0 ],
"to": [ 16, 16, 16 ],
"faces": {
"up": { "uv": [ 0, 0, 16, 16 ], "texture": "#texture2" },
"north": { "uv": [ 0, 0, 16, 2 ], "texture": "#texture1" },
"south": { "uv": [ 0, 0, 16, 2 ], "texture": "#texture1" },
"west": { "uv": [ 0, 0, 16, 2 ], "texture": "#texture1" },
"east": { "uv": [ 0, 0, 16, 2 ], "texture": "#texture1" }
}
}
],
"display": {
"thirdperson_righthand": {
"rotation": [ 75, 45, 0 ],
"translation": [ 0, 2.5, 0 ],
"scale": [ 0.375, 0.375, 0.375 ]
},
"firstperson_righthand": {
"rotation": [ 0, 45, 0 ],
"scale": [ 0.4, 0.4, 0.4 ]
},
"gui": {
"rotation": [ 30, 225, 0 ],
"scale": [ 0.625, 0.625, 0.625 ]
},
"ground": {
"translation": [ 0, 3, 0 ],
"scale": [ 0.25, 0.25, 0.25 ]
},
"fixed": {
"scale": [ 0.5, 0.5, 0.5 ]
}
},
"overrides": [
]
}

View File

@@ -0,0 +1,421 @@
{
"__comment": "Designed by Kitsushadow with Cubik Studio - https://cubik.studio",
"parent": "block/block",
"textures": {
"particle": "forgecraft:blocks/stone",
"texture": "forgecraft:blocks/stone",
"texture1": "forgecraft:blocks/anvil_base",
"texture2": "forgecraft:blocks/anvil_base_top"
},
"elements": [
{
"__comment": "Box3",
"from": [ 0, 0, 0 ],
"to": [ 16, 14, 16 ],
"faces": {
"down": { "uv": [ 0, 0, 16, 16 ], "texture": "#texture" },
"up": { "uv": [ 0, 0, 16, 16 ], "texture": "#texture1" },
"north": { "uv": [ 0, 2, 16, 16 ], "texture": "#texture" },
"south": { "uv": [ 0, 2, 16, 16 ], "texture": "#texture1" },
"west": { "uv": [ 0, 2, 16, 16 ], "texture": "#texture" },
"east": { "uv": [ 0, 2, 16, 16 ], "texture": "#texture" }
}
},
{
"__comment": "Box4",
"from": [ 0, 14, 0 ],
"to": [ 16, 16, 1 ],
"faces": {
"up": { "uv": [ 0, 0, 16, 1 ], "texture": "#texture2" },
"north": { "uv": [ 0, 0, 16, 2 ], "texture": "#texture1" },
"south": { "uv": [ 0, 0, 16, 2 ], "texture": "#texture1" },
"west": { "uv": [ 0, 0, 1, 2 ], "texture": "#texture1" },
"east": { "uv": [ 15, 0, 16, 2 ], "texture": "#texture1" }
}
},
{
"__comment": "Box4",
"from": [ 0, 14, 3 ],
"to": [ 16, 16, 4 ],
"faces": {
"up": { "uv": [ 0, 0, 16, 1 ], "texture": "#texture2" },
"north": { "uv": [ 0, 0, 16, 2 ], "texture": "#texture1" },
"south": { "uv": [ 0, 0, 16, 2 ], "texture": "#texture1" },
"west": { "uv": [ 0, 0, 1, 2 ], "texture": "#texture1" },
"east": { "uv": [ 15, 0, 16, 2 ], "texture": "#texture1" }
}
},
{
"__comment": "Box4",
"from": [ 0, 14, 6 ],
"to": [ 16, 16, 7 ],
"faces": {
"up": { "uv": [ 0, 0, 16, 1 ], "texture": "#texture2" },
"north": { "uv": [ 0, 0, 16, 2 ], "texture": "#texture1" },
"south": { "uv": [ 0, 0, 16, 2 ], "texture": "#texture1" },
"west": { "uv": [ 0, 0, 1, 2 ], "texture": "#texture1" },
"east": { "uv": [ 15, 0, 16, 2 ], "texture": "#texture1" }
}
},
{
"__comment": "Box4",
"from": [ 0, 14, 9 ],
"to": [ 16, 16, 10 ],
"faces": {
"up": { "uv": [ 0, 0, 16, 1 ], "texture": "#texture2" },
"north": { "uv": [ 0, 0, 16, 2 ], "texture": "#texture1" },
"south": { "uv": [ 0, 0, 16, 2 ], "texture": "#texture1" },
"west": { "uv": [ 0, 0, 1, 2 ], "texture": "#texture1" },
"east": { "uv": [ 15, 0, 16, 2 ], "texture": "#texture1" }
}
},
{
"__comment": "Box4",
"from": [ 0, 14, 12 ],
"to": [ 16, 16, 13 ],
"faces": {
"up": { "uv": [ 0, 0, 16, 1 ], "texture": "#texture2" },
"north": { "uv": [ 0, 0, 16, 2 ], "texture": "#texture1" },
"south": { "uv": [ 0, 0, 16, 2 ], "texture": "#texture1" },
"west": { "uv": [ 0, 0, 1, 2 ], "texture": "#texture1" },
"east": { "uv": [ 15, 0, 16, 2 ], "texture": "#texture1" }
}
},
{
"__comment": "Box4",
"from": [ 0, 14, 15 ],
"to": [ 16, 16, 16 ],
"faces": {
"up": { "uv": [ 0, 0, 16, 1 ], "texture": "#texture2" },
"north": { "uv": [ 0, 0, 16, 2 ], "texture": "#texture1" },
"south": { "uv": [ 0, 0, 16, 2 ], "texture": "#texture1" },
"west": { "uv": [ 0, 0, 1, 2 ], "texture": "#texture1" },
"east": { "uv": [ 15, 0, 16, 2 ], "texture": "#texture1" }
}
},
{
"__comment": "Box11",
"from": [ 0, 14, 1 ],
"to": [ 1, 16, 3 ],
"faces": {
"up": { "uv": [ 0, 1, 1, 3 ], "texture": "#texture2" },
"west": { "uv": [ 1, 0, 3, 2 ], "texture": "#texture1" },
"east": { "uv": [ 13, 0, 15, 2 ], "texture": "#texture1" }
}
},
{
"__comment": "Box11",
"from": [ 0, 14, 4 ],
"to": [ 1, 16, 6 ],
"faces": {
"up": { "uv": [ 0, 1, 1, 3 ], "texture": "#texture2" },
"west": { "uv": [ 1, 0, 3, 2 ], "texture": "#texture1" },
"east": { "uv": [ 13, 0, 15, 2 ], "texture": "#texture1" }
}
},
{
"__comment": "Box11",
"from": [ 0, 14, 7 ],
"to": [ 1, 16, 9 ],
"faces": {
"up": { "uv": [ 0, 1, 1, 3 ], "texture": "#texture2" },
"west": { "uv": [ 1, 0, 3, 2 ], "texture": "#texture1" },
"east": { "uv": [ 13, 0, 15, 2 ], "texture": "#texture1" }
}
},
{
"__comment": "Box11",
"from": [ 0, 14, 10 ],
"to": [ 1, 16, 12 ],
"faces": {
"up": { "uv": [ 0, 1, 1, 3 ], "texture": "#texture2" },
"west": { "uv": [ 1, 0, 3, 2 ], "texture": "#texture1" },
"east": { "uv": [ 13, 0, 15, 2 ], "texture": "#texture1" }
}
},
{
"__comment": "Box11",
"from": [ 0, 14, 13 ],
"to": [ 1, 16, 15 ],
"faces": {
"up": { "uv": [ 0, 1, 1, 3 ], "texture": "#texture2" },
"west": { "uv": [ 1, 0, 3, 2 ], "texture": "#texture1" },
"east": { "uv": [ 13, 0, 15, 2 ], "texture": "#texture1" }
}
},
{
"__comment": "Box11",
"from": [ 3, 14, 1 ],
"to": [ 4, 16, 3 ],
"faces": {
"up": { "uv": [ 0, 1, 1, 3 ], "texture": "#texture2" },
"west": { "uv": [ 1, 0, 3, 2 ], "texture": "#texture1" },
"east": { "uv": [ 13, 0, 15, 2 ], "texture": "#texture1" }
}
},
{
"__comment": "Box11",
"from": [ 3, 14, 4 ],
"to": [ 4, 16, 6 ],
"faces": {
"up": { "uv": [ 0, 1, 1, 3 ], "texture": "#texture2" },
"west": { "uv": [ 1, 0, 3, 2 ], "texture": "#texture1" },
"east": { "uv": [ 13, 0, 15, 2 ], "texture": "#texture1" }
}
},
{
"__comment": "Box11",
"from": [ 3, 14, 7 ],
"to": [ 4, 16, 9 ],
"faces": {
"up": { "uv": [ 0, 1, 1, 3 ], "texture": "#texture2" },
"west": { "uv": [ 1, 0, 3, 2 ], "texture": "#texture1" },
"east": { "uv": [ 13, 0, 15, 2 ], "texture": "#texture1" }
}
},
{
"__comment": "Box11",
"from": [ 3, 14, 10 ],
"to": [ 4, 16, 12 ],
"faces": {
"up": { "uv": [ 0, 1, 1, 3 ], "texture": "#texture2" },
"west": { "uv": [ 1, 0, 3, 2 ], "texture": "#texture1" },
"east": { "uv": [ 13, 0, 15, 2 ], "texture": "#texture1" }
}
},
{
"__comment": "Box11",
"from": [ 3, 14, 13 ],
"to": [ 4, 16, 15 ],
"faces": {
"up": { "uv": [ 0, 1, 1, 3 ], "texture": "#texture2" },
"west": { "uv": [ 1, 0, 3, 2 ], "texture": "#texture1" },
"east": { "uv": [ 13, 0, 15, 2 ], "texture": "#texture1" }
}
},
{
"__comment": "Box11",
"from": [ 6, 14, 1 ],
"to": [ 7, 16, 3 ],
"faces": {
"up": { "uv": [ 0, 1, 1, 3 ], "texture": "#texture2" },
"west": { "uv": [ 1, 0, 3, 2 ], "texture": "#texture1" },
"east": { "uv": [ 13, 0, 15, 2 ], "texture": "#texture1" }
}
},
{
"__comment": "Box11",
"from": [ 6, 14, 4 ],
"to": [ 7, 16, 6 ],
"faces": {
"up": { "uv": [ 0, 1, 1, 3 ], "texture": "#texture2" },
"west": { "uv": [ 1, 0, 3, 2 ], "texture": "#texture1" },
"east": { "uv": [ 13, 0, 15, 2 ], "texture": "#texture1" }
}
},
{
"__comment": "Box11",
"from": [ 6, 14, 7 ],
"to": [ 7, 16, 9 ],
"faces": {
"up": { "uv": [ 0, 1, 1, 3 ], "texture": "#texture2" },
"west": { "uv": [ 1, 0, 3, 2 ], "texture": "#texture1" },
"east": { "uv": [ 13, 0, 15, 2 ], "texture": "#texture1" }
}
},
{
"__comment": "Box11",
"from": [ 6, 14, 10 ],
"to": [ 7, 16, 12 ],
"faces": {
"up": { "uv": [ 0, 1, 1, 3 ], "texture": "#texture2" },
"west": { "uv": [ 1, 0, 3, 2 ], "texture": "#texture1" },
"east": { "uv": [ 13, 0, 15, 2 ], "texture": "#texture1" }
}
},
{
"__comment": "Box11",
"from": [ 6, 14, 13 ],
"to": [ 7, 16, 15 ],
"faces": {
"up": { "uv": [ 0, 1, 1, 3 ], "texture": "#texture2" },
"west": { "uv": [ 1, 0, 3, 2 ], "texture": "#texture1" },
"east": { "uv": [ 13, 0, 15, 2 ], "texture": "#texture1" }
}
},
{
"__comment": "Box11",
"from": [ 9, 14, 1 ],
"to": [ 10, 16, 3 ],
"faces": {
"up": { "uv": [ 0, 1, 1, 3 ], "texture": "#texture2" },
"west": { "uv": [ 1, 0, 3, 2 ], "texture": "#texture1" },
"east": { "uv": [ 13, 0, 15, 2 ], "texture": "#texture1" }
}
},
{
"__comment": "Box11",
"from": [ 9, 14, 4 ],
"to": [ 10, 16, 6 ],
"faces": {
"up": { "uv": [ 0, 1, 1, 3 ], "texture": "#texture2" },
"west": { "uv": [ 1, 0, 3, 2 ], "texture": "#texture1" },
"east": { "uv": [ 13, 0, 15, 2 ], "texture": "#texture1" }
}
},
{
"__comment": "Box11",
"from": [ 9, 14, 7 ],
"to": [ 10, 16, 9 ],
"faces": {
"up": { "uv": [ 0, 1, 1, 3 ], "texture": "#texture2" },
"west": { "uv": [ 1, 0, 3, 2 ], "texture": "#texture1" },
"east": { "uv": [ 13, 0, 15, 2 ], "texture": "#texture1" }
}
},
{
"__comment": "Box11",
"from": [ 9, 14, 10 ],
"to": [ 10, 16, 12 ],
"faces": {
"up": { "uv": [ 0, 1, 1, 3 ], "texture": "#texture2" },
"west": { "uv": [ 1, 0, 3, 2 ], "texture": "#texture1" },
"east": { "uv": [ 13, 0, 15, 2 ], "texture": "#texture1" }
}
},
{
"__comment": "Box11",
"from": [ 9, 14, 13 ],
"to": [ 10, 16, 15 ],
"faces": {
"up": { "uv": [ 0, 1, 1, 3 ], "texture": "#texture2" },
"west": { "uv": [ 1, 0, 3, 2 ], "texture": "#texture1" },
"east": { "uv": [ 13, 0, 15, 2 ], "texture": "#texture1" }
}
},
{
"__comment": "Box11",
"from": [ 12, 14, 1 ],
"to": [ 13, 16, 3 ],
"faces": {
"up": { "uv": [ 0, 1, 1, 3 ], "texture": "#texture2" },
"west": { "uv": [ 1, 0, 3, 2 ], "texture": "#texture1" },
"east": { "uv": [ 13, 0, 15, 2 ], "texture": "#texture1" }
}
},
{
"__comment": "Box11",
"from": [ 12, 14, 4 ],
"to": [ 13, 16, 6 ],
"faces": {
"up": { "uv": [ 0, 1, 1, 3 ], "texture": "#texture2" },
"west": { "uv": [ 1, 0, 3, 2 ], "texture": "#texture1" },
"east": { "uv": [ 13, 0, 15, 2 ], "texture": "#texture1" }
}
},
{
"__comment": "Box11",
"from": [ 12, 14, 7 ],
"to": [ 13, 16, 9 ],
"faces": {
"up": { "uv": [ 0, 1, 1, 3 ], "texture": "#texture2" },
"west": { "uv": [ 1, 0, 3, 2 ], "texture": "#texture1" },
"east": { "uv": [ 13, 0, 15, 2 ], "texture": "#texture1" }
}
},
{
"__comment": "Box11",
"from": [ 12, 14, 10 ],
"to": [ 13, 16, 12 ],
"faces": {
"up": { "uv": [ 0, 1, 1, 3 ], "texture": "#texture2" },
"west": { "uv": [ 1, 0, 3, 2 ], "texture": "#texture1" },
"east": { "uv": [ 13, 0, 15, 2 ], "texture": "#texture1" }
}
},
{
"__comment": "Box11",
"from": [ 12, 14, 13 ],
"to": [ 13, 16, 15 ],
"faces": {
"up": { "uv": [ 0, 1, 1, 3 ], "texture": "#texture2" },
"west": { "uv": [ 1, 0, 3, 2 ], "texture": "#texture1" },
"east": { "uv": [ 13, 0, 15, 2 ], "texture": "#texture1" }
}
},
{
"__comment": "Box11",
"from": [ 15, 14, 1 ],
"to": [ 16, 16, 3 ],
"faces": {
"up": { "uv": [ 0, 1, 1, 3 ], "texture": "#texture2" },
"west": { "uv": [ 1, 0, 3, 2 ], "texture": "#texture1" },
"east": { "uv": [ 13, 0, 15, 2 ], "texture": "#texture1" }
}
},
{
"__comment": "Box11",
"from": [ 15, 14, 4 ],
"to": [ 16, 16, 6 ],
"faces": {
"up": { "uv": [ 0, 1, 1, 3 ], "texture": "#texture2" },
"west": { "uv": [ 1, 0, 3, 2 ], "texture": "#texture1" },
"east": { "uv": [ 13, 0, 15, 2 ], "texture": "#texture1" }
}
},
{
"__comment": "Box11",
"from": [ 15, 14, 7 ],
"to": [ 16, 16, 9 ],
"faces": {
"up": { "uv": [ 0, 1, 1, 3 ], "texture": "#texture2" },
"west": { "uv": [ 1, 0, 3, 2 ], "texture": "#texture1" },
"east": { "uv": [ 13, 0, 15, 2 ], "texture": "#texture1" }
}
},
{
"__comment": "Box11",
"from": [ 15, 14, 10 ],
"to": [ 16, 16, 12 ],
"faces": {
"up": { "uv": [ 0, 1, 1, 3 ], "texture": "#texture2" },
"west": { "uv": [ 1, 0, 3, 2 ], "texture": "#texture1" },
"east": { "uv": [ 13, 0, 15, 2 ], "texture": "#texture1" }
}
},
{
"__comment": "Box11",
"from": [ 15, 14, 13 ],
"to": [ 16, 16, 15 ],
"faces": {
"up": { "uv": [ 0, 1, 1, 3 ], "texture": "#texture2" },
"west": { "uv": [ 1, 0, 3, 2 ], "texture": "#texture1" },
"east": { "uv": [ 13, 0, 15, 2 ], "texture": "#texture1" }
}
}
],
"display": {
"thirdperson_righthand": {
"rotation": [ 75, 45, 0 ],
"translation": [ 0, 2.5, 0 ],
"scale": [ 0.375, 0.375, 0.375 ]
},
"firstperson_righthand": {
"rotation": [ 0, 45, 0 ],
"scale": [ 0.4, 0.4, 0.4 ]
},
"gui": {
"rotation": [ 30, 225, 0 ],
"scale": [ 0.625, 0.625, 0.625 ]
},
"ground": {
"translation": [ 0, 3, 0 ],
"scale": [ 0.25, 0.25, 0.25 ]
},
"fixed": {
"scale": [ 0.5, 0.5, 0.5 ]
}
},
"overrides": [
]
}