2014-06-28 00:00:07 +02:00
|
|
|
minetest.register_node("building_blocks:Adobe", {
|
2014-06-28 04:52:19 +02:00
|
|
|
tiles = {"building_blocks_Adobe.png"},
|
2014-06-28 00:00:07 +02:00
|
|
|
description = "Adobe",
|
|
|
|
is_ground_content = true,
|
|
|
|
groups = {crumbly=3},
|
|
|
|
sounds = default.node_sound_stone_defaults(),
|
|
|
|
})
|
|
|
|
minetest.register_node("building_blocks:Roofing", {
|
2014-06-28 04:52:19 +02:00
|
|
|
tiles = {"building_blocks_Roofing.png"},
|
2014-06-28 00:00:07 +02:00
|
|
|
is_ground_content = true,
|
|
|
|
description = "Roof block",
|
|
|
|
groups = {snappy=3},
|
|
|
|
})
|
|
|
|
minetest.register_craft({
|
|
|
|
output = 'building_blocks:terrycloth_towel 2',
|
|
|
|
recipe = {
|
2014-07-19 18:35:55 +02:00
|
|
|
{"farming:string", "farming:string", "farming:string"},
|
2014-06-28 00:00:07 +02:00
|
|
|
}
|
|
|
|
})
|
|
|
|
minetest.register_craft({
|
|
|
|
output = 'building_blocks:Tarmac_spread 4',
|
|
|
|
recipe = {
|
|
|
|
{"building_blocks:Tar", "building_blocks:Tar"},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
minetest.register_craft({
|
|
|
|
output = 'building_blocks:gravel_spread 4',
|
|
|
|
recipe = {
|
|
|
|
{"default:gravel", "default:gravel", "default:gravel"},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
minetest.register_craft({
|
|
|
|
output = 'building_blocks:brobble_spread 4',
|
|
|
|
recipe = {
|
|
|
|
{"default:brick", "default:cobble", "default:brick"},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
minetest.register_craft({
|
|
|
|
output = 'building_blocks:Fireplace 1',
|
|
|
|
recipe = {
|
|
|
|
{"default:steel_ingot", "building_blocks:sticks", "default:steel_ingot"},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
minetest.register_craft({
|
|
|
|
output = 'building_blocks:Adobe 3',
|
|
|
|
recipe = {
|
|
|
|
{"default:sand"},
|
|
|
|
{"default:clay"},
|
2014-07-31 00:19:42 +02:00
|
|
|
{"group:stick"},
|
2014-06-28 00:00:07 +02:00
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = 'building_blocks:Roofing 10',
|
|
|
|
recipe = {
|
|
|
|
{"building_blocks:Adobe", "building_blocks:Adobe"},
|
|
|
|
{"building_blocks:Adobe", "building_blocks:Adobe"},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
minetest.register_craft({
|
|
|
|
output = 'building_blocks:BWtile 10',
|
|
|
|
recipe = {
|
|
|
|
{"building_blocks:Marble", "building_blocks:Tar"},
|
|
|
|
{"building_blocks:Tar", "building_blocks:Marble"},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
minetest.register_craft({
|
|
|
|
output = 'building_blocks:grate 1',
|
|
|
|
recipe = {
|
|
|
|
{"default:steel_ingot", "default:steel_ingot"},
|
|
|
|
{"default:glass", "default:glass"},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
minetest.register_craft({
|
|
|
|
output = 'building_blocks:woodglass 1',
|
|
|
|
recipe = {
|
|
|
|
{"default:wood"},
|
|
|
|
{"default:glass"},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
minetest.register_craft({
|
2014-06-28 04:15:18 +02:00
|
|
|
output = 'building_blocks:hardwood 2',
|
2014-06-28 00:00:07 +02:00
|
|
|
recipe = {
|
2014-06-28 04:15:18 +02:00
|
|
|
{"default:wood", "default:junglewood"},
|
|
|
|
{"default:junglewood", "default:wood"},
|
2014-06-28 00:00:07 +02:00
|
|
|
}
|
|
|
|
})
|
2014-06-28 04:15:18 +02:00
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = 'building_blocks:hardwood 2',
|
|
|
|
recipe = {
|
|
|
|
{"default:junglewood", "default:wood"},
|
|
|
|
{"default:wood", "default:junglewood"},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
2014-06-28 00:00:07 +02:00
|
|
|
minetest.register_craft({
|
|
|
|
output = 'building_blocks:sticks',
|
|
|
|
recipe = {
|
2014-07-31 00:19:42 +02:00
|
|
|
{'group:stick', 'group:stick'},
|
|
|
|
{'group:stick', 'group:stick'},
|
2014-06-28 00:00:07 +02:00
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = 'building_blocks:fakegrass 2',
|
|
|
|
recipe = {
|
|
|
|
{'default:leaves'},
|
|
|
|
{"default:dirt"},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
2014-09-02 04:53:05 +02:00
|
|
|
minetest.register_craft({
|
|
|
|
output = 'building_blocks:tar_base 2',
|
|
|
|
recipe = {
|
|
|
|
{"default:coal_lump", "default:gravel"},
|
|
|
|
{"default:gravel", "default:coal_lump"}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = 'building_blocks:tar_base 2',
|
|
|
|
recipe = {
|
|
|
|
{"default:gravel", "default:coal_lump"},
|
|
|
|
{"default:coal_lump", "default:gravel"}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
2014-06-28 00:00:07 +02:00
|
|
|
minetest.register_craft({
|
|
|
|
type = "cooking",
|
|
|
|
output = "building_blocks:smoothglass",
|
|
|
|
recipe = "default:glass"
|
|
|
|
})
|
|
|
|
minetest.register_node("building_blocks:smoothglass", {
|
|
|
|
drawtype = "glasslike",
|
|
|
|
description = "Streak Free Glass",
|
2014-06-28 04:52:19 +02:00
|
|
|
tiles = {"building_blocks_sglass.png"},
|
2014-06-28 04:17:59 +02:00
|
|
|
inventory_image = minetest.inventorycube("building_blocks_sglass.png"),
|
2014-06-28 00:00:07 +02:00
|
|
|
paramtype = "light",
|
|
|
|
sunlight_propagates = true,
|
|
|
|
is_ground_content = true,
|
|
|
|
groups = {snappy=3,cracky=3,oddly_breakable_by_hand=3},
|
|
|
|
sounds = default.node_sound_glass_defaults(),
|
|
|
|
})
|
|
|
|
minetest.register_node("building_blocks:grate", {
|
|
|
|
drawtype = "glasslike",
|
|
|
|
description = "Grate",
|
2014-06-28 04:52:19 +02:00
|
|
|
tiles = {"building_blocks_grate.png"},
|
2014-06-28 04:17:59 +02:00
|
|
|
inventory_image = minetest.inventorycube("building_blocks_grate.png"),
|
2014-06-28 00:00:07 +02:00
|
|
|
paramtype = "light",
|
|
|
|
sunlight_propagates = true,
|
|
|
|
is_ground_content = true,
|
|
|
|
groups = {cracky=1},
|
2014-08-11 21:20:25 +02:00
|
|
|
sounds = default.node_sound_stone_defaults(),
|
2014-06-28 00:00:07 +02:00
|
|
|
})
|
2014-06-28 06:17:13 +02:00
|
|
|
|
2014-06-28 00:00:07 +02:00
|
|
|
minetest.register_node("building_blocks:Fireplace", {
|
2014-06-28 06:17:13 +02:00
|
|
|
description = "Fireplace",
|
|
|
|
tiles = {
|
|
|
|
"building_blocks_cast_iron.png",
|
|
|
|
"building_blocks_cast_iron.png",
|
|
|
|
"building_blocks_cast_iron.png",
|
|
|
|
"building_blocks_cast_iron_fireplace.png"
|
|
|
|
},
|
|
|
|
paramtype = "light",
|
|
|
|
paramtype2 = "facedir",
|
2014-06-28 00:00:07 +02:00
|
|
|
light_source = LIGHT_MAX,
|
|
|
|
sunlight_propagates = true,
|
|
|
|
is_ground_content = true,
|
|
|
|
groups = {cracky=2},
|
|
|
|
})
|
2014-06-28 06:17:13 +02:00
|
|
|
|
2014-06-28 00:00:07 +02:00
|
|
|
minetest.register_node("building_blocks:woodglass", {
|
|
|
|
drawtype = "glasslike",
|
|
|
|
description = "Wood Framed Glass",
|
2014-06-28 04:52:19 +02:00
|
|
|
tiles = {"building_blocks_wglass.png"},
|
2014-06-28 04:11:06 +02:00
|
|
|
inventory_image = minetest.inventorycube("building_blocks_wglass.png"),
|
2014-06-28 00:00:07 +02:00
|
|
|
paramtype = "light",
|
|
|
|
sunlight_propagates = true,
|
|
|
|
is_ground_content = true,
|
|
|
|
groups = {snappy=3,cracky=3,oddly_breakable_by_hand=3},
|
|
|
|
sounds = default.node_sound_glass_defaults(),
|
|
|
|
})
|
|
|
|
minetest.register_node("building_blocks:terrycloth_towel", {
|
|
|
|
drawtype = "raillike",
|
|
|
|
description = "Terrycloth towel",
|
2014-06-28 04:52:19 +02:00
|
|
|
tiles = {"building_blocks_towel.png"},
|
2014-06-28 04:51:09 +02:00
|
|
|
inventory_image = "building_blocks_towel_inv.png",
|
2014-06-28 00:00:07 +02:00
|
|
|
paramtype = "light",
|
|
|
|
walkable = false,
|
|
|
|
selection_box = {
|
|
|
|
type = "fixed",
|
|
|
|
-- but how to specify the dimensions for curved and sideways rails?
|
|
|
|
fixed = {-1/2, -1/2, -1/2, 1/2, -1/2+1/16, 1/2},
|
|
|
|
},
|
|
|
|
sunlight_propagates = true,
|
|
|
|
is_ground_content = true,
|
|
|
|
groups = {crumbly=3},
|
|
|
|
})
|
|
|
|
minetest.register_node("building_blocks:Tarmac_spread", {
|
|
|
|
drawtype = "raillike",
|
|
|
|
description = "Tarmac Spread",
|
2014-06-28 04:52:19 +02:00
|
|
|
tiles = {"building_blocks_tar.png"},
|
2014-06-28 04:35:55 +02:00
|
|
|
inventory_image = "building_blocks_tar_spread_inv.png",
|
2014-06-28 00:00:07 +02:00
|
|
|
paramtype = "light",
|
|
|
|
walkable = false,
|
|
|
|
selection_box = {
|
|
|
|
type = "fixed",
|
|
|
|
-- but how to specify the dimensions for curved and sideways rails?
|
|
|
|
fixed = {-1/2, -1/2, -1/2, 1/2, -1/2+1/16, 1/2},
|
|
|
|
},
|
|
|
|
sunlight_propagates = true,
|
|
|
|
is_ground_content = true,
|
|
|
|
groups = {cracky=3},
|
|
|
|
})
|
|
|
|
minetest.register_node("building_blocks:BWtile", {
|
|
|
|
drawtype = "raillike",
|
|
|
|
description = "Chess board tiling",
|
2014-06-28 04:52:19 +02:00
|
|
|
tiles = {"building_blocks_BWtile.png"},
|
2014-06-28 04:41:36 +02:00
|
|
|
inventory_image = "building_blocks_bwtile_inv.png",
|
2014-06-28 00:00:07 +02:00
|
|
|
paramtype = "light",
|
|
|
|
walkable = false,
|
|
|
|
selection_box = {
|
|
|
|
type = "fixed",
|
|
|
|
-- but how to specify the dimensions for curved and sideways rails?
|
|
|
|
fixed = {-1/2, -1/2, -1/2, 1/2, -1/2+1/16, 1/2},
|
|
|
|
},
|
|
|
|
sunlight_propagates = true,
|
|
|
|
is_ground_content = true,
|
|
|
|
groups = {crumbly=3},
|
|
|
|
})
|
|
|
|
minetest.register_node("building_blocks:brobble_spread", {
|
|
|
|
drawtype = "raillike",
|
|
|
|
description = "Brobble Spread",
|
2014-06-28 04:52:19 +02:00
|
|
|
tiles = {"building_blocks_brobble.png"},
|
2014-06-28 04:35:55 +02:00
|
|
|
inventory_image = "building_blocks_brobble_spread_inv.png",
|
2014-06-28 00:00:07 +02:00
|
|
|
paramtype = "light",
|
|
|
|
walkable = false,
|
|
|
|
selection_box = {
|
|
|
|
type = "fixed",
|
|
|
|
-- but how to specify the dimensions for curved and sideways rails?
|
|
|
|
fixed = {-1/2, -1/2, -1/2, 1/2, -1/2+1/16, 1/2},
|
|
|
|
},
|
|
|
|
sunlight_propagates = true,
|
|
|
|
is_ground_content = true,
|
|
|
|
groups = {crumbly=3},
|
|
|
|
})
|
|
|
|
minetest.register_node("building_blocks:gravel_spread", {
|
|
|
|
drawtype = "raillike",
|
|
|
|
description = "Gravel Spread",
|
2014-06-28 04:52:19 +02:00
|
|
|
tiles = {"default_gravel.png"},
|
2014-06-28 04:35:55 +02:00
|
|
|
inventory_image = "building_blocks_gravel_spread_inv.png",
|
2014-06-28 00:00:07 +02:00
|
|
|
paramtype = "light",
|
|
|
|
walkable = false,
|
|
|
|
selection_box = {
|
|
|
|
type = "fixed",
|
|
|
|
-- but how to specify the dimensions for curved and sideways rails?
|
|
|
|
fixed = {-1/2, -1/2, -1/2, 1/2, -1/2+1/16, 1/2},
|
|
|
|
},
|
|
|
|
sunlight_propagates = true,
|
|
|
|
is_ground_content = true,
|
|
|
|
groups = {crumbly=2},
|
|
|
|
})
|
|
|
|
minetest.register_node("building_blocks:hardwood", {
|
2014-06-28 04:52:19 +02:00
|
|
|
tiles = {"building_blocks_hardwood.png"},
|
2014-06-28 00:00:07 +02:00
|
|
|
is_ground_content = true,
|
|
|
|
description = "Hardwood",
|
|
|
|
groups = {choppy=1,flammable=1},
|
|
|
|
sounds = default.node_sound_wood_defaults(),
|
|
|
|
})
|
|
|
|
|
2014-08-13 19:03:17 +02:00
|
|
|
if minetest.get_modpath("moreblocks") then
|
2014-08-11 21:20:25 +02:00
|
|
|
|
|
|
|
stairsplus:register_all(
|
|
|
|
"building_blocks",
|
|
|
|
"marble",
|
|
|
|
"building_blocks:Marble",
|
|
|
|
{
|
|
|
|
description = "Marble",
|
|
|
|
tiles = {"building_blocks_marble.png"},
|
|
|
|
groups = {cracky=3},
|
|
|
|
sounds = default.node_sound_stone_defaults(),
|
|
|
|
}
|
|
|
|
)
|
|
|
|
stairsplus:register_all(
|
|
|
|
"building_blocks",
|
|
|
|
"hardwood",
|
|
|
|
"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 = {}
|
2014-06-28 00:00:07 +02:00
|
|
|
|
2014-08-11 21:20:25 +02:00
|
|
|
-- 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},
|
|
|
|
},
|
2014-06-28 00:00:07 +02:00
|
|
|
},
|
2014-08-11 21:20:25 +02:00
|
|
|
})
|
2014-06-28 00:00:07 +02:00
|
|
|
|
2014-08-11 21:20:25 +02:00
|
|
|
minetest.register_craft({
|
|
|
|
output = 'building_blocks:stair_' .. subname .. ' 4',
|
|
|
|
recipe = {
|
|
|
|
{recipeitem, "", ""},
|
|
|
|
{recipeitem, recipeitem, ""},
|
|
|
|
{recipeitem, recipeitem, recipeitem},
|
|
|
|
},
|
|
|
|
})
|
2014-06-28 00:00:07 +02:00
|
|
|
|
2014-08-11 21:20:25 +02:00
|
|
|
-- Flipped recipe for the silly minecrafters
|
|
|
|
minetest.register_craft({
|
|
|
|
output = 'building_blocks:stair_' .. subname .. ' 4',
|
|
|
|
recipe = {
|
|
|
|
{"", "", recipeitem},
|
|
|
|
{"", recipeitem, recipeitem},
|
|
|
|
{recipeitem, recipeitem, recipeitem},
|
|
|
|
},
|
|
|
|
})
|
|
|
|
end
|
2014-06-28 00:00:07 +02:00
|
|
|
|
2014-08-11 21:20:25 +02:00
|
|
|
-- Node will be called stairs:slab_<subname>
|
|
|
|
function bb_stairs.register_slab(subname, recipeitem, groups, images, description)
|
|
|
|
minetest.register_node("building_blocks:slab_" .. subname, {
|
|
|
|
description = description,
|
|
|
|
drawtype = "nodebox",
|
|
|
|
tiles = images,
|
|
|
|
paramtype = "light",
|
|
|
|
is_ground_content = true,
|
|
|
|
groups = groups,
|
|
|
|
node_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {-0.5, -0.5, -0.5, 0.5, 0, 0.5},
|
|
|
|
},
|
|
|
|
selection_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {-0.5, -0.5, -0.5, 0.5, 0, 0.5},
|
|
|
|
},
|
|
|
|
})
|
2014-06-28 00:00:07 +02:00
|
|
|
|
2014-08-11 21:20:25 +02:00
|
|
|
minetest.register_craft({
|
|
|
|
output = 'building_blocks:slab_' .. subname .. ' 3',
|
|
|
|
recipe = {
|
|
|
|
{recipeitem, recipeitem, recipeitem},
|
|
|
|
},
|
|
|
|
})
|
|
|
|
end
|
2014-06-28 00:00:07 +02:00
|
|
|
|
2014-08-11 21:20:25 +02:00
|
|
|
-- Nodes will be called stairs:{stair,slab}_<subname>
|
|
|
|
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_slab(subname, recipeitem, groups, images, desc_slab)
|
|
|
|
end
|
|
|
|
bb_stairs.register_stair_and_slab("marble","building_blocks:Marble",
|
|
|
|
{cracky=3},
|
|
|
|
{"building_blocks_marble.png"},
|
|
|
|
"Marble stair",
|
|
|
|
"Marble slab"
|
|
|
|
)
|
|
|
|
bb_stairs.register_stair_and_slab("hardwood","building_blocks:hardwood",
|
|
|
|
{choppy=1,flammable=1},
|
2014-06-28 00:00:07 +02:00
|
|
|
{"building_blocks_hardwood.png"},
|
|
|
|
"Hardwood stair",
|
2014-08-11 21:20:25 +02:00
|
|
|
"Hardwood slab"
|
|
|
|
)
|
|
|
|
bb_stairs.register_stair_and_slab("fakegrass","building_blocks:fakegrass",
|
2014-06-28 00:00:07 +02:00
|
|
|
{crumbly=3},
|
|
|
|
{"default_grass.png"},
|
|
|
|
"Grass stair",
|
2014-08-11 21:20:25 +02:00
|
|
|
"Grass slab"
|
|
|
|
)
|
|
|
|
bb_stairs.register_stair_and_slab("tar","building_blocks:Tar",
|
2014-06-28 00:00:07 +02:00
|
|
|
{crumbly=1},
|
|
|
|
{"building_blocks_tar.png"},
|
|
|
|
"Tar stair",
|
2014-08-11 21:20:25 +02:00
|
|
|
"Tar slab"
|
|
|
|
)
|
|
|
|
bb_stairs.register_stair_and_slab("grate","building_blocks:grate",
|
|
|
|
{cracky=1},
|
2014-06-28 00:00:07 +02:00
|
|
|
{"building_blocks_grate.png"},
|
|
|
|
"Grate Stair",
|
2014-08-11 21:20:25 +02:00
|
|
|
"Grate Slab"
|
|
|
|
)
|
|
|
|
end
|
|
|
|
|
|
|
|
|
2014-06-28 00:00:07 +02:00
|
|
|
minetest.register_craft({
|
|
|
|
type = "fuel",
|
|
|
|
recipe = "building_blocks:hardwood",
|
|
|
|
burntime = 28,
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node("building_blocks:fakegrass", {
|
2014-06-28 04:52:19 +02:00
|
|
|
tiles = {"default_grass.png", "default_dirt.png", "default_dirt.png^default_grass_side.png"},
|
2014-06-28 00:00:07 +02:00
|
|
|
description = "Fake Grass",
|
|
|
|
is_ground_content = true,
|
|
|
|
groups = {crumbly=3},
|
|
|
|
sounds = default.node_sound_dirt_defaults({
|
|
|
|
footstep = {name="default_grass_footstep", gain=0.4},
|
|
|
|
}),
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craftitem("building_blocks:sticks", {
|
|
|
|
description = "Small bundle of sticks",
|
|
|
|
image = "building_blocks_sticks.png",
|
|
|
|
on_place_on_ground = minetest.craftitem_place_item,
|
|
|
|
})
|
|
|
|
|
2014-09-02 04:53:05 +02:00
|
|
|
minetest.register_craftitem("building_blocks:tar_base", {
|
|
|
|
description = "Tar base",
|
|
|
|
image = "building_blocks_tar_base.png",
|
|
|
|
})
|
|
|
|
|
2014-06-28 00:00:07 +02:00
|
|
|
--Tar
|
|
|
|
minetest.register_craft({
|
|
|
|
output = 'building_blocks:knife 1',
|
|
|
|
recipe = {
|
|
|
|
{"building_blocks:Tar"},
|
2014-07-31 00:19:42 +02:00
|
|
|
{"group:stick"},
|
2014-06-28 00:00:07 +02:00
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_alias("tar", "building_blocks:Tar")
|
|
|
|
minetest.register_alias("fakegrass", "building_blocks:fakegrass")
|
|
|
|
minetest.register_alias("tar_knife", "building_blocks:knife")
|
|
|
|
minetest.register_alias("adobe", "building_blocks:Adobe")
|
|
|
|
minetest.register_alias("building_blocks_roofing", "building_blocks:Roofing")
|
|
|
|
minetest.register_alias("hardwood", "building_blocks:hardwood")
|
|
|
|
minetest.register_alias("sticks", "building_blocks:sticks")
|
|
|
|
minetest.register_alias("building_blocks:faggot", "building_blocks:sticks")
|
|
|
|
minetest.register_alias("marble", "building_blocks:Marble")
|
|
|
|
|
|
|
|
minetest.register_node("building_blocks:Tar", {
|
|
|
|
description = "Tar",
|
|
|
|
tiles = {"building_blocks_tar.png"},
|
|
|
|
is_ground_content = true,
|
|
|
|
groups = {crumbly=1},
|
|
|
|
sounds = default.node_sound_stone_defaults(),
|
|
|
|
})
|
|
|
|
minetest.register_node("building_blocks:Marble", {
|
|
|
|
description = "Marble",
|
|
|
|
tiles = {"building_blocks_marble.png"},
|
|
|
|
is_ground_content = true,
|
|
|
|
groups = {cracky=3},
|
|
|
|
sounds = default.node_sound_stone_defaults(),
|
|
|
|
})
|
|
|
|
minetest.register_craft({
|
|
|
|
type = "fuel",
|
|
|
|
recipe = "building_blocks:sticks",
|
|
|
|
burntime = 5,
|
|
|
|
})
|
|
|
|
minetest.register_craft({
|
|
|
|
type = "fuel",
|
|
|
|
recipe = "building_blocks:Tar",
|
|
|
|
burntime = 40,
|
|
|
|
})
|
2014-09-02 04:53:05 +02:00
|
|
|
|
2014-06-28 00:00:07 +02:00
|
|
|
minetest.register_craft({
|
|
|
|
type = "cooking",
|
|
|
|
output = "building_blocks:Tar",
|
2014-09-02 04:53:05 +02:00
|
|
|
recipe = "building_blocks:tar_base",
|
2014-06-28 00:00:07 +02:00
|
|
|
})
|
2014-09-02 04:53:05 +02:00
|
|
|
|
2014-06-28 00:00:07 +02:00
|
|
|
minetest.register_tool("building_blocks:knife", {
|
|
|
|
description = "Tar Knife",
|
|
|
|
inventory_image = "building_blocks_knife.png",
|
|
|
|
tool_capabilities = {
|
|
|
|
max_drop_level=0,
|
|
|
|
groupcaps={
|
|
|
|
choppy={times={[2]=7.50, [3]=2.80}, maxwear=0.01, maxlevel=1},
|
|
|
|
fleshy={times={[2]=5.50, [3]=2.80}, maxwear=0.01, maxlevel=1}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.add_to_creative_inventory('building_blocks:Tar 0')
|
|
|
|
minetest.add_to_creative_inventory('building_blocks:hardwood 0')
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "building_blocks:Marble 9",
|
|
|
|
recipe = {
|
|
|
|
{"default:clay", "building_blocks:Tar", "default:clay"},
|
|
|
|
{"building_blocks:Tar","default:clay", "building_blocks:Tar"},
|
|
|
|
{"default:clay", "building_blocks:Tar","default:clay"},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|