mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2025-06-28 14:16:06 +02:00
Updated homedecor mod
This commit is contained in:
@ -122,7 +122,7 @@ homedecor.register("ceiling_fan", {
|
||||
}
|
||||
},
|
||||
groups = { snappy = 3 },
|
||||
light_source = default.LIGHT_MAX-1,
|
||||
light_source = LIGHT_MAX-1,
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
})
|
||||
|
||||
|
@ -2544,7 +2544,7 @@ minetest.register_craft( {
|
||||
{ "", "farming:string", "" },
|
||||
{ "farming:string", "farming:string", "farming:string" }, -- craft changé pour éviter conflit avec le "Spider Cobweb" du mod "mobs"
|
||||
{ "", "farming:string", "" }
|
||||
},
|
||||
}, -- MODIFICATION MADE FOR MFF ^
|
||||
})
|
||||
|
||||
minetest.register_craft( {
|
||||
|
@ -417,7 +417,7 @@ function homedecor.flip_door(pos, node, player, name, side, isClosed)
|
||||
gain = 2,
|
||||
})
|
||||
-- XXX: does the top half have to remember open/closed too?
|
||||
minetest.add_node({x=pos.x, y=pos.y+1, z=pos.z}, { name = "homedecor:door_"..name.."_top_"..rside, param2=nfdir})
|
||||
minetest.set_node({x=pos.x, y=pos.y+1, z=pos.z}, { name = "homedecor:door_"..name.."_top_"..rside, param2=nfdir})
|
||||
|
||||
addDoorNode(pos,{ name = "homedecor:door_"..name.."_bottom_"..rside, param2=nfdir },isClosed)
|
||||
end
|
||||
|
@ -80,7 +80,7 @@ homedecor.register("television", {
|
||||
}
|
||||
}
|
||||
},
|
||||
light_source = default.LIGHT_MAX - 1,
|
||||
light_source = LIGHT_MAX - 1,
|
||||
groups = { snappy = 3 },
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
})
|
||||
|
@ -1,6 +1,6 @@
|
||||
local S = homedecor.gettext
|
||||
|
||||
local function sit(pos, node, clicker)
|
||||
function homedecor.sit(pos, node, clicker)
|
||||
local name = clicker:get_player_name()
|
||||
local meta = minetest:get_meta(pos)
|
||||
local param2 = node.param2
|
||||
@ -35,10 +35,10 @@ function homedecor.sit_exec(pos, node, clicker) -- don't move these functions in
|
||||
or clicker:get_player_control().left == true or clicker:get_player_control().right == true
|
||||
or clicker:get_player_control().jump == true then -- make sure that the player is immobile.
|
||||
return end
|
||||
sit(pos, node, clicker)
|
||||
homedecor.sit(pos, node, clicker)
|
||||
clicker:setpos(pos)
|
||||
default.player_set_animation(clicker, "sit", 30)
|
||||
]]
|
||||
]] -- MODIFICATION MODE FOR MFF ^
|
||||
end
|
||||
|
||||
local table_colors = { "", "mahogany", "white" }
|
||||
@ -362,7 +362,7 @@ homedecor.register("wardrobe_bottom", {
|
||||
},
|
||||
inventory_image = "homedecor_wardrobe_inv.png",
|
||||
description = "Wardrobe",
|
||||
groups = {snappy=3},
|
||||
groups = {snappy=3},
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
@ -383,232 +383,6 @@ homedecor.register("wardrobe_bottom", {
|
||||
},
|
||||
})
|
||||
|
||||
homedecor.register("simple_bench", {
|
||||
tiles = {
|
||||
"homedecor_generic_wood.png",
|
||||
"homedecor_generic_wood.png",
|
||||
"homedecor_generic_wood.png",
|
||||
"homedecor_generic_wood.png",
|
||||
"homedecor_bench_large_2_left_back.png",
|
||||
"homedecor_bench_large_2_left_back.png^[transformFX"
|
||||
},
|
||||
description = "Simple Bench",
|
||||
groups = {snappy=3},
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{-0.5, -0.15, 0, 0.5, -0.05, 0.4},
|
||||
{-0.4, -0.5, 0.1, -0.3, -0.15, 0.3},
|
||||
{ 0.3, -0.5, 0.1, 0.4, -0.15, 0.3},
|
||||
}
|
||||
},
|
||||
on_rightclick = function(pos, node, clicker)
|
||||
pos.y = pos.y-0 -- player's sit position.
|
||||
homedecor.sit_exec(pos, node, clicker)
|
||||
end,
|
||||
})
|
||||
|
||||
homedecor.register("bench_large_1_left", {
|
||||
description = "Garden Bench (style 1)",
|
||||
tiles = {
|
||||
"homedecor_bench_large_1_left_top.png",
|
||||
"homedecor_bench_large_1_left_bottom.png",
|
||||
"homedecor_bench_large_1_ends.png^[transformFX",
|
||||
"homedecor_bench_large_1_ends.png",
|
||||
"homedecor_bench_large_1_left_back.png",
|
||||
"homedecor_bench_large_1_left_front.png"
|
||||
},
|
||||
inventory_image = "homedecor_bench_large_1_inv.png",
|
||||
groups = {snappy=3},
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{-0.5, 0.25, 0.375, 0.5, 0.4375, 0.4375}, -- NodeBox1
|
||||
{-0.5, 0, 0.375, 0.5, 0.1875, 0.4375}, -- NodeBox2
|
||||
{-0.5, -0.125, 0.115, 0.5, -0.0625, 0.35}, -- NodeBox3
|
||||
{-0.5, -0.125, -0.0872, 0.5, -0.0625, 0.079}, -- NodeBox4
|
||||
{-0.3125, -0.5, 0.4375, -0.25, 0.375, 0.5}, -- NodeBox5
|
||||
{-0.3125, -0.25, -0.0625, -0.25, -0.125, 0.4375}, -- NodeBox6
|
||||
{-0.3125, -0.5, -0.0625, -0.25, -0.25, 0}, -- NodeBox7
|
||||
}
|
||||
},
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = { -0.5, -0.5, -0.09375, 1.5, 0.5, 0.5 }
|
||||
},
|
||||
expand = { right="homedecor:bench_large_1_right" },
|
||||
on_rightclick = function(pos, node, clicker)
|
||||
pos.y = pos.y-0 -- player's sit position.
|
||||
homedecor.sit_exec(pos, node, clicker)
|
||||
end,
|
||||
})
|
||||
|
||||
homedecor.register("bench_large_1_right", {
|
||||
tiles = {
|
||||
"homedecor_bench_large_1_left_top.png^[transformFX",
|
||||
"homedecor_bench_large_1_left_bottom.png^[transformFX",
|
||||
"homedecor_bench_large_1_ends.png^[transformFX",
|
||||
"homedecor_bench_large_1_ends.png",
|
||||
"homedecor_bench_large_1_left_back.png^[transformFX",
|
||||
"homedecor_bench_large_1_left_front.png^[transformFX"
|
||||
},
|
||||
groups = {snappy=3},
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{-0.5, 0.25, 0.375, 0.5, 0.4375, 0.4375}, -- NodeBox1
|
||||
{-0.5, 0, 0.375, 0.5, 0.1875, 0.4375}, -- NodeBox2
|
||||
{-0.5, -0.125, 0.115, 0.5, -0.0625, 0.35}, -- NodeBox3
|
||||
{-0.5, -0.125, -0.0872, 0.5, -0.0625, 0.079}, -- NodeBox4
|
||||
{0.25, -0.5, 0.4375, 0.3125, 0.375, 0.5}, -- NodeBox5
|
||||
{0.25, -0.25, -0.0625, 0.3125, -0.125, 0.5}, -- NodeBox6
|
||||
{0.25, -0.5, -0.0625, 0.3125, -0.25, 0}, -- NodeBox7
|
||||
}
|
||||
},
|
||||
selection_box = homedecor.nodebox.null,
|
||||
})
|
||||
|
||||
|
||||
homedecor.register("bench_large_2_left", {
|
||||
description = "Garden Bench (style 2)",
|
||||
tiles = {
|
||||
"homedecor_generic_wood.png",
|
||||
"homedecor_generic_wood.png",
|
||||
"homedecor_generic_wood.png",
|
||||
"homedecor_generic_wood.png",
|
||||
"homedecor_bench_large_2_left_back.png",
|
||||
"homedecor_bench_large_2_left_back.png^[transformFX"
|
||||
},
|
||||
inventory_image = "homedecor_bench_large_2_inv.png",
|
||||
groups = {snappy=3},
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{-0.5, -0.5, 0.375, -0.375, 0.5, 0.5}, -- NodeBox1
|
||||
{-0.375, 0.3125, 0.4375, 0.5, 0.4375, 0.5}, -- NodeBox2
|
||||
{-0.375, -0.0625, 0.4375, 0.5, 0.0625, 0.5}, -- NodeBox3
|
||||
{-0.3125, 0.0625, 0.45, -0.25, 0.3125, 0.48}, -- NodeBox4
|
||||
{-0.1875, 0.0625, 0.45, -0.125, 0.3125, 0.48}, -- NodeBox5
|
||||
{-0.0625, 0.0625, 0.45, 0, 0.3125, 0.48}, -- NodeBox6
|
||||
{0.0625, 0.0625, 0.45, 0.125, 0.3125, 0.48}, -- NodeBox7
|
||||
{0.1875, 0.0625, 0.45, 0.25, 0.3125, 0.48}, -- NodeBox8
|
||||
{0.3125, 0.0625, 0.45, 0.375, 0.3125, 0.48}, -- NodeBox9
|
||||
{0.4375, 0.0625, 0.45, 0.5, 0.3125, 0.48}, -- NodeBox10
|
||||
{-0.5, 0.0625, -0.145362, -0.375, 0.125, 0.375}, -- NodeBox11
|
||||
{-0.5, -0.5, -0.0625, -0.375, 0.0625, 0.0625}, -- NodeBox12
|
||||
{-0.4375, -0.125, -0.0625, 0.5, -0.0911603, 0.4375}, -- NodeBox13
|
||||
{-0.4375, -0.4375, 0.0625, -0.375, -0.3125, 0.375}, -- NodeBox14
|
||||
{-0.375, -0.342324, 0.25, 0.5, -0.4375, 0.1875}, -- NodeBox15
|
||||
{-0.5, -0.25, -0.0290173, 0.5, -0.125, 0.0125346}, -- NodeBox16
|
||||
}
|
||||
},
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = { -0.5, -0.5, -0.15625, 1.5, 0.5, 0.5 }
|
||||
},
|
||||
expand = { right="homedecor:bench_large_2_right" },
|
||||
on_rightclick = function(pos, node, clicker)
|
||||
pos.y = pos.y-0 -- player's sit position.
|
||||
homedecor.sit_exec(pos, node, clicker)
|
||||
end,
|
||||
})
|
||||
|
||||
homedecor.register("bench_large_2_right", {
|
||||
tiles = {
|
||||
"homedecor_generic_wood.png",
|
||||
"homedecor_generic_wood.png",
|
||||
"homedecor_generic_wood.png",
|
||||
"homedecor_generic_wood.png",
|
||||
"homedecor_bench_large_2_right_back.png",
|
||||
"homedecor_bench_large_2_right_back.png^[transformFX"
|
||||
},
|
||||
groups = {snappy=3},
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{0.375, -0.5, 0.375, 0.5, 0.5, 0.5}, -- NodeBox1
|
||||
{-0.5, 0.3125, 0.4375, 0.375, 0.4375, 0.5}, -- NodeBox2
|
||||
{-0.5, -0.0625, 0.4375, 0.375, 0.0625, 0.5}, -- NodeBox3
|
||||
{-0.5, 0.0625, 0.45, -0.4375, 0.3125, 0.48}, -- NodeBox4
|
||||
{-0.375, 0.0625, 0.45, -0.3125, 0.3125, 0.48}, -- NodeBox5
|
||||
{-0.25, 0.0625, 0.45, -0.1875, 0.3125, 0.48}, -- NodeBox6
|
||||
{-0.125, 0.0625, 0.45, -0.0625, 0.3125, 0.48}, -- NodeBox7
|
||||
{0, 0.0625, 0.45, 0.0625, 0.3125, 0.48}, -- NodeBox8
|
||||
{0.125, 0.0625, 0.45, 0.1875, 0.3125, 0.48}, -- NodeBox9
|
||||
{0.25, 0.0625, 0.45, 0.3125, 0.3125, 0.48}, -- NodeBox10
|
||||
{0.375, 0.0625, -0.145362, 0.5, 0.125, 0.375}, -- NodeBox11
|
||||
{0.375, -0.5, -0.0625, 0.5, 0.125, 0.0625}, -- NodeBox12
|
||||
{0.375, -0.4375, 0.0625, 0.4375, -0.3125, 0.375}, -- NodeBox13
|
||||
{-0.5, -0.4375, 0.1875, 0.375, -0.342324, 0.25}, -- NodeBox14
|
||||
{-0.5, -0.125, -0.0625, 0.4375, -0.0911603, 0.4375}, -- NodeBox15
|
||||
{-0.5, -0.25, -0.0290173, 0.5, -0.125, 0.0125346}, -- NodeBox16
|
||||
}
|
||||
},
|
||||
selection_box = homedecor.nodebox.null,
|
||||
})
|
||||
|
||||
homedecor.register("deckchair_head", {
|
||||
tiles = {
|
||||
"homedecor_deckchair_top_c1.png",
|
||||
"homedecor_deckchair_sides.png",
|
||||
"homedecor_deckchair_sides.png",
|
||||
"homedecor_deckchair_sides.png^[transformFX",
|
||||
"homedecor_deckchair_sides.png",
|
||||
"homedecor_deckchair_front.png"
|
||||
},
|
||||
groups = { snappy = 3, not_in_creative_inventory = 1 },
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{-0.375, -0.3125, -0.0625, 0.375, -0.25, 0}, -- NodeBox1
|
||||
{-0.375, -0.25, 0, 0.375, -0.1875, 0.0625}, -- NodeBox2
|
||||
{-0.375, -0.1875, 0.0625, 0.375, -0.125, 0.125}, -- NodeBox3
|
||||
{-0.375, -0.125, 0.125, 0.375, -0.0625, 0.1875}, -- NodeBox4
|
||||
{-0.375, -0.0625, 0.1875, 0.375, 0, 0.25}, -- NodeBox5
|
||||
{-0.375, 0, 0.25, 0.375, 0.0625, 0.3125}, -- NodeBox6
|
||||
{-0.375, 0.0625, 0.3125, 0.375, 0.125, 0.375}, -- NodeBox7
|
||||
{-0.375, 0.125, 0.375, 0.375, 0.1875, 0.4375}, -- NodeBox8
|
||||
{-0.375, 0.1875, 0.4375, 0.375, 0.25, 0.5}, -- NodeBox9
|
||||
{-0.375, -0.375, -0.5, 0.375, -0.3125, 0.0625}, -- NodeBox10
|
||||
{0.3125, -0.1875, -0.5, 0.4375, -0.1575, 0.0625}, -- NodeBox11
|
||||
{-0.4375, -0.1875, -0.5, -0.3125, -0.1575, 0.0625}, -- NodeBox12
|
||||
{0.3125, -0.5, 0, 0.375, -0.25, 0.0625}, -- NodeBox13
|
||||
{-0.375, -0.5, 0, -0.3125, -0.25, 0.0625}, -- NodeBox14
|
||||
}
|
||||
},
|
||||
selection_box = homedecor.nodebox.null
|
||||
})
|
||||
|
||||
homedecor.register("deckchair_foot", {
|
||||
tiles = {
|
||||
"homedecor_deckchair_top_c2.png",
|
||||
"homedecor_deckchair_sides.png",
|
||||
"homedecor_deckchair_sides.png",
|
||||
"homedecor_deckchair_sides.png^[transformFX",
|
||||
"homedecor_deckchair_front.png"
|
||||
},
|
||||
description = "Deck chair",
|
||||
inventory_image = "homedecor_deckchair_inv.png",
|
||||
groups = { snappy = 3 },
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{-0.375, -0.375, -0.5, 0.375, -0.3125, 0.5}, -- NodeBox1
|
||||
{0.3125, -0.5, -0.5, 0.375, -0.375, -0.4375}, -- NodeBox2
|
||||
{-0.375, -0.5, -0.5, -0.3125, -0.375, -0.4375}, -- NodeBox3
|
||||
{0.3125, -0.1875, 0.3, 0.4375, -0.1575, 0.5}, -- NodeBox4
|
||||
{-0.4375, -0.1875, 0.3, -0.3125, -0.1575, 0.5}, -- NodeBox5
|
||||
{-0.365, -0.3125, 0.32, -0.3225, -0.1875, 0.4375}, -- NodeBox6
|
||||
{0.3225, -0.3125, 0.32, 0.365, -0.1875, 0.4375}, -- NodeBox7
|
||||
}
|
||||
},
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = { -0.45, -0.5, -0.5, 0.45, 0.35, 1.5 }
|
||||
},
|
||||
expand = { forward="homedecor:deckchair_head" },
|
||||
})
|
||||
|
||||
homedecor.register("wall_shelf", {
|
||||
description = "Wall Shelf",
|
||||
tiles = {
|
||||
|
@ -50,6 +50,8 @@ end
|
||||
-- leave the last argument nil if it's one 2m high node
|
||||
function homedecor.stack_vertically(itemstack, placer, pointed_thing, node1, node2)
|
||||
local pos, def = select_node(pointed_thing)
|
||||
if not def then return end -- rare corner case, but happened in #205
|
||||
|
||||
if def.on_rightclick then
|
||||
return def.on_rightclick(pointed_thing.under, minetest.get_node(pos), placer, itemstack)
|
||||
end
|
||||
@ -69,6 +71,8 @@ local fdir_to_left = {
|
||||
}
|
||||
function homedecor.stack_wing(itemstack, placer, pointed_thing, node1, node2, node1_right, node2_right)
|
||||
local pos, def = select_node(pointed_thing)
|
||||
if not def then return end -- rare corner case, but happened in #205
|
||||
|
||||
if def.on_rightclick then
|
||||
return def.on_rightclick(pointed_thing.under, minetest.get_node(pos), placer, itemstack)
|
||||
end
|
||||
@ -102,6 +106,8 @@ homedecor.fdir_to_fwd = {
|
||||
|
||||
function homedecor.stack_sideways(itemstack, placer, pointed_thing, node1, node2, dir)
|
||||
local pos, def = select_node(pointed_thing)
|
||||
if not def then return end -- rare corner case, but happened in #205
|
||||
|
||||
if def.on_rightclick then
|
||||
return def.on_rightclick(pointed_thing.under, minetest.get_node(pos), placer, itemstack)
|
||||
end
|
||||
|
@ -16,7 +16,7 @@ for i in ipairs(colors) do
|
||||
interval = 1,
|
||||
chance = 1,
|
||||
action = function(pos, node, active_object_count, active_object_count_wider)
|
||||
minetest.add_node(pos, {name = "homedecor:glowlight_quarter_"..color, param2 = 20})
|
||||
minetest.set_node(pos, {name = "homedecor:glowlight_quarter_"..color, param2 = 20})
|
||||
end,
|
||||
})
|
||||
|
||||
@ -25,7 +25,7 @@ for i in ipairs(colors) do
|
||||
interval = 1,
|
||||
chance = 1,
|
||||
action = function(pos, node, active_object_count, active_object_count_wider)
|
||||
minetest.add_node(pos, {name = "homedecor:glowlight_half_"..color, param2 = 20})
|
||||
minetest.set_node(pos, {name = "homedecor:glowlight_half_"..color, param2 = 20})
|
||||
end,
|
||||
})
|
||||
|
||||
@ -36,7 +36,7 @@ for i in ipairs(colors) do
|
||||
action = function(pos, node, active_object_count, active_object_count_wider)
|
||||
local fdir = node.param2 or 0
|
||||
local nfdir = dirs2[fdir+1]
|
||||
minetest.add_node(pos, {name = "homedecor:glowlight_quarter_"..color, param2 = nfdir})
|
||||
minetest.set_node(pos, {name = "homedecor:glowlight_quarter_"..color, param2 = nfdir})
|
||||
end,
|
||||
})
|
||||
|
||||
@ -47,7 +47,7 @@ for i in ipairs(colors) do
|
||||
action = function(pos, node, active_object_count, active_object_count_wider)
|
||||
local fdir = node.param2 or 0
|
||||
local nfdir = dirs2[fdir+1]
|
||||
minetest.add_node(pos, {name = "homedecor:glowlight_half_"..color, param2 = nfdir})
|
||||
minetest.set_node(pos, {name = "homedecor:glowlight_half_"..color, param2 = nfdir})
|
||||
end,
|
||||
})
|
||||
|
||||
@ -56,7 +56,7 @@ for i in ipairs(colors) do
|
||||
interval = 1,
|
||||
chance = 1,
|
||||
action = function(pos, node, active_object_count, active_object_count_wider)
|
||||
minetest.add_node(pos, {name = "homedecor:glowlight_small_cube_"..color, param2 = 20})
|
||||
minetest.set_node(pos, {name = "homedecor:glowlight_small_cube_"..color, param2 = 20})
|
||||
end,
|
||||
})
|
||||
|
||||
@ -82,7 +82,7 @@ homedecor.register("glowlight_half_"..color, {
|
||||
selection_box = glowlight_nodebox.half,
|
||||
node_box = glowlight_nodebox.half,
|
||||
groups = { snappy = 3 },
|
||||
light_source = default.LIGHT_MAX,
|
||||
light_source = LIGHT_MAX,
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
on_place = minetest.rotate_node
|
||||
})
|
||||
@ -100,7 +100,7 @@ homedecor.register("glowlight_quarter_"..color, {
|
||||
selection_box = glowlight_nodebox.quarter,
|
||||
node_box = glowlight_nodebox.quarter,
|
||||
groups = { snappy = 3 },
|
||||
light_source = default.LIGHT_MAX-1,
|
||||
light_source = LIGHT_MAX-1,
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
on_place = minetest.rotate_node
|
||||
})
|
||||
@ -120,7 +120,7 @@ homedecor.register("glowlight_small_cube_"..color, {
|
||||
selection_box = glowlight_nodebox.small_cube,
|
||||
node_box = glowlight_nodebox.small_cube,
|
||||
groups = { snappy = 3 },
|
||||
light_source = default.LIGHT_MAX-1,
|
||||
light_source = LIGHT_MAX-1,
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
on_place = minetest.rotate_node
|
||||
})
|
||||
@ -138,7 +138,7 @@ homedecor.register("plasma_lamp", {
|
||||
}
|
||||
},
|
||||
-- use_texture_alpha = true,
|
||||
light_source = default.LIGHT_MAX - 1,
|
||||
light_source = LIGHT_MAX - 1,
|
||||
sunlight_propagates = true,
|
||||
groups = {cracky=3,oddly_breakable_by_hand=3},
|
||||
sounds = default.node_sound_glass_defaults(),
|
||||
@ -170,7 +170,7 @@ homedecor.register("candle", {
|
||||
},
|
||||
sunlight_propagates = true,
|
||||
groups = { snappy = 3 },
|
||||
light_source = default.LIGHT_MAX-4,
|
||||
light_source = LIGHT_MAX-4,
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
})
|
||||
|
||||
@ -190,7 +190,7 @@ homedecor.register("candle_thin", {
|
||||
sunlight_propagates = true,
|
||||
walkable = false,
|
||||
groups = { snappy = 3 },
|
||||
light_source = default.LIGHT_MAX-4,
|
||||
light_source = LIGHT_MAX-4,
|
||||
})
|
||||
|
||||
homedecor.register("oil_lamp", {
|
||||
@ -206,7 +206,7 @@ homedecor.register("oil_lamp", {
|
||||
}
|
||||
},
|
||||
groups = { snappy = 3 },
|
||||
light_source = default.LIGHT_MAX-4,
|
||||
light_source = LIGHT_MAX-4,
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
})
|
||||
|
||||
@ -250,7 +250,7 @@ homedecor.register("lattice_lantern_large", {
|
||||
description = S("Lattice lantern (large)"),
|
||||
tiles = { 'homedecor_lattice_lantern_large.png' },
|
||||
groups = { snappy = 3 },
|
||||
light_source = default.LIGHT_MAX - 1,
|
||||
light_source = LIGHT_MAX,
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
})
|
||||
|
||||
@ -270,7 +270,7 @@ homedecor.register("lattice_lantern_small", {
|
||||
fixed = { -0.25, -0.5, -0.25, 0.25, 0, 0.25 }
|
||||
},
|
||||
groups = { snappy = 3 },
|
||||
light_source = default.LIGHT_MAX-1,
|
||||
light_source = LIGHT_MAX-1,
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
on_place = minetest.rotate_node
|
||||
})
|
||||
|
@ -110,7 +110,7 @@ minetest.register_abm({
|
||||
action = function(pos, node, active_object_count, active_object_count_wider)
|
||||
local newnode = string.sub(node.name, 1, -3) -- strip the "_s" from the name
|
||||
local fdir = node.param2 or 0
|
||||
minetest.add_node(pos, {name = newnode, param2 = dirs2[fdir+1]})
|
||||
minetest.set_node(pos, {name = newnode, param2 = dirs2[fdir+1]})
|
||||
end
|
||||
})
|
||||
|
||||
|
Binary file not shown.
Before Width: | Height: | Size: 943 B |
Reference in New Issue
Block a user