Hevea / bamboo tables

This commit is contained in:
Emmanuel BENOîT 2016-07-11 09:27:39 +02:00
parent b6c259e4ac
commit 7410640d4b
25 changed files with 690 additions and 70 deletions

View file

@ -0,0 +1,144 @@
{
"multipart": [
{
"apply": { "model": "mmm:deco/table/bamboo/top" }
} ,
{
"when": { "OR": [
{ "north": "false" , "west": "false" } ,
{ "north": "true" , "west": "true", "nw": "false" }
] } ,
"apply": { "model": "mmm:deco/table/bamboo/leg" }
} ,
{
"when": { "OR": [
{ "north": "false" , "east": "false" } ,
{ "north": "true" , "east": "true", "ne": "false" }
] } ,
"apply": { "model": "mmm:deco/table/bamboo/leg", "y": 90 }
} ,
{
"when": { "OR": [
{ "south": "false" , "east": "false" } ,
{ "south": "true" , "east": "true", "se": "false" }
] } ,
"apply": { "model": "mmm:deco/table/bamboo/leg", "y": 180 }
} ,
{
"when": { "OR": [
{ "south": "false" , "west": "false" } ,
{ "south": "true" , "west": "true", "sw": "false" }
] } ,
"apply": { "model": "mmm:deco/table/bamboo/leg", "y": 270 }
} ,
{
"when": { "OR": [
{ "north": "false" } ,
{ "west": "false" } ,
{ "nw": "false" }
] } ,
"apply": { "model": "mmm:deco/table/bamboo/legtop" }
} ,
{
"when": { "OR": [
{ "north": "false" } ,
{ "east": "false" } ,
{ "ne": "false" }
] } ,
"apply": { "model": "mmm:deco/table/bamboo/legtop", "y": 90 }
} ,
{
"when": { "OR": [
{ "south": "false" } ,
{ "east": "false" } ,
{ "se": "false" }
] } ,
"apply": { "model": "mmm:deco/table/bamboo/legtop", "y": 180 }
} ,
{
"when": { "OR": [
{ "south": "false" } ,
{ "west": "false" } ,
{ "sw": "false" }
] } ,
"apply": { "model": "mmm:deco/table/bamboo/legtop", "y": 270 }
} ,
{
"when": { "north": "false" } ,
"apply": { "model": "mmm:deco/table/bamboo/support_main" }
} ,
{
"when": { "east": "false" } ,
"apply": { "model": "mmm:deco/table/bamboo/support_main" , "y": 90 }
} ,
{
"when": { "south": "false" } ,
"apply": { "model": "mmm:deco/table/bamboo/support_main" , "y": 180 }
} ,
{
"when": { "west": "false" } ,
"apply": { "model": "mmm:deco/table/bamboo/support_main" , "y": 270 }
} ,
{
"when": { "OR" : [
{ "north": "true" , "nw": false } ,
{ "north": "true" , "west": false }
] } ,
"apply": { "model": "mmm:deco/table/bamboo/support_north" }
} ,
{
"when": { "OR" : [
{ "east": "true" , "ne": false } ,
{ "east": "true" , "north": false }
] } ,
"apply": { "model": "mmm:deco/table/bamboo/support_north" , "y": 90 }
} ,
{
"when": { "OR" : [
{ "south": "true" , "se": false } ,
{ "south": "true" , "east": false }
] } ,
"apply": { "model": "mmm:deco/table/bamboo/support_north" , "y": 180 }
} ,
{
"when": { "OR" : [
{ "west": "true" , "sw": false } ,
{ "west": "true" , "south": false }
] } ,
"apply": { "model": "mmm:deco/table/bamboo/support_north" , "y": 270 }
} ,
{
"when": { "OR" : [
{ "west": "true" , "nw": false } ,
{ "west": "true" , "north": false }
] } ,
"apply": { "model": "mmm:deco/table/bamboo/support_west" }
} ,
{
"when": { "OR" : [
{ "north": "true" , "ne": false } ,
{ "north": "true" , "east": false }
] } ,
"apply": { "model": "mmm:deco/table/bamboo/support_west" , "y": 90 }
} ,
{
"when": { "OR" : [
{ "east": "true" , "se": false } ,
{ "east": "true" , "south": false }
] } ,
"apply": { "model": "mmm:deco/table/bamboo/support_west" , "y": 180 }
} ,
{
"when": { "OR" : [
{ "south": "true" , "sw": false } ,
{ "south": "true" , "west": false }
] } ,
"apply": { "model": "mmm:deco/table/bamboo/support_west" , "y": 270 }
}
]
}

