add a roll of toilet paper

This commit is contained in:
Vanessa Ezekowitz 2014-07-19 05:39:18 -04:00
parent c406094b72
commit 3918ff56fc
6 changed files with 42 additions and 0 deletions

View File

@ -1891,6 +1891,15 @@ minetest.register_craft({
},
})
minetest.register_craft({
output = "homedecor:toilet_paper",
recipe = {
{ "", "default:paper", "default:paper" },
{ "group:wood", "group:stick", "default:paper" },
{ "", "default:paper", "default:paper" },
},
})
minetest.register_craft({
output = "homedecor:cardboard_box 2",
recipe = {

View File

@ -1,3 +1,5 @@
local S = homedecor.gettext
minetest.register_node("homedecor:tiles_1", {
description = "Bathroom/kitchen tiles (shade #1)",
tiles = {
@ -89,3 +91,34 @@ minetest.register_node("homedecor:towel_rod", {
sounds = default.node_sound_defaults(),
})
minetest.register_node("homedecor:toilet_paper", {
description = S("Toilet paper"),
tiles = {
"homedecor_toilet_paper_tb.png",
"homedecor_toilet_paper_tb.png",
"homedecor_toilet_paper_sides.png",
"homedecor_toilet_paper_sides.png",
"homedecor_toilet_paper_back.png",
"homedecor_toilet_paper_front.png"
},
drawtype = "nodebox",
paramtype = "light",
paramtype2 = "facedir",
node_box = {
type = "fixed",
fixed = {
{-0.25, 0.1875, 0.25, -0.1875, 0.25, 0.5},
{0.125, 0.1875, 0.25, 0.1875, 0.25, 0.5},
{-0.1875, 0.0625, 0.125, 0.125, 0.375, 0.4375},
{-0.25, 0.125, 0.4375, -0.1875, 0.3125, 0.5},
{0.125, 0.125, 0.4375, 0.1875, 0.3125, 0.5}
}
},
selection_box = {
type = "fixed",
fixed = { -0.25, 0.0625, 0.125, 0.1875, 0.375, 0.5}
},
groups = {snappy=2,oddly_breakable_by_hand=3,flammable=3},
sounds = default.node_sound_defaults(),
})

Binary file not shown.

After

Width:  |  Height:  |  Size: 208 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 215 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 297 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 329 B