From 554fe8bad1137a102870edf7ac3d73d9ca77cd03 Mon Sep 17 00:00:00 2001 From: Nedelosk Date: Sat, 17 Jun 2017 13:59:00 +0200 Subject: [PATCH] Add tintindex to the door models --- .../models/block/arboriculture/door_bottom.json | 16 ++++++++++++++-- .../block/arboriculture/door_bottom_rh.json | 16 ++++++++++++++-- .../models/block/arboriculture/door_top.json | 16 ++++++++++++++-- .../models/block/arboriculture/door_top_rh.json | 16 ++++++++++++++-- 4 files changed, 56 insertions(+), 8 deletions(-) diff --git a/src/main/resources/assets/forestry/models/block/arboriculture/door_bottom.json b/src/main/resources/assets/forestry/models/block/arboriculture/door_bottom.json index 02c5431cb..59c8b78db 100644 --- a/src/main/resources/assets/forestry/models/block/arboriculture/door_bottom.json +++ b/src/main/resources/assets/forestry/models/block/arboriculture/door_bottom.json @@ -1,8 +1,20 @@ { - "parent": "block/door_bottom", + "ambientocclusion": false, "textures": { "particle": "forestry:blocks/doors/acacia_lower", "bottom": "forestry:blocks/doors/acacia_lower", "top": "forestry:blocks/doors/acacia_upper" - } + }, + "elements": [ + { "from": [ 0, 0, 0 ], + "to": [ 3, 16, 16 ], + "faces": { + "down": { "uv": [ 13, 0, 16, 16 ], "tintindex": 0, "texture": "#bottom", "cullface": "down" }, + "north": { "uv": [ 3, 0, 0, 16 ], "tintindex": 0, "texture": "#bottom", "cullface": "north" }, + "south": { "uv": [ 0, 0, 3, 16 ], "tintindex": 0, "texture": "#bottom", "cullface": "south" }, + "west": { "uv": [ 0, 0, 16, 16 ], "tintindex": 0, "texture": "#bottom", "cullface": "west" }, + "east": { "uv": [ 16, 0, 0, 16 ], "tintindex": 0, "texture": "#bottom" } + } + } + ] } diff --git a/src/main/resources/assets/forestry/models/block/arboriculture/door_bottom_rh.json b/src/main/resources/assets/forestry/models/block/arboriculture/door_bottom_rh.json index c008576d8..7c795ddec 100644 --- a/src/main/resources/assets/forestry/models/block/arboriculture/door_bottom_rh.json +++ b/src/main/resources/assets/forestry/models/block/arboriculture/door_bottom_rh.json @@ -1,8 +1,20 @@ { - "parent": "block/door_bottom_rh", + "ambientocclusion": false, "textures": { "particle": "forestry:blocks/doors/acacia_lower", "bottom": "forestry:blocks/doors/acacia_lower", "top": "forestry:blocks/doors/acacia_upper" - } + }, + "elements": [ + { "from": [ 0, 0, 0 ], + "to": [ 3, 16, 16 ], + "faces": { + "down": { "uv": [ 13, 0, 16, 16 ], "tintindex": 0, "texture": "#bottom", "cullface": "down" }, + "north": { "uv": [ 3, 0, 0, 16 ], "tintindex": 0, "texture": "#bottom", "cullface": "north" }, + "south": { "uv": [ 0, 0, 3, 16 ], "tintindex": 0, "texture": "#bottom", "cullface": "south" }, + "west": { "uv": [ 16, 0, 0, 16 ], "tintindex": 0, "texture": "#bottom", "cullface": "west" }, + "east": { "uv": [ 0, 0, 16, 16 ], "tintindex": 0, "texture": "#bottom" } + } + } + ] } diff --git a/src/main/resources/assets/forestry/models/block/arboriculture/door_top.json b/src/main/resources/assets/forestry/models/block/arboriculture/door_top.json index aad86a0d7..d3ab7f2ff 100644 --- a/src/main/resources/assets/forestry/models/block/arboriculture/door_top.json +++ b/src/main/resources/assets/forestry/models/block/arboriculture/door_top.json @@ -1,8 +1,20 @@ { - "parent": "block/door_top", + "ambientocclusion": false, "textures": { "particle": "forestry:blocks/doors/acacia_upper", "bottom": "forestry:blocks/doors/acacia_lower", "top": "forestry:blocks/doors/acacia_upper" - } + }, + "elements": [ + { "from": [ 0, 0, 0 ], + "to": [ 3, 16, 16 ], + "faces": { + "up": { "uv": [ 13, 0, 16, 16 ], "tintindex": 0, "texture": "#bottom", "cullface": "up" }, + "north": { "uv": [ 3, 0, 0, 16 ], "tintindex": 0, "texture": "#top", "cullface": "north" }, + "south": { "uv": [ 0, 0, 3, 16 ], "tintindex": 0, "texture": "#top", "cullface": "south" }, + "west": { "uv": [ 0, 0, 16, 16 ], "tintindex": 0, "texture": "#top", "cullface": "west" }, + "east": { "uv": [ 16, 0, 0, 16 ], "tintindex": 0, "texture": "#top" } + } + } + ] } diff --git a/src/main/resources/assets/forestry/models/block/arboriculture/door_top_rh.json b/src/main/resources/assets/forestry/models/block/arboriculture/door_top_rh.json index d63e39767..0a4b79a54 100644 --- a/src/main/resources/assets/forestry/models/block/arboriculture/door_top_rh.json +++ b/src/main/resources/assets/forestry/models/block/arboriculture/door_top_rh.json @@ -1,8 +1,20 @@ { - "parent": "block/door_top_rh", + "ambientocclusion": false, "textures": { "particle": "forestry:blocks/doors/acacia_upper", "bottom": "forestry:blocks/doors/acacia_lower", "top": "forestry:blocks/doors/acacia_upper" - } + }, + "elements": [ + { "from": [ 0, 0, 0 ], + "to": [ 3, 16, 16 ], + "faces": { + "up": { "uv": [ 13, 0, 16, 16 ], "tintindex": 0, "texture": "#bottom", "cullface": "up" }, + "north": { "uv": [ 3, 0, 0, 16 ], "tintindex": 0, "texture": "#top", "cullface": "north" }, + "south": { "uv": [ 0, 0, 3, 16 ], "tintindex": 0, "texture": "#top", "cullface": "south" }, + "west": { "uv": [ 16, 0, 0, 16 ], "tintindex": 0, "texture": "#top", "cullface": "west" }, + "east": { "uv": [ 0, 0, 16, 16 ], "tintindex": 0, "texture": "#top" } + } + } + ] }