forked from mtcontrib/homedecor_modpack
Merge branch 'Patch-1' of https://github.com/Jat15/homedecor_modpack
This commit is contained in:
commit
e0e78cafbf
@ -1 +1,2 @@
|
|||||||
default
|
default
|
||||||
|
moreblocks?
|
@ -135,6 +135,7 @@ minetest.register_node("building_blocks:grate", {
|
|||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
is_ground_content = true,
|
is_ground_content = true,
|
||||||
groups = {cracky=1},
|
groups = {cracky=1},
|
||||||
|
sounds = default.node_sound_stone_defaults(),
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_node("building_blocks:Fireplace", {
|
minetest.register_node("building_blocks:Fireplace", {
|
||||||
@ -252,104 +253,173 @@ minetest.register_node("building_blocks:hardwood", {
|
|||||||
sounds = default.node_sound_wood_defaults(),
|
sounds = default.node_sound_wood_defaults(),
|
||||||
})
|
})
|
||||||
|
|
||||||
bb_stairs = {}
|
if moreblocks then
|
||||||
|
|
||||||
-- Node will be called stairs:stair_<subname>
|
stairsplus:register_all(
|
||||||
function bb_stairs.register_stair(subname, recipeitem, groups, images, description)
|
"building_blocks",
|
||||||
minetest.register_node("building_blocks:stair_" .. subname, {
|
"marble",
|
||||||
description = description,
|
"building_blocks:Marble",
|
||||||
drawtype = "nodebox",
|
{
|
||||||
tiles = images,
|
description = "Marble",
|
||||||
paramtype = "light",
|
tiles = {"building_blocks_marble.png"},
|
||||||
paramtype2 = "facedir",
|
groups = {cracky=3},
|
||||||
is_ground_content = true,
|
sounds = default.node_sound_stone_defaults(),
|
||||||
groups = groups,
|
}
|
||||||
node_box = {
|
)
|
||||||
type = "fixed",
|
stairsplus:register_all(
|
||||||
fixed = {
|
"building_blocks",
|
||||||
{-0.5, -0.5, -0.5, 0.5, 0, 0.5},
|
"hardwood",
|
||||||
{-0.5, 0, 0, 0.5, 0.5, 0.5},
|
"building_blocks:hardwood",
|
||||||
|
{
|
||||||
|
description = "Hardwood",
|
||||||
|
tiles = {"building_blocks_hardwood.png"},
|
||||||
|
groups = {choppy=1,flammable=1},
|
||||||
|
sounds = default.node_sound_wood_defaults(),
|
||||||
|
}
|
||||||
|
)
|
||||||
|
stairsplus:register_all(
|
||||||
|
"building_blocks",
|
||||||
|
"fakegrass",
|
||||||
|
"building_blocks:fakegrass",
|
||||||
|
{
|
||||||
|
description = "Grass",
|
||||||
|
tiles = {"default_grass.png"},
|
||||||
|
groups = {crumbly=3},
|
||||||
|
sounds = default.node_sound_dirt_defaults({
|
||||||
|
footstep = {name="default_grass_footstep", gain=0.4},
|
||||||
|
}),
|
||||||
|
}
|
||||||
|
)
|
||||||
|
stairsplus:register_all(
|
||||||
|
"building_blocks",
|
||||||
|
"tar",
|
||||||
|
"building_blocks:Tar",
|
||||||
|
{
|
||||||
|
description = "Tar",
|
||||||
|
tiles = {"building_blocks_tar.png"},
|
||||||
|
groups = {crumbly=1},
|
||||||
|
sounds = default.node_sound_stone_defaults(),
|
||||||
|
}
|
||||||
|
)
|
||||||
|
stairsplus:register_all(
|
||||||
|
"building_blocks",
|
||||||
|
"grate",
|
||||||
|
"building_blocks:grate",
|
||||||
|
{
|
||||||
|
description = "Grate",
|
||||||
|
tiles = {"building_blocks_grate.png"},
|
||||||
|
groups = {cracky=1},
|
||||||
|
sounds = default.node_sound_stone_defaults(),
|
||||||
|
}
|
||||||
|
)
|
||||||
|
|
||||||
|
else
|
||||||
|
bb_stairs = {}
|
||||||
|
|
||||||
|
-- Node will be called stairs:stair_<subname>
|
||||||
|
function bb_stairs.register_stair(subname, recipeitem, groups, images, description)
|
||||||
|
minetest.register_node("building_blocks:stair_" .. subname, {
|
||||||
|
description = description,
|
||||||
|
drawtype = "nodebox",
|
||||||
|
tiles = images,
|
||||||
|
paramtype = "light",
|
||||||
|
paramtype2 = "facedir",
|
||||||
|
is_ground_content = true,
|
||||||
|
groups = groups,
|
||||||
|
node_box = {
|
||||||
|
type = "fixed",
|
||||||
|
fixed = {
|
||||||
|
{-0.5, -0.5, -0.5, 0.5, 0, 0.5},
|
||||||
|
{-0.5, 0, 0, 0.5, 0.5, 0.5},
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
})
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = 'building_blocks:stair_' .. subname .. ' 4',
|
output = 'building_blocks:stair_' .. subname .. ' 4',
|
||||||
recipe = {
|
recipe = {
|
||||||
{recipeitem, "", ""},
|
{recipeitem, "", ""},
|
||||||
{recipeitem, recipeitem, ""},
|
{recipeitem, recipeitem, ""},
|
||||||
{recipeitem, recipeitem, recipeitem},
|
{recipeitem, recipeitem, recipeitem},
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
-- Flipped recipe for the silly minecrafters
|
-- Flipped recipe for the silly minecrafters
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = 'building_blocks:stair_' .. subname .. ' 4',
|
output = 'building_blocks:stair_' .. subname .. ' 4',
|
||||||
recipe = {
|
recipe = {
|
||||||
{"", "", recipeitem},
|
{"", "", recipeitem},
|
||||||
{"", recipeitem, recipeitem},
|
{"", recipeitem, recipeitem},
|
||||||
{recipeitem, recipeitem, recipeitem},
|
{recipeitem, recipeitem, recipeitem},
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Node will be called stairs:slab_<subname>
|
-- Node will be called stairs:slab_<subname>
|
||||||
function bb_stairs.register_slab(subname, recipeitem, groups, images, description)
|
function bb_stairs.register_slab(subname, recipeitem, groups, images, description)
|
||||||
minetest.register_node("building_blocks:slab_" .. subname, {
|
minetest.register_node("building_blocks:slab_" .. subname, {
|
||||||
description = description,
|
description = description,
|
||||||
drawtype = "nodebox",
|
drawtype = "nodebox",
|
||||||
tiles = images,
|
tiles = images,
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
is_ground_content = true,
|
is_ground_content = true,
|
||||||
groups = groups,
|
groups = groups,
|
||||||
node_box = {
|
node_box = {
|
||||||
type = "fixed",
|
type = "fixed",
|
||||||
fixed = {-0.5, -0.5, -0.5, 0.5, 0, 0.5},
|
fixed = {-0.5, -0.5, -0.5, 0.5, 0, 0.5},
|
||||||
},
|
},
|
||||||
selection_box = {
|
selection_box = {
|
||||||
type = "fixed",
|
type = "fixed",
|
||||||
fixed = {-0.5, -0.5, -0.5, 0.5, 0, 0.5},
|
fixed = {-0.5, -0.5, -0.5, 0.5, 0, 0.5},
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = 'building_blocks:slab_' .. subname .. ' 3',
|
output = 'building_blocks:slab_' .. subname .. ' 3',
|
||||||
recipe = {
|
recipe = {
|
||||||
{recipeitem, recipeitem, recipeitem},
|
{recipeitem, recipeitem, recipeitem},
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Nodes will be called stairs:{stair,slab}_<subname>
|
-- Nodes will be called stairs:{stair,slab}_<subname>
|
||||||
function bb_stairs.register_stair_and_slab(subname, recipeitem, groups, images, desc_stair, desc_slab)
|
function bb_stairs.register_stair_and_slab(subname, recipeitem, groups, images, desc_stair, desc_slab)
|
||||||
bb_stairs.register_stair(subname, recipeitem, groups, images, desc_stair)
|
bb_stairs.register_stair(subname, recipeitem, groups, images, desc_stair)
|
||||||
bb_stairs.register_slab(subname, recipeitem, groups, images, desc_slab)
|
bb_stairs.register_slab(subname, recipeitem, groups, images, desc_slab)
|
||||||
end
|
end
|
||||||
bb_stairs.register_stair_and_slab("marble","building_blocks:Marble",
|
bb_stairs.register_stair_and_slab("marble","building_blocks:Marble",
|
||||||
{cracky=3},
|
{cracky=3},
|
||||||
{"building_blocks_marble.png"},
|
{"building_blocks_marble.png"},
|
||||||
"Marble stair",
|
"Marble stair",
|
||||||
"Marble slab")
|
"Marble slab"
|
||||||
bb_stairs.register_stair_and_slab("hardwood","building_blocks:hardwood",
|
)
|
||||||
{snappy=1,choppy=1,flammable=1},
|
bb_stairs.register_stair_and_slab("hardwood","building_blocks:hardwood",
|
||||||
|
{choppy=1,flammable=1},
|
||||||
{"building_blocks_hardwood.png"},
|
{"building_blocks_hardwood.png"},
|
||||||
"Hardwood stair",
|
"Hardwood stair",
|
||||||
"Hardwood slab")
|
"Hardwood slab"
|
||||||
bb_stairs.register_stair_and_slab("fakegrass","building_blocks:fakegrass",
|
)
|
||||||
|
bb_stairs.register_stair_and_slab("fakegrass","building_blocks:fakegrass",
|
||||||
{crumbly=3},
|
{crumbly=3},
|
||||||
{"default_grass.png"},
|
{"default_grass.png"},
|
||||||
"Grass stair",
|
"Grass stair",
|
||||||
"Grass slab")
|
"Grass slab"
|
||||||
bb_stairs.register_stair_and_slab("tar","building_blocks:Tar",
|
)
|
||||||
|
bb_stairs.register_stair_and_slab("tar","building_blocks:Tar",
|
||||||
{crumbly=1},
|
{crumbly=1},
|
||||||
{"building_blocks_tar.png"},
|
{"building_blocks_tar.png"},
|
||||||
"Tar stair",
|
"Tar stair",
|
||||||
"Tar slab")
|
"Tar slab"
|
||||||
bb_stairs.register_stair_and_slab("grate","building_blocks:grate",
|
)
|
||||||
{crumbly=1},
|
bb_stairs.register_stair_and_slab("grate","building_blocks:grate",
|
||||||
|
{cracky=1},
|
||||||
{"building_blocks_grate.png"},
|
{"building_blocks_grate.png"},
|
||||||
"Grate Stair",
|
"Grate Stair",
|
||||||
"Grate Slab")
|
"Grate Slab"
|
||||||
|
)
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
type = "fuel",
|
type = "fuel",
|
||||||
recipe = "building_blocks:hardwood",
|
recipe = "building_blocks:hardwood",
|
||||||
|
Loading…
Reference in New Issue
Block a user