forked from nalc/homedecor_modpack
move kitchen related nodes into their associated files
This commit is contained in:
parent
f9a59c1738
commit
4516aa960b
|
@ -345,45 +345,3 @@ function homedecor.register_furnace(name, furnacedef)
|
|||
})
|
||||
|
||||
end
|
||||
|
||||
homedecor.register_furnace("homedecor:oven", {
|
||||
description = S("Oven"),
|
||||
tile_format = "homedecor_oven_%s%s.png",
|
||||
output_slots = 4,
|
||||
output_width = 2,
|
||||
cook_speed = 1.25,
|
||||
})
|
||||
|
||||
homedecor.register_furnace("homedecor:oven_steel", {
|
||||
description = S("Oven (stainless steel)"),
|
||||
tile_format = "homedecor_oven_steel_%s%s.png",
|
||||
output_slots = 4,
|
||||
output_width = 2,
|
||||
cook_speed = 1.25,
|
||||
})
|
||||
|
||||
homedecor.register_furnace("homedecor:microwave_oven", {
|
||||
description = S("Microwave Oven"),
|
||||
tiles = {
|
||||
"homedecor_microwave_top.png", "homedecor_microwave_top.png^[transformR180",
|
||||
"homedecor_microwave_top.png^[transformR270", "homedecor_microwave_top.png^[transformR90",
|
||||
"homedecor_microwave_top.png^[transformR180", "homedecor_microwave_front.png"
|
||||
},
|
||||
tiles_active = {
|
||||
"homedecor_microwave_top.png", "homedecor_microwave_top.png^[transformR180",
|
||||
"homedecor_microwave_top.png^[transformR270", "homedecor_microwave_top.png^[transformR90",
|
||||
"homedecor_microwave_top.png^[transformR180", "homedecor_microwave_front_active.png"
|
||||
},
|
||||
output_slots = 2,
|
||||
output_width = 2,
|
||||
cook_speed = 1.5,
|
||||
extra_nodedef_fields = {
|
||||
drawtype = "nodebox",
|
||||
paramtype = "light",
|
||||
--paramtype2 = "facedir", -- Not needed, set by register_furnace
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = { { -0.5, -0.5, -0.125, 0.5, 0.125, 0.5 } },
|
||||
},
|
||||
},
|
||||
})
|
||||
|
|
|
@ -110,6 +110,8 @@ end
|
|||
dofile(homedecor.modpath.."/nodeboxes.lua")
|
||||
-- expand and unexpand decor
|
||||
dofile(homedecor.modpath.."/expansion.lua")
|
||||
-- register nodes that cook stuff
|
||||
dofile(homedecor.modpath.."/furnaces.lua")
|
||||
-- glue it all together into a registration function
|
||||
dofile(homedecor.modpath.."/registration_handler.lua")
|
||||
|
||||
|
@ -136,7 +138,6 @@ dofile(homedecor.modpath.."/bathroom_sanitation.lua")
|
|||
|
||||
dofile(homedecor.modpath.."/laundry.lua")
|
||||
|
||||
dofile(homedecor.modpath.."/furnaces.lua")
|
||||
dofile(homedecor.modpath.."/nightstands.lua")
|
||||
dofile(homedecor.modpath.."/clocks.lua")
|
||||
dofile(homedecor.modpath.."/misc-electrical.lua")
|
||||
|
|
|
@ -164,3 +164,275 @@ minetest.register_abm({
|
|||
end
|
||||
})
|
||||
|
||||
-- kitchen "furnaces"
|
||||
homedecor.register_furnace("homedecor:oven", {
|
||||
description = S("Oven"),
|
||||
tile_format = "homedecor_oven_%s%s.png",
|
||||
output_slots = 4,
|
||||
output_width = 2,
|
||||
cook_speed = 1.25,
|
||||
})
|
||||
|
||||
homedecor.register_furnace("homedecor:oven_steel", {
|
||||
description = S("Oven (stainless steel)"),
|
||||
tile_format = "homedecor_oven_steel_%s%s.png",
|
||||
output_slots = 4,
|
||||
output_width = 2,
|
||||
cook_speed = 1.25,
|
||||
})
|
||||
|
||||
homedecor.register_furnace("homedecor:microwave_oven", {
|
||||
description = S("Microwave Oven"),
|
||||
tiles = {
|
||||
"homedecor_microwave_top.png", "homedecor_microwave_top.png^[transformR180",
|
||||
"homedecor_microwave_top.png^[transformR270", "homedecor_microwave_top.png^[transformR90",
|
||||
"homedecor_microwave_top.png^[transformR180", "homedecor_microwave_front.png"
|
||||
},
|
||||
tiles_active = {
|
||||
"homedecor_microwave_top.png", "homedecor_microwave_top.png^[transformR180",
|
||||
"homedecor_microwave_top.png^[transformR270", "homedecor_microwave_top.png^[transformR90",
|
||||
"homedecor_microwave_top.png^[transformR180", "homedecor_microwave_front_active.png"
|
||||
},
|
||||
output_slots = 2,
|
||||
output_width = 2,
|
||||
cook_speed = 1.5,
|
||||
extra_nodedef_fields = {
|
||||
drawtype = "nodebox",
|
||||
paramtype = "light",
|
||||
--paramtype2 = "facedir", -- Not needed, set by register_furnace
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = { { -0.5, -0.5, -0.125, 0.5, 0.125, 0.5 } },
|
||||
},
|
||||
},
|
||||
})
|
||||
|
||||
-- coffee!
|
||||
-- coffee!
|
||||
-- coffee!
|
||||
minetest.register_node("homedecor:coffee_maker", {
|
||||
tiles = {
|
||||
"homedecor_coffeemaker_top.png",
|
||||
"homedecor_coffeemaker_bottom.png",
|
||||
"homedecor_coffeemaker_right.png",
|
||||
"homedecor_coffeemaker_right.png^[transformFX",
|
||||
"homedecor_coffeemaker_back.png",
|
||||
"homedecor_coffeemaker_front.png"
|
||||
},
|
||||
description = "Coffee Maker",
|
||||
inventory_image = "homedecor_coffeemaker_inv.png",
|
||||
drawtype = "nodebox",
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
sunlight_propagates = true,
|
||||
groups = {snappy=3},
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{0.0625, -0.5, -0.025, 0.375, -0.375, 0.5}, -- NodeBox1
|
||||
{0.0625, -0.375, 0.3125, 0.375, 0, 0.5}, -- NodeBox2
|
||||
{0.0625, -0.052, 0.02, 0.375, 0.19, 0.5}, -- NodeBox3
|
||||
{0.078, -0.375, 0, 0.36, -0.0625, 0.3125}, -- NodeBox4
|
||||
{0.1875, -0.098, -0.0525, 0.25, -0.078, 0}, -- NodeBox5
|
||||
{0.1875, -0.36, -0.090, 0.25, -0.078, -0.0525}, -- NodeBox6
|
||||
{0.1875, -0.36, -0.0525, 0.25, -0.34, 0}, -- NodeBox7
|
||||
{-0.1875, -0.5, -0.3125, -0.1, -0.4, -0.225}, -- NodeBox8
|
||||
{-0.1975, -0.5, -0.3225, -0.1, -0.375, -0.3125}, -- NodeBox9
|
||||
{-0.1975, -0.5, -0.235, -0.1, -0.375, -0.225}, -- NodeBox10
|
||||
{-0.1975, -0.5, -0.3225, -0.1875, -0.375, -0.225}, -- NodeBox11
|
||||
{-0.11, -0.5, -0.3225, -0.1, -0.375, -0.225}, -- NodeBox12
|
||||
{-0.1, -0.485, -0.2838, -0.06, -0.475, -0.2638}, -- NodeBox13
|
||||
{-0.1, -0.4, -0.2838, -0.06, -0.39, -0.2638}, -- NodeBox14
|
||||
{-0.075, -0.485, -0.2838, -0.06, -0.39, -0.2638}, -- NodeBox15
|
||||
}
|
||||
},
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = { -0.22, -0.5, -0.35, 0.4, 0.21, 0.5 }
|
||||
}
|
||||
})
|
||||
|
||||
local fdir_to_steampos = {
|
||||
x = { 0.15, 0.275, -0.15, -0.275 },
|
||||
z = { 0.275, -0.15, -0.275, 0.15 }
|
||||
}
|
||||
|
||||
minetest.register_abm({
|
||||
nodenames = "homedecor:coffee_maker",
|
||||
interval = 2,
|
||||
chance = 1,
|
||||
action = function(pos, node)
|
||||
local fdir = node.param2
|
||||
if fdir and fdir < 4 then
|
||||
|
||||
local steamx = fdir_to_steampos.x[fdir + 1]
|
||||
local steamz = fdir_to_steampos.z[fdir + 1]
|
||||
|
||||
minetest.add_particlespawner({
|
||||
amount = 1,
|
||||
time = 1,
|
||||
minpos = {x=pos.x - steamx, y=pos.y - 0.35, z=pos.z - steamz},
|
||||
maxpos = {x=pos.x - steamx, y=pos.y - 0.35, z=pos.z - steamz},
|
||||
minvel = {x=-0.003, y=0.01, z=-0.003},
|
||||
maxvel = {x=0.003, y=0.01, z=-0.003},
|
||||
minacc = {x=0.0,y=-0.0,z=-0.0},
|
||||
maxacc = {x=0.0,y=0.003,z=-0.0},
|
||||
minexptime = 2,
|
||||
maxexptime = 5,
|
||||
minsize = 1,
|
||||
maxsize = 1.2,
|
||||
collisiondetection = false,
|
||||
texture = "homedecor_steam.png",
|
||||
})
|
||||
end
|
||||
end
|
||||
})
|
||||
|
||||
minetest.register_node("homedecor:toaster", {
|
||||
description = "Toaster",
|
||||
tiles = {
|
||||
"homedecor_toaster_sides.png",
|
||||
"homedecor_toaster_sides.png",
|
||||
"homedecor_toaster_sides.png",
|
||||
"homedecor_toaster_sides.png",
|
||||
"homedecor_toaster_sides.png",
|
||||
"homedecor_toaster_sides.png"
|
||||
},
|
||||
inventory_image = "homedecor_toaster_inv.png",
|
||||
drawtype = "nodebox",
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
sunlight_propagates = true,
|
||||
groups = { snappy=3 },
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{-0.0625, -0.5, -0.125, 0.125, -0.3125, 0.125}, -- NodeBox1
|
||||
},
|
||||
},
|
||||
on_rightclick = function(pos, node, clicker)
|
||||
local fdir = node.param2
|
||||
minetest.set_node(pos, { name = "homedecor:toaster_loaf", param2 = fdir })
|
||||
minetest.sound_play("toaster", {
|
||||
pos = pos,
|
||||
gain = 1.0,
|
||||
max_hear_distance = 5
|
||||
})
|
||||
end
|
||||
})
|
||||
|
||||
minetest.register_node("homedecor:toaster_loaf", {
|
||||
tiles = {
|
||||
"homedecor_toaster_toploaf.png",
|
||||
"homedecor_toaster_sides.png",
|
||||
"homedecor_toaster_sides.png",
|
||||
"homedecor_toaster_sides.png",
|
||||
"homedecor_toaster_sides.png",
|
||||
"homedecor_toaster_sides.png"
|
||||
},
|
||||
drawtype = "nodebox",
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
sunlight_propagates = true,
|
||||
groups = { snappy=3, not_in_creative_inventory=1 },
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{-0.0625, -0.5, -0.125, 0.125, -0.3125, 0.125}, -- NodeBox1
|
||||
{-0.03125, -0.3125, -0.0935, 0, -0.25, 0.0935}, -- NodeBox2
|
||||
{0.0625, -0.3125, -0.0935, 0.0935, -0.25, 0.0935}, -- NodeBox3
|
||||
},
|
||||
},
|
||||
on_rightclick = function(pos, node, clicker)
|
||||
local fdir = node.param2
|
||||
minetest.set_node(pos, { name = "homedecor:toaster", param2 = fdir })
|
||||
end,
|
||||
drop = "homedecor:toaster"
|
||||
})
|
||||
|
||||
|
||||
minetest.register_node("homedecor:dishwasher", {
|
||||
description = "Dishwasher",
|
||||
drawtype = "nodebox",
|
||||
tiles = {
|
||||
"homedecor_dishwasher_top.png",
|
||||
"homedecor_dishwasher_bottom.png",
|
||||
"homedecor_dishwasher_sides.png",
|
||||
"homedecor_dishwasher_sides.png^[transformFX",
|
||||
"homedecor_dishwasher_back.png",
|
||||
"homedecor_dishwasher_front.png"
|
||||
},
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{-0.5, -0.5, -0.5, 0.5, -0.4375, 0.5},
|
||||
{-0.5, -0.5, -0.5, 0.5, 0.5, -0.4375},
|
||||
{-0.5, -0.5, -0.5, 0.5, 0.1875, 0.1875},
|
||||
{-0.4375, -0.5, -0.5, 0.4375, 0.4375, 0.4375},
|
||||
}
|
||||
},
|
||||
selection_box = { type = "regular" },
|
||||
groups = { snappy = 3 },
|
||||
})
|
||||
|
||||
minetest.register_node("homedecor:dishwasher_wood", {
|
||||
description = "Dishwasher",
|
||||
tiles = {
|
||||
"homedecor_kitchen_cabinet_top.png",
|
||||
"homedecor_dishwasher_bottom.png",
|
||||
"homedecor_dishwasher_sides.png",
|
||||
"homedecor_dishwasher_sides.png^[transformFX",
|
||||
"homedecor_dishwasher_back.png",
|
||||
"homedecor_dishwasher_front.png"
|
||||
},
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
groups = { snappy = 3 },
|
||||
})
|
||||
|
||||
minetest.register_node("homedecor:dishwasher_steel", {
|
||||
description = "Dishwasher",
|
||||
tiles = {
|
||||
"homedecor_kitchen_cabinet_top_steel.png",
|
||||
"homedecor_dishwasher_bottom.png",
|
||||
"homedecor_dishwasher_sides.png",
|
||||
"homedecor_dishwasher_sides.png^[transformFX",
|
||||
"homedecor_dishwasher_back.png",
|
||||
"homedecor_dishwasher_front.png"
|
||||
},
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
groups = { snappy = 3 },
|
||||
})
|
||||
|
||||
minetest.register_node("homedecor:dishwasher_marble", {
|
||||
description = "Dishwasher",
|
||||
tiles = {
|
||||
"homedecor_kitchen_cabinet_top_marble.png",
|
||||
"homedecor_dishwasher_bottom.png",
|
||||
"homedecor_dishwasher_sides.png",
|
||||
"homedecor_dishwasher_sides.png^[transformFX",
|
||||
"homedecor_dishwasher_back.png",
|
||||
"homedecor_dishwasher_front.png"
|
||||
},
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
groups = { snappy = 3 },
|
||||
})
|
||||
|
||||
minetest.register_node("homedecor:dishwasher_granite", {
|
||||
description = "Dishwasher",
|
||||
tiles = {
|
||||
"homedecor_kitchen_cabinet_top_granite.png",
|
||||
"homedecor_dishwasher_bottom.png",
|
||||
"homedecor_dishwasher_sides.png",
|
||||
"homedecor_dishwasher_sides.png^[transformFX",
|
||||
"homedecor_dishwasher_back.png",
|
||||
"homedecor_dishwasher_front.png"
|
||||
},
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
groups = { snappy = 3 },
|
||||
})
|
||||
|
|
|
@ -54,7 +54,6 @@ homedecor.register("kitchen_cabinet_half", {
|
|||
},
|
||||
})
|
||||
|
||||
|
||||
homedecor.register("kitchen_cabinet_with_sink", {
|
||||
description = S("Kitchen Cabinet with sink"),
|
||||
mesh = "homedecor_kitchen_sink.obj",
|
||||
|
@ -68,3 +67,83 @@ homedecor.register("kitchen_cabinet_with_sink", {
|
|||
size=16,
|
||||
},
|
||||
})
|
||||
|
||||
minetest.register_node("homedecor:copper_pans", {
|
||||
description = "Copper pans",
|
||||
tiles = {
|
||||
"homedecor_polished_copper.png"
|
||||
},
|
||||
inventory_image = "homedecor_copper_pans_inv.png",
|
||||
drawtype = "nodebox",
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
groups = { snappy=3 },
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{-0.375, -0.5, -0.1875, -0.0625, -0.48, 0.125}, -- NodeBox1
|
||||
{-0.375, -0.48, -0.1875, -0.36, -0.3125, 0.125}, -- NodeBox2
|
||||
{-0.0775, -0.48, -0.1875, -0.0625, -0.3125, 0.125}, -- NodeBox3
|
||||
{-0.375, -0.48, 0.11, -0.0625, -0.3125, 0.125}, -- NodeBox4
|
||||
{-0.375, -0.48, -0.1875, -0.0625, -0.3125, -0.1725}, -- NodeBox5
|
||||
{-0.25, -0.36, -0.5, -0.1875, -0.33, -0.1875}, -- NodeBox6
|
||||
{0.0625, -0.5, 0, 0.375, -0.48, 0.3125}, -- NodeBox7
|
||||
{0.0625, -0.48, 0, 0.0775, -0.3125, 0.3125}, -- NodeBox8
|
||||
{0.36, -0.48, 0, 0.375, -0.3125, 0.3125}, -- NodeBox9
|
||||
{0.0625, -0.48, 0, 0.375, -0.3125, 0.0175}, -- NodeBox10
|
||||
{0.0625, -0.48, 0.295, 0.375, -0.3125, 0.3125}, -- NodeBox11
|
||||
{0.1875, -0.36, -0.3125, 0.25, -0.33, 0}, -- NodeBox12
|
||||
}
|
||||
},
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = { -0.375, -0.5, -0.5, 0.375, -0.3125, 0.3125 }
|
||||
},
|
||||
on_place = minetest.rotate_node
|
||||
})
|
||||
|
||||
minetest.register_node("homedecor:kitchen_faucet", {
|
||||
tiles = { "homedecor_bright_metal.png" },
|
||||
inventory_image = "homedecor_kitchen_faucet_inv.png",
|
||||
description = "Kitchen Faucet",
|
||||
drawtype = "nodebox",
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
groups = {snappy=3},
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{0, -0.5, 0.375, 0.0625, -0.1875, 0.4375}, -- NodeBox1
|
||||
{0, -0.1875, 0.35, 0.0625, -0.15, 0.4375}, -- NodeBox2
|
||||
{0, -0.15, 0.32, 0.0625, -0.11, 0.41}, -- NodeBox3
|
||||
{0.007, -0.12, 0.17, 0.055, -0.11, 0.1285}, -- NodeBox4
|
||||
{0, -0.11, 0.125, 0.0625, -0.07, 0.37}, -- NodeBox5
|
||||
{-0.05, -0.48, 0.385, 0.115, -0.455, 0.43}, -- NodeBox6
|
||||
{-0.05, -0.49, 0.395, 0.115, -0.445, 0.42}, -- NodeBox7
|
||||
}
|
||||
},
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = { -0.055, -0.5, 0.125, 0.12, -0.065, 0.4375 }
|
||||
},
|
||||
})
|
||||
|
||||
minetest.register_node("homedecor:paper_towel", {
|
||||
drawtype = "mesh",
|
||||
mesh = "homedecor_paper_towel.obj",
|
||||
tiles = { "homedecor_paper_towel.png" },
|
||||
inventory_image = "homedecor_paper_towel_inv.png",
|
||||
description = "Paper towels",
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
groups = { snappy=3 },
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = { -0.4375, 0.125, 0.0625, 0.4375, 0.4375, 0.5 }
|
||||
},
|
||||
collision_box = {
|
||||
type = "fixed",
|
||||
fixed = { -0.4375, 0.125, 0.0625, 0.4375, 0.4375, 0.5 }
|
||||
}
|
||||
})
|
||||
|
||||
|
|
|
@ -60,3 +60,28 @@ minetest.register_node("homedecor:light_switch", {
|
|||
sounds = default.node_sound_stone_defaults()
|
||||
})
|
||||
|
||||
|
||||
minetest.register_node("homedecor:doorbell", {
|
||||
tiles = { "homedecor_doorbell.png" },
|
||||
inventory_image = "homedecor_doorbell_inv.png",
|
||||
description = "Doorbell",
|
||||
drawtype = "nodebox",
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
groups = {snappy=3},
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{-0.0625, 0, 0.46875, 0.0625, 0.1875, 0.5}, -- NodeBox1
|
||||
{-0.03125, 0.0625, 0.45, 0.03125, 0.125, 0.4675}, -- NodeBox2
|
||||
}
|
||||
},
|
||||
on_punch = function(pos, node, puncher, pointed_thing)
|
||||
minetest.sound_play("homedecor_doorbell", {
|
||||
pos = pos,
|
||||
gain = 1.0,
|
||||
max_hear_distance = 15
|
||||
})
|
||||
end
|
||||
})
|
||||
|
||||
|
|
|
@ -384,92 +384,6 @@ homedecor.register("filing_cabinet", {
|
|||
},
|
||||
})
|
||||
|
||||
minetest.register_node("homedecor:dishwasher", {
|
||||
description = "Dishwasher",
|
||||
drawtype = "nodebox",
|
||||
tiles = {
|
||||
"homedecor_dishwasher_top.png",
|
||||
"homedecor_dishwasher_bottom.png",
|
||||
"homedecor_dishwasher_sides.png",
|
||||
"homedecor_dishwasher_sides.png^[transformFX",
|
||||
"homedecor_dishwasher_back.png",
|
||||
"homedecor_dishwasher_front.png"
|
||||
},
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{-0.5, -0.5, -0.5, 0.5, -0.4375, 0.5},
|
||||
{-0.5, -0.5, -0.5, 0.5, 0.5, -0.4375},
|
||||
{-0.5, -0.5, -0.5, 0.5, 0.1875, 0.1875},
|
||||
{-0.4375, -0.5, -0.5, 0.4375, 0.4375, 0.4375},
|
||||
}
|
||||
},
|
||||
selection_box = { type = "regular" },
|
||||
groups = { snappy = 3 },
|
||||
})
|
||||
|
||||
minetest.register_node("homedecor:dishwasher_wood", {
|
||||
description = "Dishwasher",
|
||||
tiles = {
|
||||
"homedecor_kitchen_cabinet_top.png",
|
||||
"homedecor_dishwasher_bottom.png",
|
||||
"homedecor_dishwasher_sides.png",
|
||||
"homedecor_dishwasher_sides.png^[transformFX",
|
||||
"homedecor_dishwasher_back.png",
|
||||
"homedecor_dishwasher_front.png"
|
||||
},
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
groups = { snappy = 3 },
|
||||
})
|
||||
|
||||
minetest.register_node("homedecor:dishwasher_steel", {
|
||||
description = "Dishwasher",
|
||||
tiles = {
|
||||
"homedecor_kitchen_cabinet_top_steel.png",
|
||||
"homedecor_dishwasher_bottom.png",
|
||||
"homedecor_dishwasher_sides.png",
|
||||
"homedecor_dishwasher_sides.png^[transformFX",
|
||||
"homedecor_dishwasher_back.png",
|
||||
"homedecor_dishwasher_front.png"
|
||||
},
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
groups = { snappy = 3 },
|
||||
})
|
||||
|
||||
minetest.register_node("homedecor:dishwasher_marble", {
|
||||
description = "Dishwasher",
|
||||
tiles = {
|
||||
"homedecor_kitchen_cabinet_top_marble.png",
|
||||
"homedecor_dishwasher_bottom.png",
|
||||
"homedecor_dishwasher_sides.png",
|
||||
"homedecor_dishwasher_sides.png^[transformFX",
|
||||
"homedecor_dishwasher_back.png",
|
||||
"homedecor_dishwasher_front.png"
|
||||
},
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
groups = { snappy = 3 },
|
||||
})
|
||||
|
||||
minetest.register_node("homedecor:dishwasher_granite", {
|
||||
description = "Dishwasher",
|
||||
tiles = {
|
||||
"homedecor_kitchen_cabinet_top_granite.png",
|
||||
"homedecor_dishwasher_bottom.png",
|
||||
"homedecor_dishwasher_sides.png",
|
||||
"homedecor_dishwasher_sides.png^[transformFX",
|
||||
"homedecor_dishwasher_back.png",
|
||||
"homedecor_dishwasher_front.png"
|
||||
},
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
groups = { snappy = 3 },
|
||||
})
|
||||
|
||||
homedecor.register("doghouse_base", {
|
||||
tiles = {
|
||||
"homedecor_doghouse_base_top.png",
|
||||
|
@ -808,56 +722,6 @@ minetest.register_node("homedecor:coat_tree", {
|
|||
},
|
||||
})
|
||||
|
||||
minetest.register_node("homedecor:doorbell", {
|
||||
tiles = { "homedecor_doorbell.png" },
|
||||
inventory_image = "homedecor_doorbell_inv.png",
|
||||
description = "Doorbell",
|
||||
drawtype = "nodebox",
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
groups = {snappy=3},
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{-0.0625, 0, 0.46875, 0.0625, 0.1875, 0.5}, -- NodeBox1
|
||||
{-0.03125, 0.0625, 0.45, 0.03125, 0.125, 0.4675}, -- NodeBox2
|
||||
}
|
||||
},
|
||||
on_punch = function(pos, node, puncher, pointed_thing)
|
||||
minetest.sound_play("homedecor_doorbell", {
|
||||
pos = pos,
|
||||
gain = 1.0,
|
||||
max_hear_distance = 15
|
||||
})
|
||||
end
|
||||
})
|
||||
|
||||
minetest.register_node("homedecor:kitchen_faucet", {
|
||||
tiles = { "homedecor_bright_metal.png" },
|
||||
inventory_image = "homedecor_kitchen_faucet_inv.png",
|
||||
description = "Kitchen Faucet",
|
||||
drawtype = "nodebox",
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
groups = {snappy=3},
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{0, -0.5, 0.375, 0.0625, -0.1875, 0.4375}, -- NodeBox1
|
||||
{0, -0.1875, 0.35, 0.0625, -0.15, 0.4375}, -- NodeBox2
|
||||
{0, -0.15, 0.32, 0.0625, -0.11, 0.41}, -- NodeBox3
|
||||
{0.007, -0.12, 0.17, 0.055, -0.11, 0.1285}, -- NodeBox4
|
||||
{0, -0.11, 0.125, 0.0625, -0.07, 0.37}, -- NodeBox5
|
||||
{-0.05, -0.48, 0.385, 0.115, -0.455, 0.43}, -- NodeBox6
|
||||
{-0.05, -0.49, 0.395, 0.115, -0.445, 0.42}, -- NodeBox7
|
||||
}
|
||||
},
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = { -0.055, -0.5, 0.125, 0.12, -0.065, 0.4375 }
|
||||
},
|
||||
})
|
||||
|
||||
minetest.register_node("homedecor:cutlery_set", {
|
||||
tiles = {
|
||||
"homedecor_cutlery_set_top.png",
|
||||
|
@ -990,84 +854,6 @@ minetest.register_node("homedecor:4_bottles_multi", {
|
|||
selection_box = fbottle_cbox
|
||||
})
|
||||
|
||||
minetest.register_node("homedecor:coffee_maker", {
|
||||
tiles = {
|
||||
"homedecor_coffeemaker_top.png",
|
||||
"homedecor_coffeemaker_bottom.png",
|
||||
"homedecor_coffeemaker_right.png",
|
||||
"homedecor_coffeemaker_right.png^[transformFX",
|
||||
"homedecor_coffeemaker_back.png",
|
||||
"homedecor_coffeemaker_front.png"
|
||||
},
|
||||
description = "Coffee Maker",
|
||||
inventory_image = "homedecor_coffeemaker_inv.png",
|
||||
drawtype = "nodebox",
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
sunlight_propagates = true,
|
||||
groups = {snappy=3},
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{0.0625, -0.5, -0.025, 0.375, -0.375, 0.5}, -- NodeBox1
|
||||
{0.0625, -0.375, 0.3125, 0.375, 0, 0.5}, -- NodeBox2
|
||||
{0.0625, -0.052, 0.02, 0.375, 0.19, 0.5}, -- NodeBox3
|
||||
{0.078, -0.375, 0, 0.36, -0.0625, 0.3125}, -- NodeBox4
|
||||
{0.1875, -0.098, -0.0525, 0.25, -0.078, 0}, -- NodeBox5
|
||||
{0.1875, -0.36, -0.090, 0.25, -0.078, -0.0525}, -- NodeBox6
|
||||
{0.1875, -0.36, -0.0525, 0.25, -0.34, 0}, -- NodeBox7
|
||||
{-0.1875, -0.5, -0.3125, -0.1, -0.4, -0.225}, -- NodeBox8
|
||||
{-0.1975, -0.5, -0.3225, -0.1, -0.375, -0.3125}, -- NodeBox9
|
||||
{-0.1975, -0.5, -0.235, -0.1, -0.375, -0.225}, -- NodeBox10
|
||||
{-0.1975, -0.5, -0.3225, -0.1875, -0.375, -0.225}, -- NodeBox11
|
||||
{-0.11, -0.5, -0.3225, -0.1, -0.375, -0.225}, -- NodeBox12
|
||||
{-0.1, -0.485, -0.2838, -0.06, -0.475, -0.2638}, -- NodeBox13
|
||||
{-0.1, -0.4, -0.2838, -0.06, -0.39, -0.2638}, -- NodeBox14
|
||||
{-0.075, -0.485, -0.2838, -0.06, -0.39, -0.2638}, -- NodeBox15
|
||||
}
|
||||
},
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = { -0.22, -0.5, -0.35, 0.4, 0.21, 0.5 }
|
||||
}
|
||||
})
|
||||
|
||||
local fdir_to_steampos = {
|
||||
x = { 0.15, 0.275, -0.15, -0.275 },
|
||||
z = { 0.275, -0.15, -0.275, 0.15 }
|
||||
}
|
||||
|
||||
minetest.register_abm({
|
||||
nodenames = "homedecor:coffee_maker",
|
||||
interval = 2,
|
||||
chance = 1,
|
||||
action = function(pos, node)
|
||||
local fdir = node.param2
|
||||
if fdir and fdir < 4 then
|
||||
|
||||
local steamx = fdir_to_steampos.x[fdir + 1]
|
||||
local steamz = fdir_to_steampos.z[fdir + 1]
|
||||
|
||||
minetest.add_particlespawner({
|
||||
amount = 1,
|
||||
time = 1,
|
||||
minpos = {x=pos.x - steamx, y=pos.y - 0.35, z=pos.z - steamz},
|
||||
maxpos = {x=pos.x - steamx, y=pos.y - 0.35, z=pos.z - steamz},
|
||||
minvel = {x=-0.003, y=0.01, z=-0.003},
|
||||
maxvel = {x=0.003, y=0.01, z=-0.003},
|
||||
minacc = {x=0.0,y=-0.0,z=-0.0},
|
||||
maxacc = {x=0.0,y=0.003,z=-0.0},
|
||||
minexptime = 2,
|
||||
maxexptime = 5,
|
||||
minsize = 1,
|
||||
maxsize = 1.2,
|
||||
collisiondetection = false,
|
||||
texture = "homedecor_steam.png",
|
||||
})
|
||||
end
|
||||
end
|
||||
})
|
||||
|
||||
minetest.register_node("homedecor:dartboard", {
|
||||
description = "Dartboard",
|
||||
drawtype = "mesh",
|
||||
|
@ -1146,68 +932,6 @@ homedecor.register("piano_right", {
|
|||
selection_box = homedecor.nodebox.null
|
||||
})
|
||||
|
||||
minetest.register_node("homedecor:toaster", {
|
||||
description = "Toaster",
|
||||
tiles = {
|
||||
"homedecor_toaster_sides.png",
|
||||
"homedecor_toaster_sides.png",
|
||||
"homedecor_toaster_sides.png",
|
||||
"homedecor_toaster_sides.png",
|
||||
"homedecor_toaster_sides.png",
|
||||
"homedecor_toaster_sides.png"
|
||||
},
|
||||
inventory_image = "homedecor_toaster_inv.png",
|
||||
drawtype = "nodebox",
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
sunlight_propagates = true,
|
||||
groups = { snappy=3 },
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{-0.0625, -0.5, -0.125, 0.125, -0.3125, 0.125}, -- NodeBox1
|
||||
},
|
||||
},
|
||||
on_rightclick = function(pos, node, clicker)
|
||||
local fdir = node.param2
|
||||
minetest.set_node(pos, { name = "homedecor:toaster_loaf", param2 = fdir })
|
||||
minetest.sound_play("toaster", {
|
||||
pos = pos,
|
||||
gain = 1.0,
|
||||
max_hear_distance = 5
|
||||
})
|
||||
end
|
||||
})
|
||||
|
||||
minetest.register_node("homedecor:toaster_loaf", {
|
||||
tiles = {
|
||||
"homedecor_toaster_toploaf.png",
|
||||
"homedecor_toaster_sides.png",
|
||||
"homedecor_toaster_sides.png",
|
||||
"homedecor_toaster_sides.png",
|
||||
"homedecor_toaster_sides.png",
|
||||
"homedecor_toaster_sides.png"
|
||||
},
|
||||
drawtype = "nodebox",
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
sunlight_propagates = true,
|
||||
groups = { snappy=3, not_in_creative_inventory=1 },
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{-0.0625, -0.5, -0.125, 0.125, -0.3125, 0.125}, -- NodeBox1
|
||||
{-0.03125, -0.3125, -0.0935, 0, -0.25, 0.0935}, -- NodeBox2
|
||||
{0.0625, -0.3125, -0.0935, 0.0935, -0.25, 0.0935}, -- NodeBox3
|
||||
},
|
||||
},
|
||||
on_rightclick = function(pos, node, clicker)
|
||||
local fdir = node.param2
|
||||
minetest.set_node(pos, { name = "homedecor:toaster", param2 = fdir })
|
||||
end,
|
||||
drop = "homedecor:toaster"
|
||||
})
|
||||
|
||||
-- convert old pool tables into newer model
|
||||
|
||||
minetest.register_abm({
|
||||
|
@ -1324,59 +1048,6 @@ minetest.register_node("homedecor:skateboard", {
|
|||
on_place = minetest.rotate_node
|
||||
})
|
||||
|
||||
minetest.register_node("homedecor:copper_pans", {
|
||||
description = "Copper pans",
|
||||
tiles = {
|
||||
"homedecor_polished_copper.png"
|
||||
},
|
||||
inventory_image = "homedecor_copper_pans_inv.png",
|
||||
drawtype = "nodebox",
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
groups = { snappy=3 },
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{-0.375, -0.5, -0.1875, -0.0625, -0.48, 0.125}, -- NodeBox1
|
||||
{-0.375, -0.48, -0.1875, -0.36, -0.3125, 0.125}, -- NodeBox2
|
||||
{-0.0775, -0.48, -0.1875, -0.0625, -0.3125, 0.125}, -- NodeBox3
|
||||
{-0.375, -0.48, 0.11, -0.0625, -0.3125, 0.125}, -- NodeBox4
|
||||
{-0.375, -0.48, -0.1875, -0.0625, -0.3125, -0.1725}, -- NodeBox5
|
||||
{-0.25, -0.36, -0.5, -0.1875, -0.33, -0.1875}, -- NodeBox6
|
||||
{0.0625, -0.5, 0, 0.375, -0.48, 0.3125}, -- NodeBox7
|
||||
{0.0625, -0.48, 0, 0.0775, -0.3125, 0.3125}, -- NodeBox8
|
||||
{0.36, -0.48, 0, 0.375, -0.3125, 0.3125}, -- NodeBox9
|
||||
{0.0625, -0.48, 0, 0.375, -0.3125, 0.0175}, -- NodeBox10
|
||||
{0.0625, -0.48, 0.295, 0.375, -0.3125, 0.3125}, -- NodeBox11
|
||||
{0.1875, -0.36, -0.3125, 0.25, -0.33, 0}, -- NodeBox12
|
||||
}
|
||||
},
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = { -0.375, -0.5, -0.5, 0.375, -0.3125, 0.3125 }
|
||||
},
|
||||
on_place = minetest.rotate_node
|
||||
})
|
||||
|
||||
minetest.register_node("homedecor:paper_towel", {
|
||||
drawtype = "mesh",
|
||||
mesh = "homedecor_paper_towel.obj",
|
||||
tiles = { "homedecor_paper_towel.png" },
|
||||
inventory_image = "homedecor_paper_towel_inv.png",
|
||||
description = "Paper towels",
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
groups = { snappy=3 },
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = { -0.4375, 0.125, 0.0625, 0.4375, 0.4375, 0.5 }
|
||||
},
|
||||
collision_box = {
|
||||
type = "fixed",
|
||||
fixed = { -0.4375, 0.125, 0.0625, 0.4375, 0.4375, 0.5 }
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_node("homedecor:stonepath", {
|
||||
description = "Garden stone path",
|
||||
tiles = {
|
||||
|
|
Loading…
Reference in New Issue
Block a user