add paper towel roll, improve toilet paper model and textures
@ -2696,3 +2696,10 @@ minetest.register_craft( {
|
|||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
output = "homedecor:paper_towel",
|
||||||
|
recipe = {
|
||||||
|
{ "homedecor:toilet_paper", "homedecor:toilet_paper" }
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
|
@ -126,12 +126,12 @@ minetest.register_node('homedecor:medicine_cabinet', {
|
|||||||
minetest.register_node("homedecor:toilet_paper", {
|
minetest.register_node("homedecor:toilet_paper", {
|
||||||
description = S("Toilet paper"),
|
description = S("Toilet paper"),
|
||||||
tiles = {
|
tiles = {
|
||||||
"homedecor_toilet_paper_tb.png",
|
|
||||||
"homedecor_toilet_paper_tb.png",
|
|
||||||
"homedecor_toilet_paper_sides.png",
|
"homedecor_toilet_paper_sides.png",
|
||||||
"homedecor_toilet_paper_sides.png",
|
"homedecor_toilet_paper_sides.png",
|
||||||
"homedecor_toilet_paper_back.png",
|
"homedecor_toilet_paper_ends.png",
|
||||||
"homedecor_toilet_paper_front.png"
|
"homedecor_toilet_paper_ends.png",
|
||||||
|
"homedecor_toilet_paper_sides.png",
|
||||||
|
"homedecor_toilet_paper_sides.png"
|
||||||
},
|
},
|
||||||
inventory_image = "homedecor_toilet_paper_inv.png",
|
inventory_image = "homedecor_toilet_paper_inv.png",
|
||||||
drawtype = "nodebox",
|
drawtype = "nodebox",
|
||||||
@ -140,17 +140,14 @@ minetest.register_node("homedecor:toilet_paper", {
|
|||||||
node_box = {
|
node_box = {
|
||||||
type = "fixed",
|
type = "fixed",
|
||||||
fixed = {
|
fixed = {
|
||||||
{-0.25, 0.1875, 0.25, -0.1875, 0.25, 0.5},
|
{-0.25, 0.1875, 0.4375, -0.1875, 0.375, 0.5}, -- NodeBox1
|
||||||
{0.125, 0.1875, 0.25, 0.1875, 0.25, 0.5},
|
{0.125, 0.1875, 0.4375, 0.1875, 0.375, 0.5}, -- NodeBox2
|
||||||
{-0.1875, 0.0625, 0.125, 0.125, 0.375, 0.4375},
|
{-0.25, 0.25, 0.1875, -0.1875, 0.3125, 0.5}, -- NodeBox3
|
||||||
{-0.25, 0.125, 0.4375, -0.1875, 0.3125, 0.5},
|
{0.125, 0.25, 0.1875, 0.1875, 0.3125, 0.5}, -- NodeBox4
|
||||||
{0.125, 0.125, 0.4375, 0.1875, 0.3125, 0.5}
|
{-0.1875, 0.125, 0.125, 0.125, 0.4375, 0.3125}, -- NodeBox5
|
||||||
|
{-0.1875, 0.1875, 0.0625, 0.125, 0.375, 0.375}, -- NodeBox6
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
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},
|
groups = {snappy=2,oddly_breakable_by_hand=3,flammable=3},
|
||||||
sounds = default.node_sound_defaults(),
|
sounds = default.node_sound_defaults(),
|
||||||
})
|
})
|
||||||
|
@ -1491,3 +1491,31 @@ minetest.register_node("homedecor:copper_pans", {
|
|||||||
on_place = minetest.rotate_node
|
on_place = minetest.rotate_node
|
||||||
})
|
})
|
||||||
|
|
||||||
|
minetest.register_node("homedecor:paper_towel", {
|
||||||
|
tiles = {
|
||||||
|
"homedecor_paper_towel_sides.png",
|
||||||
|
"homedecor_paper_towel_sides.png",
|
||||||
|
"homedecor_paper_towel_ends.png",
|
||||||
|
"homedecor_paper_towel_ends.png",
|
||||||
|
"homedecor_paper_towel_sides.png",
|
||||||
|
"homedecor_paper_towel_sides.png"
|
||||||
|
},
|
||||||
|
inventory_image = "homedecor_paper_towel_inv.png",
|
||||||
|
description = "Paper towels",
|
||||||
|
drawtype = "nodebox",
|
||||||
|
paramtype = "light",
|
||||||
|
paramtype2 = "facedir",
|
||||||
|
node_box = {
|
||||||
|
type = "fixed",
|
||||||
|
fixed = {
|
||||||
|
{-0.4375, 0.1875, 0.4375, -0.375, 0.375, 0.5}, -- NodeBox1
|
||||||
|
{0.375, 0.1875, 0.4375, 0.4375, 0.375, 0.5}, -- NodeBox2
|
||||||
|
{-0.4375, 0.25, 0.1875, -0.375, 0.3125, 0.5}, -- NodeBox3
|
||||||
|
{0.375, 0.25, 0.1875, 0.4375, 0.3125, 0.5}, -- NodeBox4
|
||||||
|
{-0.375, 0.125, 0.125, 0.375, 0.4375, 0.3125}, -- NodeBox5
|
||||||
|
{-0.375, 0.1875, 0.0625, 0.375, 0.375, 0.375}, -- NodeBox6
|
||||||
|
}
|
||||||
|
},
|
||||||
|
groups = { snappy=3 }
|
||||||
|
})
|
||||||
|
|
||||||
|
BIN
homedecor/textures/homedecor_paper_towel_ends.png
Normal file
After Width: | Height: | Size: 706 B |
BIN
homedecor/textures/homedecor_paper_towel_inv.png
Normal file
After Width: | Height: | Size: 4.2 KiB |
BIN
homedecor/textures/homedecor_paper_towel_sides.png
Normal file
After Width: | Height: | Size: 1.8 KiB |
Before Width: | Height: | Size: 188 B |
BIN
homedecor/textures/homedecor_toilet_paper_ends.png
Normal file
After Width: | Height: | Size: 691 B |
Before Width: | Height: | Size: 194 B |
Before Width: | Height: | Size: 2.9 KiB After Width: | Height: | Size: 4.2 KiB |
Before Width: | Height: | Size: 226 B After Width: | Height: | Size: 906 B |
Before Width: | Height: | Size: 282 B |