Added Sound
This commit is contained in:
parent
3621df6579
commit
267eff3ce2
10
beam.lua
10
beam.lua
@ -12,6 +12,7 @@ minetest.register_node("mydeck:beam", {
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
sunlight_propagates = true,
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
groups = {cracky = 2, choppy = 2, not_in_creative_inventory=1},
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
@ -77,6 +78,7 @@ minetest.register_node("mydeck:beam_wbracket", {
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
sunlight_propagates = true,
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
drop = "mydeck:beam",
|
||||
groups = {cracky = 2, choppy = 2, not_in_creative_inventory=1},
|
||||
node_box = {
|
||||
@ -102,6 +104,7 @@ minetest.register_node("mydeck:joists_beam", {
|
||||
drawtype = "nodebox",
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
drop = {
|
||||
max_items = 2,
|
||||
items = {
|
||||
@ -146,6 +149,7 @@ minetest.register_node("mydeck:joists_beam_wbracket", {
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
sunlight_propagates = true,
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
drop = {
|
||||
max_items = 2,
|
||||
items = {
|
||||
@ -192,6 +196,7 @@ minetest.register_node("mydeck:joists_side_beam", {
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
sunlight_propagates = true,
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
drop = {
|
||||
max_items = 2,
|
||||
items = {
|
||||
@ -236,6 +241,7 @@ minetest.register_node("mydeck:joists_side_beam_wbracket", {
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
sunlight_propagates = true,
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
drop = {
|
||||
max_items = 2,
|
||||
items = {
|
||||
@ -283,6 +289,7 @@ minetest.register_node("mydeck:deck_joists_beam", {
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
sunlight_propagates = true,
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
drop = {
|
||||
max_items = 3,
|
||||
items = {
|
||||
@ -333,6 +340,7 @@ minetest.register_node("mydeck:deck_joists_beam_wbracket", {
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
sunlight_propagates = true,
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
drop = {
|
||||
max_items = 3,
|
||||
items = {
|
||||
@ -385,6 +393,7 @@ minetest.register_node("mydeck:deck_joists_side_beam", {
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
sunlight_propagates = true,
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
drop = {
|
||||
max_items = 3,
|
||||
items = {
|
||||
@ -435,6 +444,7 @@ minetest.register_node("mydeck:deck_joists_side_beam_wbracket", {
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
sunlight_propagates = true,
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
drop = {
|
||||
max_items = 3,
|
||||
items = {
|
||||
|
@ -12,6 +12,7 @@ minetest.register_node("mydeck:beams", {
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
sunlight_propagates = true,
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
drop = "mydeck:beam",
|
||||
groups = {cracky = 2, choppy = 2, not_in_creative_inventory=1},
|
||||
node_box = {
|
||||
@ -44,6 +45,7 @@ minetest.register_node("mydeck:beam_wbrackets", {
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
sunlight_propagates = true,
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
drop = "mydeck:beam",
|
||||
groups = {cracky = 2, choppy = 2, not_in_creative_inventory=1},
|
||||
node_box = {
|
||||
@ -70,6 +72,7 @@ minetest.register_node("mydeck:joists_beams", {
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
sunlight_propagates = true,
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
drop = {
|
||||
max_items = 2,
|
||||
items = {
|
||||
@ -114,6 +117,7 @@ minetest.register_node("mydeck:joists_beam_wbrackets", {
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
sunlight_propagates = true,
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
drop = {
|
||||
max_items = 2,
|
||||
items = {
|
||||
@ -160,6 +164,7 @@ minetest.register_node("mydeck:joists_side_beams", {
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
sunlight_propagates = true,
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
drop = {
|
||||
max_items = 2,
|
||||
items = {
|
||||
@ -204,6 +209,7 @@ minetest.register_node("mydeck:joists_side_beam_wbrackets", {
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
sunlight_propagates = true,
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
drop = {
|
||||
max_items = 2,
|
||||
items = {
|
||||
@ -251,6 +257,7 @@ minetest.register_node("mydeck:deck_joists_beams", {
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
sunlight_propagates = true,
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
drop = {
|
||||
max_items = 3,
|
||||
items = {
|
||||
@ -301,6 +308,7 @@ minetest.register_node("mydeck:deck_joists_beam_wbrackets", {
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
sunlight_propagates = true,
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
drop = {
|
||||
max_items = 3,
|
||||
items = {
|
||||
@ -353,6 +361,7 @@ minetest.register_node("mydeck:deck_joists_side_beams", {
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
sunlight_propagates = true,
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
drop = {
|
||||
max_items = 3,
|
||||
items = {
|
||||
@ -403,6 +412,7 @@ minetest.register_node("mydeck:deck_joists_side_beam_wbrackets", {
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
sunlight_propagates = true,
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
drop = {
|
||||
max_items = 3,
|
||||
items = {
|
||||
|
@ -13,6 +13,7 @@ minetest.register_node("mydeck:deck_boards", {
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
sunlight_propagates = true,
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
groups = {cracky = 2, choppy = 2, not_in_creative_inventory=1},
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
@ -105,10 +106,43 @@ minetest.register_node("mydeck:deck_boards", {
|
||||
if nodeu == "mydeck:joists_side_beam_wbracket" then
|
||||
minetest.set_node({x=pos.x, y=pos.y-1, z=pos.z},{name = "mydeck:deck_joists_side_beam_wbracket", param2=node.param2})
|
||||
end
|
||||
|
||||
if nodeu == "mydeck:beam" then
|
||||
minetest.set_node(pos,{name = "air"})
|
||||
end
|
||||
if nodeu == "mydeck:beam" then
|
||||
minetest.set_node({x=pos.x, y=pos.y-1, z=pos.z},{name = "mydeck:deck_beam", param2=node.param2})
|
||||
end
|
||||
end,
|
||||
|
||||
})
|
||||
|
||||
minetest.register_node("mydeck:deck_beam", {
|
||||
description = "Deck on Beam",
|
||||
tiles = {
|
||||
"mydeck_hwood.png",
|
||||
"mydeck_hwood.png^[transformR90",
|
||||
"mydeck_hwood.png",
|
||||
"mydeck_hwood.png",
|
||||
"mydeck_hwood.png",
|
||||
"mydeck_hwood.png",
|
||||
},
|
||||
drawtype = "nodebox",
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
sunlight_propagates = true,
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
groups = {cracky = 2, choppy = 2, not_in_creative_inventory=1},
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{-0.125, -0.5, -0.5, 0.125, -0.125, 0.5},
|
||||
{-0.5, 0, 0.2725, 0.5, -0.125, 0.5},
|
||||
{-0.5, 0, 0.0225, 0.5, -0.125, 0.25},
|
||||
{-0.5, 0, -0.2275, 0.5, -0.125, 0},
|
||||
{-0.5, 0, -0.4775, 0.5, -0.125, -0.25},
|
||||
}
|
||||
},
|
||||
})
|
||||
minetest.register_node("mydeck:deck_joists", {
|
||||
description = "Deck Joists",
|
||||
tiles = {
|
||||
@ -123,6 +157,7 @@ minetest.register_node("mydeck:deck_joists", {
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
sunlight_propagates = true,
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
drop = {
|
||||
max_items = 2,
|
||||
items = {
|
||||
@ -169,6 +204,7 @@ minetest.register_node("mydeck:deck_joists_side", {
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
sunlight_propagates = true,
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
drop = {
|
||||
max_items = 2,
|
||||
items = {
|
||||
@ -216,6 +252,7 @@ minetest.register_node("mydeck:deck_joists_end", {
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
sunlight_propagates = true,
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
drop = {
|
||||
max_items = 2,
|
||||
items = {
|
||||
@ -262,6 +299,7 @@ minetest.register_node("mydeck:deck_joists_side_end", {
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
sunlight_propagates = true,
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
drop = {
|
||||
max_items = 2,
|
||||
items = {
|
||||
@ -309,6 +347,7 @@ minetest.register_node("mydeck:deck_joists_endr", {
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
sunlight_propagates = true,
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
drop = {
|
||||
max_items = 2,
|
||||
items = {
|
||||
@ -355,6 +394,7 @@ minetest.register_node("mydeck:deck_joists_side_endr", {
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
sunlight_propagates = true,
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
drop = {
|
||||
max_items = 2,
|
||||
items = {
|
||||
|
@ -12,6 +12,8 @@ minetest.register_node("mydeck:deck_boardss", {
|
||||
drawtype = "nodebox",
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
sunlight_propagates = true,
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
drop = "mydeck:deck_boards",
|
||||
groups = {cracky = 2, choppy = 2, not_in_creative_inventory=1},
|
||||
node_box = {
|
||||
@ -106,6 +108,33 @@ minetest.register_node("mydeck:deck_boardss", {
|
||||
end,
|
||||
|
||||
})
|
||||
minetest.register_node("mydeck:deck_beams", {
|
||||
description = "Deck on Beam Stained",
|
||||
tiles = {
|
||||
"mydeck_hwood.png^mydeck_tint1.png",
|
||||
"mydeck_hwood.png^[transformR90^mydeck_tint1.png",
|
||||
"mydeck_hwood.png^mydeck_tint1.png",
|
||||
"mydeck_hwood.png^mydeck_tint1.png",
|
||||
"mydeck_hwood.png^mydeck_tint1.png",
|
||||
"mydeck_hwood.png^mydeck_tint1.png",
|
||||
},
|
||||
drawtype = "nodebox",
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
sunlight_propagates = true,
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
groups = {cracky = 2, choppy = 2, not_in_creative_inventory=1},
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{-0.125, -0.5, -0.5, 0.125, -0.125, 0.5},
|
||||
{-0.5, 0, 0.2725, 0.5, -0.125, 0.5},
|
||||
{-0.5, 0, 0.0225, 0.5, -0.125, 0.25},
|
||||
{-0.5, 0, -0.2275, 0.5, -0.125, 0},
|
||||
{-0.5, 0, -0.4775, 0.5, -0.125, -0.25},
|
||||
}
|
||||
},
|
||||
})
|
||||
|
||||
minetest.register_node("mydeck:deck_joistss", {
|
||||
description = "Deck Joists Stained",
|
||||
@ -120,6 +149,8 @@ minetest.register_node("mydeck:deck_joistss", {
|
||||
drawtype = "nodebox",
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
sunlight_propagates = true,
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
drop = {
|
||||
max_items = 2,
|
||||
items = {
|
||||
@ -165,6 +196,8 @@ minetest.register_node("mydeck:deck_joists_sides", {
|
||||
drawtype = "nodebox",
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
sunlight_propagates = true,
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
drop = {
|
||||
max_items = 2,
|
||||
items = {
|
||||
@ -211,6 +244,8 @@ minetest.register_node("mydeck:deck_joists_ends", {
|
||||
drawtype = "nodebox",
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
sunlight_propagates = true,
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
drop = {
|
||||
max_items = 2,
|
||||
items = {
|
||||
@ -256,6 +291,8 @@ minetest.register_node("mydeck:deck_joists_side_ends", {
|
||||
drawtype = "nodebox",
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
sunlight_propagates = true,
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
drop = {
|
||||
max_items = 2,
|
||||
items = {
|
||||
@ -302,6 +339,8 @@ minetest.register_node("mydeck:deck_joists_endrs", {
|
||||
drawtype = "nodebox",
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
sunlight_propagates = true,
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
drop = {
|
||||
max_items = 2,
|
||||
items = {
|
||||
@ -347,6 +386,8 @@ minetest.register_node("mydeck:deck_joists_side_endrs", {
|
||||
drawtype = "nodebox",
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
sunlight_propagates = true,
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
drop = {
|
||||
max_items = 2,
|
||||
items = {
|
||||
|
1
depends.txt
Normal file
1
depends.txt
Normal file
@ -0,0 +1 @@
|
||||
default
|
@ -13,6 +13,7 @@ minetest.register_node("mydeck:joists", {
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
sunlight_propagates = true,
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
groups = {cracky = 2, choppy = 2, not_in_creative_inventory=1},
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
@ -62,6 +63,7 @@ minetest.register_node("mydeck:joists_side", {
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
sunlight_propagates = true,
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
groups = {cracky = 2, choppy = 2, not_in_creative_inventory=1},
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
@ -113,6 +115,7 @@ minetest.register_node("mydeck:joists_end", {
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
sunlight_propagates = true,
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
groups = {cracky = 2, choppy = 2, not_in_creative_inventory=1},
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
@ -144,6 +147,7 @@ minetest.register_node("mydeck:joists_side_end", {
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
sunlight_propagates = true,
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
groups = {cracky = 2, choppy = 2, not_in_creative_inventory=1},
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
@ -176,6 +180,7 @@ minetest.register_node("mydeck:joists_endr", {
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
sunlight_propagates = true,
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
groups = {cracky = 2, choppy = 2, not_in_creative_inventory=1},
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
@ -207,6 +212,7 @@ minetest.register_node("mydeck:joists_side_endr", {
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
sunlight_propagates = true,
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
groups = {cracky = 2, choppy = 2, not_in_creative_inventory=1},
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
|
@ -13,6 +13,7 @@ minetest.register_node("mydeck:joistss", {
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
sunlight_propagates = true,
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
drop = "mydeck:joists",
|
||||
groups = {cracky = 2, choppy = 2, not_in_creative_inventory=1},
|
||||
node_box = {
|
||||
@ -63,6 +64,7 @@ minetest.register_node("mydeck:joists_sides", {
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
sunlight_propagates = true,
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
drop = "mydeck:joists_side",
|
||||
groups = {cracky = 2, choppy = 2, not_in_creative_inventory=1},
|
||||
node_box = {
|
||||
@ -115,6 +117,7 @@ minetest.register_node("mydeck:joists_ends", {
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
sunlight_propagates = true,
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
drop = "mydeck:joists_end",
|
||||
groups = {cracky = 2, choppy = 2, not_in_creative_inventory=1},
|
||||
node_box = {
|
||||
@ -147,6 +150,7 @@ minetest.register_node("mydeck:joists_side_ends", {
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
sunlight_propagates = true,
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
drop = "mydeck:joists_side_end",
|
||||
groups = {cracky = 2, choppy = 2, not_in_creative_inventory=1},
|
||||
node_box = {
|
||||
@ -180,6 +184,7 @@ minetest.register_node("mydeck:joists_endrs", {
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
sunlight_propagates = true,
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
drop = "mydeck:joists_endr",
|
||||
groups = {cracky = 2, choppy = 2, not_in_creative_inventory=1},
|
||||
node_box = {
|
||||
@ -212,6 +217,7 @@ minetest.register_node("mydeck:joists_side_endrs", {
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
sunlight_propagates = true,
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
drop = "mydeck:joists_side_endr",
|
||||
groups = {cracky = 2, choppy = 2, not_in_creative_inventory=1},
|
||||
node_box = {
|
||||
|
@ -12,6 +12,7 @@ minetest.register_node("mydeck:lattice", {
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
sunlight_propagates = true,
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
groups = {cracky = 2, choppy = 2, not_in_creative_inventory=1},
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
|
@ -12,6 +12,7 @@ minetest.register_node("mydeck:lattices", {
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
sunlight_propagates = true,
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
drop = "mydeck:lattice",
|
||||
groups = {cracky = 2, choppy = 2, not_in_creative_inventory=1},
|
||||
node_box = {
|
||||
|
@ -13,6 +13,7 @@ minetest.register_node("mydeck:pile", {
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
sunlight_propagates = true,
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
groups = {cracky = 2, choppy = 2, not_in_creative_inventory=1},
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
@ -47,6 +48,7 @@ minetest.register_node("mydeck:pile_wpost", {
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
sunlight_propagates = true,
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
drop = {
|
||||
max_items = 2,
|
||||
items = {
|
||||
@ -87,6 +89,7 @@ minetest.register_node("mydeck:post", {
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
sunlight_propagates = true,
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
groups = {cracky = 2, choppy = 2, not_in_creative_inventory=1},
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
|
@ -14,6 +14,7 @@ minetest.register_node("mydeck:pile_wposts", {
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
sunlight_propagates = true,
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
drop = {
|
||||
max_items = 2,
|
||||
items = {
|
||||
@ -54,6 +55,7 @@ minetest.register_node("mydeck:posts", {
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
sunlight_propagates = true,
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
drop = "mydeck:post",
|
||||
groups = {cracky = 2, choppy = 2, not_in_creative_inventory=1},
|
||||
node_box = {
|
||||
|
3
rail.lua
3
rail.lua
@ -12,6 +12,7 @@ minetest.register_node("mydeck:rail", {
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
sunlight_propagates = true,
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
groups = {cracky = 2, choppy = 2, not_in_creative_inventory=1},
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
@ -49,6 +50,7 @@ minetest.register_node("mydeck:rail_corner", {
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
sunlight_propagates = true,
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
groups = {cracky = 2, choppy = 2, not_in_creative_inventory=1},
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
@ -94,6 +96,7 @@ minetest.register_node("mydeck:rail_icorner", {
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
sunlight_propagates = true,
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
groups = {cracky = 2, choppy = 2, not_in_creative_inventory=1},
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
|
@ -11,6 +11,7 @@ minetest.register_node("mydeck:rails", {
|
||||
drawtype = "nodebox",
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
drop = "mydeck:rail",
|
||||
sunlight_propagates = true,
|
||||
groups = {cracky = 2, choppy = 2, not_in_creative_inventory=1},
|
||||
@ -51,6 +52,7 @@ minetest.register_node("mydeck:rail_corners", {
|
||||
paramtype2 = "facedir",
|
||||
drop = "mydeck:rail_corner",
|
||||
sunlight_propagates = true,
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
groups = {cracky = 2, choppy = 2, not_in_creative_inventory=1},
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
@ -97,6 +99,7 @@ minetest.register_node("mydeck:rail_icorners", {
|
||||
paramtype2 = "facedir",
|
||||
drop = "mydeck:rail_icorner",
|
||||
sunlight_propagates = true,
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
groups = {cracky = 2, choppy = 2, not_in_creative_inventory=1},
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
|
@ -199,6 +199,11 @@ minetest.register_on_punchnode(function(pos, node, puncher, pointed_thing)
|
||||
and node.name == "mydeck:stairs_railr_end" then
|
||||
minetest.set_node(pos,{name = "mydeck:stairs_railr_ends", param2=node.param2})
|
||||
end
|
||||
|
||||
if puncher:get_wielded_item():get_name() == "mydeck:stain_brush"
|
||||
and node.name == "mydeck:deck_beam" then
|
||||
minetest.set_node(pos,{name = "mydeck:deck_beams", param2=node.param2})
|
||||
end
|
||||
end)
|
||||
|
||||
|
||||
|
@ -12,6 +12,7 @@ minetest.register_node("mydeck:stairs", {
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
sunlight_propagates = true,
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
groups = {cracky = 2, choppy = 2, not_in_creative_inventory=1},
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
@ -100,6 +101,7 @@ minetest.register_node("mydeck:stairsb", {
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
sunlight_propagates = true,
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
drop = "mydeck:stairs",
|
||||
groups = {cracky = 2, choppy = 2, not_in_creative_inventory=1},
|
||||
node_box = {
|
||||
@ -173,6 +175,7 @@ minetest.register_node("mydeck:stairs_ocorner", {
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
sunlight_propagates = true,
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
groups = {cracky = 2, choppy = 2, not_in_creative_inventory=1},
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
@ -237,6 +240,7 @@ minetest.register_node("mydeck:stairs_icorner", {
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
sunlight_propagates = true,
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
groups = {cracky = 2, choppy = 2, not_in_creative_inventory=1},
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
@ -302,6 +306,7 @@ minetest.register_node("mydeck:stairs_railr", {
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
sunlight_propagates = true,
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
groups = {cracky = 2, choppy = 2, not_in_creative_inventory=1},
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
@ -367,6 +372,7 @@ minetest.register_node("mydeck:stairs_raill", {
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
sunlight_propagates = true,
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
groups = {cracky = 2, choppy = 2, not_in_creative_inventory=1},
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
@ -433,6 +439,7 @@ minetest.register_node("mydeck:stairs_railr_end", {
|
||||
paramtype2 = "facedir",
|
||||
drop = "mydeck:stairs_railr",
|
||||
sunlight_propagates = true,
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
groups = {cracky = 2, choppy = 2, not_in_creative_inventory=1},
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
@ -469,6 +476,7 @@ minetest.register_node("mydeck:stairs_raill_end", {
|
||||
paramtype2 = "facedir",
|
||||
drop = "mydeck:stairs_raill",
|
||||
sunlight_propagates = true,
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
groups = {cracky = 2, choppy = 2, not_in_creative_inventory=1},
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
|
@ -12,6 +12,7 @@ minetest.register_node("mydeck:stairss", {
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
sunlight_propagates = true,
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
drop = "mydeck:stairs",
|
||||
groups = {cracky = 2, choppy = 2, not_in_creative_inventory=1},
|
||||
node_box = {
|
||||
@ -107,6 +108,7 @@ minetest.register_node("mydeck:stairsbs", {
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
sunlight_propagates = true,
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
drop = "mydeck:stairs",
|
||||
groups = {cracky = 2, choppy = 2, not_in_creative_inventory=1},
|
||||
node_box = {
|
||||
@ -180,6 +182,7 @@ minetest.register_node("mydeck:stairs_ocorners", {
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
sunlight_propagates = true,
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
drop = "mydeck:stairs_ocorner",
|
||||
groups = {cracky = 2, choppy = 2, not_in_creative_inventory=1},
|
||||
node_box = {
|
||||
@ -245,6 +248,7 @@ minetest.register_node("mydeck:stairs_icorners", {
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
sunlight_propagates = true,
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
drop = "mydeck:stairs_icorner",
|
||||
groups = {cracky = 2, choppy = 2, not_in_creative_inventory=1},
|
||||
node_box = {
|
||||
@ -312,6 +316,7 @@ minetest.register_node("mydeck:stairs_railrs", {
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
sunlight_propagates = true,
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
drop = "mydeck:stairs_railr",
|
||||
groups = {cracky = 2, choppy = 2, not_in_creative_inventory=1},
|
||||
node_box = {
|
||||
@ -360,6 +365,7 @@ minetest.register_node("mydeck:stairs_raills", {
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
sunlight_propagates = true,
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
drop = "mydeck:stairs_raill",
|
||||
groups = {cracky = 2, choppy = 2, not_in_creative_inventory=1},
|
||||
node_box = {
|
||||
@ -412,6 +418,7 @@ minetest.register_node("mydeck:stairs_railr_ends", {
|
||||
paramtype2 = "facedir",
|
||||
drop = "mydeck:stairs_railr",
|
||||
sunlight_propagates = true,
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
groups = {cracky = 2, choppy = 2, not_in_creative_inventory=1},
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
@ -448,6 +455,7 @@ minetest.register_node("mydeck:stairs_raill_ends", {
|
||||
paramtype2 = "facedir",
|
||||
drop = "mydeck:stairs_raill",
|
||||
sunlight_propagates = true,
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
groups = {cracky = 2, choppy = 2, not_in_creative_inventory=1},
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
|
Binary file not shown.
Before Width: | Height: | Size: 144 B After Width: | Height: | Size: 144 B |
Loading…
x
Reference in New Issue
Block a user