Add japanese walls and tatami mat

(they're supposed to be doors, but they don't open/close yet)
This commit is contained in:
jp 2014-08-04 11:18:02 -04:00 committed by Vanessa Ezekowitz
parent e47b86f789
commit 1a9a9939ee
7 changed files with 140 additions and 0 deletions

View File

@ -2250,3 +2250,51 @@ minetest.register_craft( {
{"group:wood", "building_blocks:terrycloth_towel", "group:wood"} {"group:wood", "building_blocks:terrycloth_towel", "group:wood"}
}, },
}) })
-- japanese walls and mat
minetest.register_craft( {
output = "homedecor:japanese_wall_top",
recipe = {
{"group:stick", "default:paper"},
{"default:paper", "group:stick"},
{"group:stick", "default:paper"}
},
})
minetest.register_craft( {
output = "homedecor:japanese_wall_top",
recipe = {
{"default:paper", "group:stick"},
{"group:stick", "default:paper"},
{"default:paper", "group:stick"}
},
})
minetest.register_craft( {
output = "homedecor:japanese_wall_middle",
recipe = {
{"homedecor:japanese_wall_top"}
},
})
minetest.register_craft( {
output = "homedecor:japanese_wall_bottom",
recipe = {
{"homedecor:japanese_wall_middle"}
},
})
minetest.register_craft( {
output = "homedecor:japanese_wall_top",
recipe = {
{"homedecor:japanese_wall_bottom"}
},
})
minetest.register_craft( {
output = "homedecor:tatami_mat",
recipe = {
{"farming:wheat", "farming:wheat", "farming:wheat"}
},
})

View File

@ -565,3 +565,95 @@ function homedecor.flip_gate(pos, node, player, gate, oc)
end end
end end
-- Japanese "paper" door/wall
minetest.register_node("homedecor:japanese_wall_top", {
tiles = {
"homedecor_japanese_wall_edges.png",
"homedecor_japanese_wall_edges.png",
"homedecor_japanese_wall_edges.png",
"homedecor_japanese_wall_edges.png",
"homedecor_japanese_wall_top.png",
"homedecor_japanese_wall_top.png"
},
description = "Japanese wall (top)",
drawtype = "nodebox",
paramtype = "light",
paramtype2 = "facedir",
use_texture_alpha = true,
groups = {snappy=3},
node_box = {
type = "fixed",
fixed = {
{-0.5, -0.5, 0, 0.5, 0.5, 0.0625}, -- NodeBox1
}
}
})
minetest.register_node("homedecor:japanese_wall_middle", {
tiles = {
"homedecor_japanese_wall_edges.png",
"homedecor_japanese_wall_edges.png",
"homedecor_japanese_wall_edges.png",
"homedecor_japanese_wall_edges.png",
"homedecor_japanese_wall_middle.png",
"homedecor_japanese_wall_middle.png"
},
description = "Japanese wall",
drawtype = "nodebox",
paramtype = "light",
paramtype2 = "facedir",
use_texture_alpha = true,
groups = {snappy=3},
node_box = {
type = "fixed",
fixed = {
{-0.5, -0.5, 0, 0.5, 0.5, 0.0625}, -- NodeBox1
}
}
})
minetest.register_node("homedecor:japanese_wall_bottom", {
tiles = {
"homedecor_japanese_wall_edges.png",
"homedecor_japanese_wall_edges.png",
"homedecor_japanese_wall_edges.png",
"homedecor_japanese_wall_edges.png",
"homedecor_japanese_wall_bottom.png",
"homedecor_japanese_wall_bottom.png"
},
description = "Japanese wall (bottom)",
drawtype = "nodebox",
paramtype = "light",
paramtype2 = "facedir",
use_texture_alpha = true,
groups = {snappy=3},
node_box = {
type = "fixed",
fixed = {
{-0.5, -0.5, 0, 0.5, 0.5, 0.0625}, -- NodeBox1
}
}
})
minetest.register_node("homedecor:tatami_mat", {
tiles = {
"homedecor_tatami.png",
"homedecor_tatami.png",
"homedecor_tatami.png",
"homedecor_tatami.png",
"homedecor_tatami.png",
"homedecor_tatami.png"
},
description = "Japanese tatami",
drawtype = "nodebox",
paramtype = "light",
groups = {snappy=3},
node_box = {
type = "fixed",
fixed = {
{-0.5, -0.5, -0.5, 0.5, -0.4375, 0.5},
}
}
})

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 515 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 KiB