View file

@ -0,0 +1,144 @@
{
"multipart": [
{
"apply": { "model": "mmm:deco/table/hevea/top" }
} ,
{
"when": { "OR": [
{ "north": "false" , "west": "false" } ,
{ "north": "true" , "west": "true", "nw": "false" }
] } ,
"apply": { "model": "mmm:deco/table/hevea/leg" }
} ,
{
"when": { "OR": [
{ "north": "false" , "east": "false" } ,
{ "north": "true" , "east": "true", "ne": "false" }
] } ,
"apply": { "model": "mmm:deco/table/hevea/leg", "y": 90 }
} ,
{
"when": { "OR": [
{ "south": "false" , "east": "false" } ,
{ "south": "true" , "east": "true", "se": "false" }
] } ,
"apply": { "model": "mmm:deco/table/hevea/leg", "y": 180 }
} ,
{
"when": { "OR": [
{ "south": "false" , "west": "false" } ,
{ "south": "true" , "west": "true", "sw": "false" }
] } ,
"apply": { "model": "mmm:deco/table/hevea/leg", "y": 270 }
} ,
{
"when": { "OR": [
{ "north": "false" } ,
{ "west": "false" } ,
{ "nw": "false" }
] } ,
"apply": { "model": "mmm:deco/table/hevea/legtop" }
} ,
{
"when": { "OR": [
{ "north": "false" } ,
{ "east": "false" } ,
{ "ne": "false" }
] } ,
"apply": { "model": "mmm:deco/table/hevea/legtop", "y": 90 }
} ,
{
"when": { "OR": [
{ "south": "false" } ,
{ "east": "false" } ,
{ "se": "false" }
] } ,
"apply": { "model": "mmm:deco/table/hevea/legtop", "y": 180 }
} ,
{
"when": { "OR": [
{ "south": "false" } ,
{ "west": "false" } ,
{ "sw": "false" }
] } ,
"apply": { "model": "mmm:deco/table/hevea/legtop", "y": 270 }
} ,
{
"when": { "north": "false" } ,
"apply": { "model": "mmm:deco/table/hevea/support_main" }
} ,
{
"when": { "east": "false" } ,
"apply": { "model": "mmm:deco/table/hevea/support_main" , "y": 90 }
} ,
{
"when": { "south": "false" } ,
"apply": { "model": "mmm:deco/table/hevea/support_main" , "y": 180 }
} ,
{
"when": { "west": "false" } ,
"apply": { "model": "mmm:deco/table/hevea/support_main" , "y": 270 }
} ,
{
"when": { "OR" : [
{ "north": "true" , "nw": false } ,
{ "north": "true" , "west": false }
] } ,
"apply": { "model": "mmm:deco/table/hevea/support_north" }
} ,
{
"when": { "OR" : [
{ "east": "true" , "ne": false } ,
{ "east": "true" , "north": false }
] } ,
"apply": { "model": "mmm:deco/table/hevea/support_north" , "y": 90 }
} ,
{
"when": { "OR" : [
{ "south": "true" , "se": false } ,
{ "south": "true" , "east": false }
] } ,
"apply": { "model": "mmm:deco/table/hevea/support_north" , "y": 180 }
} ,
{
"when": { "OR" : [
{ "west": "true" , "sw": false } ,
{ "west": "true" , "south": false }
] } ,
"apply": { "model": "mmm:deco/table/hevea/support_north" , "y": 270 }
} ,
{
"when": { "OR" : [
{ "west": "true" , "nw": false } ,
{ "west": "true" , "north": false }
] } ,
"apply": { "model": "mmm:deco/table/hevea/support_west" }
} ,
{
"when": { "OR" : [
{ "north": "true" , "ne": false } ,
{ "north": "true" , "east": false }
] } ,
"apply": { "model": "mmm:deco/table/hevea/support_west" , "y": 90 }
} ,
{
"when": { "OR" : [
{ "east": "true" , "se": false } ,
{ "east": "true" , "south": false }
] } ,
"apply": { "model": "mmm:deco/table/hevea/support_west" , "y": 180 }
} ,
{
"when": { "OR" : [
{ "south": "true" , "sw": false } ,
{ "south": "true" , "west": false }
] } ,
"apply": { "model": "mmm:deco/table/hevea/support_west" , "y": 270 }
}
]
}

