mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-12-24 00:49:34 +01:00
Main - Fixed Bamboo Sign Errors.
Fixed Stripped Bamboo Block Description. Added in Bamboo Plank Recipe that uses Stripped Bamboo Blocks. Removed double translation of "Bamboo Sign" in sign registration. (Caused the Bamboo Sign Errors.) Added bamboo plank slabs to the group "wood_slabs" so that the barrel recipe works oob.
This commit is contained in:
parent
29bc74dde9
commit
4da20f5e73
1 changed files with 51 additions and 3 deletions
|
@ -176,7 +176,7 @@ local function create_nodes()
|
||||||
local bamboo_block_def = {
|
local bamboo_block_def = {
|
||||||
description = "Bamboo Block",
|
description = "Bamboo Block",
|
||||||
tiles = {"mcl_bamboo_bamboo_bottom.png", "mcl_bamboo_bamboo_bottom.png", "mcl_bamboo_bamboo_block.png"},
|
tiles = {"mcl_bamboo_bamboo_bottom.png", "mcl_bamboo_bamboo_bottom.png", "mcl_bamboo_bamboo_block.png"},
|
||||||
groups = {handy = 1, building_block = 1, axey = 1, flammable = 2, material_wood = 1, fire_encouragement = 5, fire_flammability = 5},
|
groups = {handy = 1, building_block = 1, axey = 1, flammable = 2, material_wood = 1, bamboo_block = 1, fire_encouragement = 5, fire_flammability = 5},
|
||||||
sounds = node_sound,
|
sounds = node_sound,
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
drops = "mcl_bamboo:bamboo_block",
|
drops = "mcl_bamboo:bamboo_block",
|
||||||
|
@ -210,7 +210,7 @@ local function create_nodes()
|
||||||
minetest.register_node("mcl_bamboo:bamboo_block", bamboo_block_def)
|
minetest.register_node("mcl_bamboo:bamboo_block", bamboo_block_def)
|
||||||
local bamboo_stripped_block = table.copy(bamboo_block_def)
|
local bamboo_stripped_block = table.copy(bamboo_block_def)
|
||||||
bamboo_stripped_block.on_rightclick = nil
|
bamboo_stripped_block.on_rightclick = nil
|
||||||
bamboo_stripped_block.description = "Bamboo Block"
|
bamboo_stripped_block.description = S("Stripped Bamboo Block")
|
||||||
bamboo_stripped_block.tiles = {"mcl_bamboo_bamboo_bottom.png", "mcl_bamboo_bamboo_bottom.png", "mcl_bamboo_bamboo_block_stripped.png"}
|
bamboo_stripped_block.tiles = {"mcl_bamboo_bamboo_bottom.png", "mcl_bamboo_bamboo_bottom.png", "mcl_bamboo_bamboo_block_stripped.png"}
|
||||||
minetest.register_node("mcl_bamboo:bamboo_block_stripped", bamboo_stripped_block)
|
minetest.register_node("mcl_bamboo:bamboo_block_stripped", bamboo_stripped_block)
|
||||||
minetest.register_node("mcl_bamboo:bamboo_plank", {
|
minetest.register_node("mcl_bamboo:bamboo_plank", {
|
||||||
|
@ -341,6 +341,26 @@ local function create_nodes()
|
||||||
S("Bamboo Plank Slab"),
|
S("Bamboo Plank Slab"),
|
||||||
S("Double Bamboo Plank Slab")
|
S("Double Bamboo Plank Slab")
|
||||||
)
|
)
|
||||||
|
|
||||||
|
-- let's add plank slabs to the wood_slab group.
|
||||||
|
local bamboo_plank_slab = "mcl_stairs:slab_bamboo_plank"
|
||||||
|
local node_def_plank_slab_def = minetest.registered_nodes[bamboo_plank_slab]
|
||||||
|
node_def_plank_slab_def.groups = {
|
||||||
|
wood_slab = 1,
|
||||||
|
building_block = 1,
|
||||||
|
slab = 1,
|
||||||
|
axey = 1,
|
||||||
|
handy = 1,
|
||||||
|
stair = 1
|
||||||
|
}
|
||||||
|
|
||||||
|
if DEBUG then
|
||||||
|
minetest.log("Plank_Slab definition: \n" .. dump(node_def_plank_slab_def))
|
||||||
|
end
|
||||||
|
|
||||||
|
-- A necessary evil, to add a single group to an already registered node. (And yes, I did try override_item())
|
||||||
|
minetest.unregister_item(node_def_plank_slab_def.name)
|
||||||
|
minetest.register_node(":"..node_def_plank_slab_def.name, node_def_plank_slab_def)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -400,7 +420,7 @@ local function create_nodes()
|
||||||
-- Bamboo Signs...
|
-- Bamboo Signs...
|
||||||
mcl_signs.register_sign_custom("mcl_bamboo", "_bamboo", "mcl_signs_sign_greyscale.png",
|
mcl_signs.register_sign_custom("mcl_bamboo", "_bamboo", "mcl_signs_sign_greyscale.png",
|
||||||
"#f6dc91", "default_sign_greyscale.png", "default_sign_greyscale.png",
|
"#f6dc91", "default_sign_greyscale.png", "default_sign_greyscale.png",
|
||||||
S("Bamboo Sign"))
|
"Bamboo Sign")
|
||||||
mcl_signs.register_sign_craft("mcl_bamboo", "mcl_bamboo:bamboo_plank", "_bamboo")
|
mcl_signs.register_sign_craft("mcl_bamboo", "mcl_bamboo:bamboo_plank", "_bamboo")
|
||||||
minetest.register_alias("bamboo_sign", "mcl_signs:wall_sign_bamboo")
|
minetest.register_alias("bamboo_sign", "mcl_signs:wall_sign_bamboo")
|
||||||
end
|
end
|
||||||
|
@ -619,6 +639,13 @@ local function register_craftings()
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
output = bamboo .. "_plank 2",
|
||||||
|
recipe = {
|
||||||
|
{bamboo .. "_block_stripped"},
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "mcl_core:stick",
|
output = "mcl_core:stick",
|
||||||
recipe = {
|
recipe = {
|
||||||
|
@ -627,6 +654,27 @@ local function register_craftings()
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
-- Barrel and composter recipes
|
||||||
|
if minetest.get_modpath("mcl_stairs") and 1 == 2 then
|
||||||
|
-- currently disabled.
|
||||||
|
if mcl_stairs ~= nil then
|
||||||
|
minetest.register_craft({
|
||||||
|
output = "mcl_barrels:barrel_closed",
|
||||||
|
recipe = {
|
||||||
|
{"group:wood", "group:wood_slab", "group:wood"},
|
||||||
|
{"group:wood", "", "group:wood"},
|
||||||
|
{"group:wood", "group:wood_slab", "group:wood"},
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
type = "fuel",
|
||||||
|
recipe = "mcl_barrels:barrel_closed",
|
||||||
|
burntime = 15,
|
||||||
|
})
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "mcl_bamboo:scaffolding 6",
|
output = "mcl_bamboo:scaffolding 6",
|
||||||
recipe = {{bamboo, "mcl_mobitems:string", bamboo},
|
recipe = {{bamboo, "mcl_mobitems:string", bamboo},
|
||||||
|
|
Loading…
Reference in a new issue