mirror of
https://github.com/mt-mods/homedecor_modpack.git
synced 2025-01-12 01:20:18 +01:00
add hd roofing
This commit is contained in:
parent
f49481d3d5
commit
ae429e9090
@ -1,20 +0,0 @@
|
|||||||
unused_args = false
|
|
||||||
allow_defined_top = true
|
|
||||||
max_comment_line_length = 999
|
|
||||||
|
|
||||||
read_globals = {
|
|
||||||
"DIR_DELIM",
|
|
||||||
"minetest", "core",
|
|
||||||
"unpack",
|
|
||||||
"dump",
|
|
||||||
table = { fields = { "copy", "getn" } },
|
|
||||||
"vector", "nodeupdate",
|
|
||||||
"VoxelManip", "VoxelArea",
|
|
||||||
"PseudoRandom", "ItemStack",
|
|
||||||
"default",
|
|
||||||
"homedecor",
|
|
||||||
}
|
|
||||||
|
|
||||||
globals = {
|
|
||||||
}
|
|
||||||
|
|
@ -5,12 +5,14 @@ homedecor_roofing = {}
|
|||||||
minetest.register_node(":homedecor:skylight", {
|
minetest.register_node(":homedecor:skylight", {
|
||||||
description = S("Glass Skylight"),
|
description = S("Glass Skylight"),
|
||||||
drawtype = "raillike",
|
drawtype = "raillike",
|
||||||
tiles = { "default_glass.png" },
|
tiles = { homedecor.glass },
|
||||||
wield_image = "default_glass.png",
|
wield_image = homedecor.glass,
|
||||||
inventory_image = "homedecor_skylight_inv.png",
|
inventory_image = "homedecor_skylight_inv.png",
|
||||||
groups = { snappy = 3 },
|
groups = { snappy = 3, dig_tree = 2 },
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
sounds = default.node_sound_glass_defaults(),
|
_sound_def = {
|
||||||
|
key = "node_sound_glass_defaults",
|
||||||
|
},
|
||||||
selection_box = homedecor.nodebox.slab_y(0.1),
|
selection_box = homedecor.nodebox.slab_y(0.1),
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -21,9 +23,11 @@ minetest.register_node(":homedecor:skylight_frosted", {
|
|||||||
wield_image = "homedecor_skylight_frosted.png",
|
wield_image = "homedecor_skylight_frosted.png",
|
||||||
inventory_image = "homedecor_skylight_frosted_inv.png",
|
inventory_image = "homedecor_skylight_frosted_inv.png",
|
||||||
use_texture_alpha = "blend",
|
use_texture_alpha = "blend",
|
||||||
groups = { snappy = 3 },
|
groups = { snappy = 3, dig_tree = 2 },
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
sounds = default.node_sound_glass_defaults(),
|
_sound_def = {
|
||||||
|
key = "node_sound_glass_defaults",
|
||||||
|
},
|
||||||
selection_box = homedecor.nodebox.slab_y(0.1),
|
selection_box = homedecor.nodebox.slab_y(0.1),
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -36,8 +40,10 @@ for s, s_loc in pairs({ ["asphalt"] = S("asphalt"), ["terracotta"] = S("terracot
|
|||||||
inventory_image = "homedecor_shingles_"..s.."_inv.png",
|
inventory_image = "homedecor_shingles_"..s.."_inv.png",
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
walkable = false,
|
walkable = false,
|
||||||
groups = { snappy = 3 },
|
groups = { snappy = 3, dig_tree = 2 },
|
||||||
sounds = default.node_sound_wood_defaults(),
|
_sound_def = {
|
||||||
|
key = "node_sound_wood_defaults",
|
||||||
|
},
|
||||||
selection_box = homedecor.nodebox.slab_y(0.1),
|
selection_box = homedecor.nodebox.slab_y(0.1),
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
@ -93,7 +99,9 @@ homedecor_roofing.register_outer_corner = function(modname, subname, groups, slo
|
|||||||
collision_box = ocorner_cbox,
|
collision_box = ocorner_cbox,
|
||||||
groups = groups,
|
groups = groups,
|
||||||
on_place = minetest.rotate_node,
|
on_place = minetest.rotate_node,
|
||||||
sounds = default.node_sound_wood_defaults()
|
_sound_def = {
|
||||||
|
key = "node_sound_wood_defaults",
|
||||||
|
},
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -114,7 +122,9 @@ homedecor_roofing.register_inner_corner = function(modname, subname, groups, slo
|
|||||||
collision_box = icorner_cbox,
|
collision_box = icorner_cbox,
|
||||||
groups = groups,
|
groups = groups,
|
||||||
on_place = minetest.rotate_node,
|
on_place = minetest.rotate_node,
|
||||||
sounds = default.node_sound_wood_defaults()
|
_sound_def = {
|
||||||
|
key = "node_sound_wood_defaults",
|
||||||
|
},
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -137,7 +147,9 @@ homedecor_roofing.register_slope = function(modname, subname, recipeitem, groups
|
|||||||
use_texture_alpha = "blend",
|
use_texture_alpha = "blend",
|
||||||
groups = groups,
|
groups = groups,
|
||||||
on_place = minetest.rotate_node,
|
on_place = minetest.rotate_node,
|
||||||
sounds = default.node_sound_wood_defaults()
|
_sound_def = {
|
||||||
|
key = "node_sound_wood_defaults",
|
||||||
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
-- convert between flat shingles and slopes
|
-- convert between flat shingles and slopes
|
||||||
@ -260,19 +272,19 @@ end
|
|||||||
-- corners
|
-- corners
|
||||||
|
|
||||||
homedecor_roofing.register_roof("homedecor", "wood",
|
homedecor_roofing.register_roof("homedecor", "wood",
|
||||||
{ snappy = 3 },
|
{ snappy = 3, dig_tree = 2 },
|
||||||
{ "homedecor_shingles_wood.png" },
|
{ "homedecor_shingles_wood.png" },
|
||||||
S("Wood Shingles")
|
S("Wood Shingles")
|
||||||
)
|
)
|
||||||
|
|
||||||
homedecor_roofing.register_roof("homedecor", "asphalt",
|
homedecor_roofing.register_roof("homedecor", "asphalt",
|
||||||
{ snappy = 3 },
|
{ snappy = 3, dig_tree = 2 },
|
||||||
{ "homedecor_shingles_asphalt.png" },
|
{ "homedecor_shingles_asphalt.png" },
|
||||||
S("Asphalt Shingles")
|
S("Asphalt Shingles")
|
||||||
)
|
)
|
||||||
|
|
||||||
homedecor_roofing.register_roof("homedecor", "terracotta",
|
homedecor_roofing.register_roof("homedecor", "terracotta",
|
||||||
{ snappy = 3 },
|
{ snappy = 3, dig_tree = 2 },
|
||||||
{ "homedecor_shingles_terracotta.png" },
|
{ "homedecor_shingles_terracotta.png" },
|
||||||
S("Terracotta Shingles")
|
S("Terracotta Shingles")
|
||||||
)
|
)
|
||||||
@ -281,43 +293,47 @@ homedecor_roofing.register_roof("homedecor", "terracotta",
|
|||||||
|
|
||||||
homedecor_roofing.register_slope("homedecor", "wood",
|
homedecor_roofing.register_slope("homedecor", "wood",
|
||||||
"homedecor:shingles_wood",
|
"homedecor:shingles_wood",
|
||||||
{ snappy = 3 },
|
{ snappy = 3, dig_tree = 2 },
|
||||||
{ "homedecor_shingles_wood.png" },
|
{ "homedecor_shingles_wood.png" },
|
||||||
S("Wood Shingles")
|
S("Wood Shingles")
|
||||||
)
|
)
|
||||||
|
|
||||||
homedecor_roofing.register_slope("homedecor", "asphalt",
|
homedecor_roofing.register_slope("homedecor", "asphalt",
|
||||||
"homedecor:shingles_asphalt",
|
"homedecor:shingles_asphalt",
|
||||||
{ snappy = 3 },
|
{ snappy = 3, dig_tree = 2 },
|
||||||
{ "homedecor_shingles_asphalt.png" },
|
{ "homedecor_shingles_asphalt.png" },
|
||||||
S("Asphalt Shingles")
|
S("Asphalt Shingles")
|
||||||
)
|
)
|
||||||
|
|
||||||
homedecor_roofing.register_slope("homedecor", "terracotta",
|
homedecor_roofing.register_slope("homedecor", "terracotta",
|
||||||
"homedecor:shingles_terracotta",
|
"homedecor:shingles_terracotta",
|
||||||
{ snappy = 3 },
|
{ snappy = 3, dig_tree = 2 },
|
||||||
{ "homedecor_shingles_terracotta.png" },
|
{ "homedecor_shingles_terracotta.png" },
|
||||||
S("Terracotta Shingles")
|
S("Terracotta Shingles")
|
||||||
)
|
)
|
||||||
|
|
||||||
homedecor_roofing.register_slope("homedecor", "glass",
|
homedecor_roofing.register_slope("homedecor", "glass",
|
||||||
"homedecor:shingles_glass",
|
"homedecor:shingles_glass",
|
||||||
{ snappy = 3 },
|
{ snappy = 3, dig_tree = 2 },
|
||||||
{ "homedecor_shingles_glass.png", "homedecor_shingles_wood.png" },
|
{ "homedecor_shingles_glass.png", "homedecor_shingles_wood.png" },
|
||||||
S("Glass Shingles")
|
S("Glass Shingles")
|
||||||
)
|
)
|
||||||
|
|
||||||
|
local brick_tex = "default_brick.png"
|
||||||
|
if not minetest.get_modpath("default") then brick_tex = "[combine:16x16^[noalpha^[colorize:#AA4A44" end
|
||||||
|
|
||||||
homedecor.register("chimney", {
|
homedecor.register("chimney", {
|
||||||
description = S("Chimney"),
|
description = S("Chimney"),
|
||||||
mesh = "homedecor_chimney.obj",
|
mesh = "homedecor_chimney.obj",
|
||||||
tiles = {
|
tiles = {
|
||||||
"homedecor_chimney_tb.png",
|
"homedecor_chimney_tb.png",
|
||||||
"default_brick.png"
|
brick_tex
|
||||||
},
|
},
|
||||||
selection_box = homedecor.nodebox.bar_y(0.25),
|
selection_box = homedecor.nodebox.bar_y(0.25),
|
||||||
groups = {cracky=3},
|
groups = {cracky=3, dig_tree = 2},
|
||||||
sounds = default.node_sound_stone_defaults()
|
_sound_def = {
|
||||||
|
key = "node_sound_stone_defaults",
|
||||||
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
-- crafting
|
-- crafting
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
name = homedecor_roofing
|
name = homedecor_roofing
|
||||||
description = Homedecor mod: roofing
|
description = Homedecor mod: roofing
|
||||||
depends = homedecor_common, default, dye
|
depends = homedecor_common
|
||||||
|
Loading…
Reference in New Issue
Block a user