View file

@ -151,6 +151,8 @@ tile.mmm.deco.table.spruce.name=Spruce Table
tile.mmm.deco.table.acacia.name=Acacia Table
tile.mmm.deco.table.jungle.name=Jungle Wood Table
tile.mmm.deco.table.dark_oak.name=Dark Oak Table
tile.mmm.deco.table.hevea.name=Hevea Table
tile.mmm.deco.table.bamboo.name=Bamboo Table
tile.mmm.deco.chair.oak.name=Oak Chair
tile.mmm.deco.chair.birch.name=Birch Chair

View file

@ -0,0 +1,19 @@
{
"textures": {
"body": "mmm:blocks/materials/planks/bamboo",
"leg": "mmm:blocks/materials/log/side/bamboo"
} ,
"elements": [
{
"from": [ 1, 0, 1 ],
"to": [ 3, 12, 3 ],
"faces": {
"down": { "texture": "#leg", "cullface": "down" },
"north": { "texture": "#leg" , "uv": [ 4 , 0 , 12 , 16 ] },
"south": { "texture": "#leg" , "uv": [ 4 , 0 , 12 , 16 ] },
"west": { "texture": "#leg" , "uv": [ 4 , 0 , 12 , 16 ] },
"east": { "texture": "#leg" , "uv": [ 4 , 0 , 12 , 16 ] }
}
}
]
}

View file

@ -0,0 +1,7 @@
{
"parent": "mmm:block/deco/table/legtop",
"textures": {
"body": "mmm:blocks/materials/planks/bamboo",
"leg": "mmm:blocks/materials/log/side/bamboo"
}
}

View file

@ -0,0 +1,7 @@
{
"parent": "mmm:block/deco/table/support_main",
"textures": {
"body": "mmm:blocks/materials/planks/bamboo",
"leg": "mmm:blocks/materials/log/side/bamboo"
}
}

View file

@ -0,0 +1,7 @@
{
"parent": "mmm:block/deco/table/support_north",
"textures": {
"body": "mmm:blocks/materials/planks/bamboo",
"leg": "mmm:blocks/materials/log/side/bamboo"
}
}

View file

@ -0,0 +1,7 @@
{
"parent": "mmm:block/deco/table/support_west",
"textures": {
"body": "mmm:blocks/materials/planks/bamboo",
"leg": "mmm:blocks/materials/log/side/bamboo"
}
}

View file

@ -0,0 +1,7 @@
{
"parent": "mmm:block/deco/table/top",
"textures": {
"body": "mmm:blocks/materials/planks/bamboo",
"leg": "mmm:blocks/materials/log/side/bamboo"
}
}

View file

@ -0,0 +1,7 @@
{
"parent": "mmm:block/deco/table/leg",
"textures": {
"body": "mmm:blocks/materials/planks/hevea",
"leg": "mmm:blocks/materials/log/side/hevea"
}
}

View file

@ -0,0 +1,7 @@
{
"parent": "mmm:block/deco/table/legtop",
"textures": {
"body": "mmm:blocks/materials/planks/hevea",
"leg": "mmm:blocks/materials/log/side/hevea"
}
}

View file

@ -0,0 +1,7 @@
{
"parent": "mmm:block/deco/table/support_main",
"textures": {
"body": "mmm:blocks/materials/planks/hevea",
"leg": "mmm:blocks/materials/log/side/hevea"
}
}

View file

@ -0,0 +1,7 @@
{
"parent": "mmm:block/deco/table/support_north",
"textures": {
"body": "mmm:blocks/materials/planks/hevea",
"leg": "mmm:blocks/materials/log/side/hevea"
}
}

View file

@ -0,0 +1,7 @@
{
"parent": "mmm:block/deco/table/support_west",
"textures": {
"body": "mmm:blocks/materials/planks/hevea",
"leg": "mmm:blocks/materials/log/side/hevea"
}
}

View file

@ -0,0 +1,7 @@
{
"parent": "mmm:block/deco/table/top",
"textures": {
"body": "mmm:blocks/materials/planks/hevea",
"leg": "mmm:blocks/materials/log/side/hevea"
}
}

View file

