Add files via upload
parent
816f2bb822
commit
ef597258d3
|
@ -5,6 +5,22 @@ minetest.register_node("modern_ish:cabinet", {
|
|||
paramtype2 = "facedir",
|
||||
description = "A (decorative only) cabinet.",
|
||||
is_ground_content = false,
|
||||
on_construct = function(pos)
|
||||
local meta = minetest.env:get_meta(pos)
|
||||
local inv = meta:get_inventory()
|
||||
inv:set_size('main', 8*4)
|
||||
inv:set_size('storage', 6*6)
|
||||
meta:set_string('formspec',
|
||||
'size [9,10]'..
|
||||
'bgcolor[#080808BB;true]'..
|
||||
'list[current_name;storage;1.5,.2;6,5;]'..
|
||||
'list[current_player;main;0.5,6;8,4;]')
|
||||
end,
|
||||
can_dig = function(pos,player)
|
||||
local meta = minetest.get_meta(pos);
|
||||
local inv = meta:get_inventory()
|
||||
return inv:is_empty('storage') and inv:is_empty('storage1')
|
||||
end,
|
||||
})
|
||||
minetest.register_node("modern_ish:cabinet_sink", {
|
||||
tiles = {"modern_ish_cabinet_top_sink.png","modern_ish_darkwood_panel.png","modern_ish_cabinet_side.png", "modern_ish_cabinet_side.png", "modern_ish_cabinet_side.png", "modern_ish_cabinet_door.png"},
|
||||
|
@ -13,6 +29,22 @@ minetest.register_node("modern_ish:cabinet_sink", {
|
|||
paramtype2 = "facedir",
|
||||
description = "A (decorative only) cabinet, with a sink.",
|
||||
is_ground_content = false,
|
||||
on_construct = function(pos)
|
||||
local meta = minetest.env:get_meta(pos)
|
||||
local inv = meta:get_inventory()
|
||||
inv:set_size('main', 8*4)
|
||||
inv:set_size('storage', 6*6)
|
||||
meta:set_string('formspec',
|
||||
'size [9,10]'..
|
||||
'bgcolor[#080808BB;true]'..
|
||||
'list[current_name;storage;1.5,.2;6,5;]'..
|
||||
'list[current_player;main;0.5,6;8,4;]')
|
||||
end,
|
||||
can_dig = function(pos,player)
|
||||
local meta = minetest.get_meta(pos);
|
||||
local inv = meta:get_inventory()
|
||||
return inv:is_empty('storage') and inv:is_empty('storage1')
|
||||
end,
|
||||
})
|
||||
|
||||
minetest.register_node("modern_ish:cabinet_cooktop", {
|
||||
|
@ -22,15 +54,22 @@ minetest.register_node("modern_ish:cabinet_cooktop", {
|
|||
paramtype2 = "facedir",
|
||||
description = "A (decorative only) cabinet, with an electric cooktop.",
|
||||
is_ground_content = false,
|
||||
})
|
||||
|
||||
minetest.register_node("modern_ish:oven", {
|
||||
tiles = {"modern_ish_oven_top.png","modern_ish_bottom_generic.png","modern_ish_side_generic_stainless.png", "modern_ish_side_generic_stainless.png", "modern_ish_back_generic.png", "modern_ish_oven_door.png"},
|
||||
groups = {snappy=1, choppy=2},
|
||||
light_source = 0,
|
||||
paramtype2 = "facedir",
|
||||
description = "A (decorative only) electric oven.",
|
||||
is_ground_content = false,
|
||||
on_construct = function(pos)
|
||||
local meta = minetest.env:get_meta(pos)
|
||||
local inv = meta:get_inventory()
|
||||
inv:set_size('main', 8*4)
|
||||
inv:set_size('storage', 6*6)
|
||||
meta:set_string('formspec',
|
||||
'size [9,10]'..
|
||||
'bgcolor[#080808BB;true]'..
|
||||
'list[current_name;storage;1.5,.2;6,5;]'..
|
||||
'list[current_player;main;0.5,6;8,4;]')
|
||||
end,
|
||||
can_dig = function(pos,player)
|
||||
local meta = minetest.get_meta(pos);
|
||||
local inv = meta:get_inventory()
|
||||
return inv:is_empty('storage') and inv:is_empty('storage1')
|
||||
end,
|
||||
})
|
||||
|
||||
minetest.register_node("modern_ish:boxtoilet", {
|
||||
|
|
Loading…
Reference in New Issue