add working manhole, add paper towel holder, toilet paper, and hand dryer.

master
Thomas 2019-03-18 20:25:16 -04:00
parent ab470eea68
commit d6f1bfd3cb
13 changed files with 127 additions and 1 deletions

View File

@ -222,4 +222,5 @@ dofile(modpathis.."/neon.lua")
dofile(modpathis.."/plants.lua")
dofile(modpathis.."/furniture.lua")
dofile(modpathis.."/wallitems.lua")
dofile(modpathis.."/ceiltiles.lua")
dofile(modpathis.."/ceiltiles.lua")
dofile(modpathis.."/util.lua")

View File

@ -101,4 +101,21 @@ minetest.register_node("modern_ish:neon_music", {
selection_box = {
type = "wallmounted",
},
})
minetest.register_node("modern_ish:neon_train", {
tiles = {"modern_ish_sign_train.png"},
inventory_image = "modern_ish_sign_train.png",
groups = {snappy=1, choppy=2},
paramtype = "light",
light_source = 6,
walkable = false,
drawtype = "signlike",
sunlight_propagates = true,
paramtype2 = "wallmounted",
description = "neon train sign",
is_ground_content = false,
selection_box = {
type = "wallmounted",
},
})

Binary file not shown.

Before

Width:  |  Height:  |  Size: 213 KiB

After

Width:  |  Height:  |  Size: 230 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 762 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 765 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 763 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 721 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 707 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 366 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 343 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 337 B

56
util.lua Executable file
View File

@ -0,0 +1,56 @@
minetest.register_node("modern_ish:util_drain", {
tiles = {"modern_ish_util_drain.png"},
inventory_image = "modern_ish_util_drain.png",
groups = {snappy=1, choppy=2},
paramtype = "light",
light_source = 0,
walkable = false,
drawtype = "signlike",
sunlight_propagates = true,
paramtype2 = "wallmounted",
description = "A round drain.",
is_ground_content = false,
selection_box = {
type = "wallmounted",
},
})
minetest.register_node("modern_ish:manhole_closed", {
tiles = {"modern_ish_manhole_closed.png","modern_ish_manhole_closed_bottom.png","modern_ish_manhole_side.png", "modern_ish_manhole_side.png", "modern_ish_manhole_side.png", "modern_ish_manhole_side.png"},
groups = {snappy=1, choppy=2},
paramtype = "light",
use_texture_alpha = true,
sunlight_propagates = true,
description = "A Closed manhole",
drawtype = "nodebox",
node_box = {
type = "fixed",
fixed = {-0.5, 0.4, -0.5, 0.5, 0.5, 0.5},
},
is_ground_content = false,
on_rightclick = function (pos, node)
node.name = "modern_ish:manhole_open"
minetest.set_node(pos, node)
end
})
minetest.register_node("modern_ish:manhole_open", {
tiles = {"modern_ish_manhole_open.png","modern_ish_manhole_open.png","modern_ish_manhole_side.png", "modern_ish_manhole_side.png", "modern_ish_manhole_side.png", "modern_ish_manhole_side.png"},
groups = {snappy=1, choppy=2},
paramtype = "light",
walkable = false,
climbable = true,
drawtype = "nodebox",
node_box = {
type = "fixed",
fixed = {-0.5, 0.4, -0.5, 0.5, 0.5, 0.5},
},
sunlight_propagates = true,
description = "An Open manhole.",
is_ground_content = false,
on_rightclick = function (pos, node)
node.name = "modern_ish:manhole_closed"
minetest.set_node(pos, node)
end
})

View File

@ -84,4 +84,56 @@ minetest.register_node("modern_ish:wi_speaker", {
selection_box = {
type = "wallmounted",
},
})
minetest.register_node("modern_ish:wi_air_dryer", {
tiles = {"modern_ish_wi_air_dryer.png"},
inventory_image = "modern_ish_wi_air_dryer.png",
groups = {snappy=1, choppy=2},
paramtype = "light",
light_source = 0,
walkable = false,
drawtype = "signlike",
sunlight_propagates = true,
paramtype2 = "wallmounted",
description = "A wall-mounted air dryer for restrooms.",
is_ground_content = false,
selection_box = {
type = "wallmounted",
},
})
minetest.register_node("modern_ish:wi_toilet_paper", {
tiles = {"modern_ish_wi_toilet_paper.png"},
inventory_image = "modern_ish_wi_toilet_paper.png",
groups = {snappy=1, choppy=2},
paramtype = "light",
light_source = 0,
walkable = false,
drawtype = "signlike",
sunlight_propagates = true,
paramtype2 = "wallmounted",
description = "A wall-mounted toilet paper holder.",
is_ground_content = false,
selection_box = {
type = "wallmounted",
},
})
minetest.register_node("modern_ish:wi_paper_towels", {
tiles = {"modern_ish_wi_paper_towels.png"},
inventory_image = "modern_ish_wi_paper_towels.png",
groups = {snappy=1, choppy=2},
paramtype = "light",
light_source = 0,
walkable = false,
drawtype = "signlike",
sunlight_propagates = true,
paramtype2 = "wallmounted",
description = "A wall-mounted paper towel holder.",
is_ground_content = false,
selection_box = {
type = "wallmounted",
},
})