@ -0,0 +1,110 @@
{
"parent": "mmm:item/deco/table",
"textures": {
"body": "mmm:blocks/materials/planks/bamboo",
"legs": "mmm:blocks/materials/log/side/bamboo"
} ,
"elements": [
{
"from": [ 1, 0, 1 ],
"to": [ 3, 12, 3 ],
"faces": {
"down": { "texture": "#legs" , "cullface": "down" },
"up": { "texture": "#legs" , "uv": [ 4 , 0 , 12 , 16 ] },
"north": { "texture": "#legs" , "uv": [ 4 , 0 , 12 , 16 ] },
"south": { "texture": "#legs" , "uv": [ 4 , 0 , 12 , 16 ] },
"west": { "texture": "#legs" , "uv": [ 4 , 0 , 12 , 16 ] },
"east": { "texture": "#legs" , "uv": [ 4 , 0 , 12 , 16 ] }
}
},
{
"from": [ 13, 0, 1 ],
"to": [ 15, 12, 3 ],
"faces": {
"down": { "texture": "#legs", "cullface": "down" },
"north": { "texture": "#legs" , "uv": [ 4 , 0 , 12 , 16 ] },
"south": { "texture": "#legs" , "uv": [ 4 , 0 , 12 , 16 ] },
"west": { "texture": "#legs" , "uv": [ 4 , 0 , 12 , 16 ] },
"east": { "texture": "#legs" , "uv": [ 4 , 0 , 12 , 16 ] }
}
},
{
"from": [ 1, 0, 13 ],
"to": [ 3, 12, 15 ],
"faces": {
"down": { "texture": "#legs", "cullface": "down" },
"north": { "texture": "#legs" , "uv": [ 4 , 0 , 12 , 16 ] },
"south": { "texture": "#legs" , "uv": [ 4 , 0 , 12 , 16 ] },
"west": { "texture": "#legs" , "uv": [ 4 , 0 , 12 , 16 ] },
"east": { "texture": "#legs" , "uv": [ 4 , 0 , 12 , 16 ] }
}
},
{
"from": [ 13, 0, 13 ],
"to": [ 15, 12, 15 ],
"faces": {
"down": { "texture": "#legs", "cullface": "down" },
"north": { "texture": "#legs" , "uv": [ 4 , 0 , 12 , 16 ] },
"south": { "texture": "#legs" , "uv": [ 4 , 0 , 12 , 16 ] },
"west": { "texture": "#legs" , "uv": [ 4 , 0 , 12 , 16 ] },
"east": { "texture": "#legs" , "uv": [ 4 , 0 , 12 , 16 ] }
}
},
{
"from": [ 1, 12, 1 ],
"to": [ 3, 15, 15 ],
"faces": {
"down": { "texture": "#body" },
"north": { "texture": "#body" },
"south": { "texture": "#body" },
"west": { "texture": "#body" },
"east": { "texture": "#body" }
}
},
{
"from": [ 13, 12, 1 ],
"to": [ 15, 15, 15 ],
"faces": {
"down": { "texture": "#body" },
"north": { "texture": "#body" },
"south": { "texture": "#body" },
"west": { "texture": "#body" },
"east": { "texture": "#body" }
}
},
{
"from": [ 3, 12, 1 ],
"to": [ 13, 15, 3 ],
"faces": {
"down": { "texture": "#body" },
"north": { "texture": "#body" },
"south": { "texture": "#body" },
"west": { "texture": "#body" },
"east": { "texture": "#body" }
}
},
{
"from": [ 3, 12, 13 ],
"to": [ 13, 15, 15 ],
"faces": {
"down": { "texture": "#body" },
"north": { "texture": "#body" },
"south": { "texture": "#body" },
"west": { "texture": "#body" },
"east": { "texture": "#body" }
}
},
{
"from": [ 0, 15, 0 ],
"to": [ 16, 16, 16 ],
"faces": {
"down": { "texture": "#body" },
"up": { "texture": "#body", "cullface": "up" },
"north": { "texture": "#body", "cullface": "north" },
"south": { "texture": "#body", "cullface": "south" },
"west": { "texture": "#body", "cullface": "west" },
"east": { "texture": "#body", "cullface": "east" }
}
}
]
}

View file

@ -0,0 +1,7 @@
{
"parent": "mmm:item/deco/table",
"textures": {
"body": "mmm:blocks/materials/planks/hevea",
"legs": "mmm:blocks/materials/log/side/hevea"
}
}