forked from VoxeLibre/VoxeLibre
Removed bamboo planks and bamboo items
This commit is contained in:
parent
e27d1455e8
commit
b6634f2eeb
|
@ -291,18 +291,6 @@ bamboo_stripped_block.description = S("Stripped Bamboo Block")
|
|||
bamboo_stripped_block.tiles = {"mcl_bamboo_bamboo_bottom_stripped.png", "mcl_bamboo_bamboo_bottom_stripped.png",
|
||||
"mcl_bamboo_bamboo_block_stripped.png"}
|
||||
minetest.register_node("mcl_bamboo:bamboo_block_stripped", bamboo_stripped_block)
|
||||
minetest.register_node("mcl_bamboo:bamboo_plank", {
|
||||
description = S("Bamboo Plank"),
|
||||
_doc_items_longdesc = S("Bamboo Plank"),
|
||||
_doc_items_hidden = false,
|
||||
tiles = {"mcl_bamboo_bamboo_plank.png"},
|
||||
stack_max = 64,
|
||||
is_ground_content = false,
|
||||
groups = {handy = 1, axey = 1, flammable = 3, wood = 1, building_block = 1, material_wood = 1, fire_encouragement = 5, fire_flammability = 20},
|
||||
sounds = mcl_sounds.node_sound_wood_defaults(),
|
||||
_mcl_blast_resistance = 3,
|
||||
_mcl_hardness = 2,
|
||||
})
|
||||
|
||||
-- Bamboo Part 2 Base nodes.
|
||||
-- Bamboo Mosaic
|
||||
|
|
|
@ -12,7 +12,6 @@ local SCAFFOLDING_NAME = "mcl_bamboo:scaffolding"
|
|||
-- Used everywhere. Often this is just the name, but it makes sense to me as BAMBOO, because that's how I think of it...
|
||||
-- "BAMBOO" goes here.
|
||||
local BAMBOO = "mcl_bamboo:bamboo"
|
||||
local BAMBOO_PLANK = BAMBOO .. "_plank"
|
||||
|
||||
-- LOCALS
|
||||
local modname = minetest.get_current_modname()
|
||||
|
@ -43,205 +42,6 @@ if minetest.get_modpath("mcl_flowerpots") then
|
|||
end
|
||||
end
|
||||
|
||||
if minetest.get_modpath("mcl_doors") then
|
||||
if mcl_doors then
|
||||
local name = "mcl_bamboo:bamboo_door"
|
||||
local def = {
|
||||
description = S("Bamboo Door"),
|
||||
inventory_image = "mcl_bamboo_door_wield.png",
|
||||
wield_image = "mcl_bamboo_door_wield.png",
|
||||
_doc_items_longdesc = S("Wooden doors are 2-block high barriers which can be opened or closed by hand and by a redstone signal."),
|
||||
_doc_items_usagehelp = S("To open or close a wooden door, rightclick it or supply its lower half with a redstone signal."),
|
||||
groups = { handy = 1, axey = 1, material_wood = 1, flammable = -1 },
|
||||
_mcl_hardness = 3,
|
||||
_mcl_blast_resistance = 3,
|
||||
tiles_bottom = "mcl_bamboo_door_bottom.png",
|
||||
tiles_top = "mcl_bamboo_door_top.png",
|
||||
sounds = mcl_sounds.node_sound_wood_defaults(),
|
||||
}
|
||||
|
||||
mcl_doors:register_door(name, def)
|
||||
|
||||
name = "mcl_bamboo:bamboo_trapdoor"
|
||||
local trap_def = {
|
||||
description = S("Bamboo Trapdoor"),
|
||||
groups = {},
|
||||
tile_front = "mcl_bamboo_trapdoor_side.png",
|
||||
tile_side = "mcl_bamboo_trapdoor_side.png",
|
||||
_doc_items_longdesc = S("Wooden trapdoors are horizontal barriers which can be opened and closed by hand or a redstone signal. They occupy the upper or lower part of a block, depending on how they have been placed. When open, they can be climbed like a ladder."),
|
||||
_doc_items_usagehelp = S("To open or close the trapdoor, rightclick it or send a redstone signal to it."),
|
||||
wield_image = "mcl_bamboo_trapdoor_side.png",
|
||||
groups = { handy = 1, axey = 1, mesecon_effector_on = 1, material_wood = 1, flammable = -1 },
|
||||
_mcl_hardness = 3,
|
||||
_mcl_blast_resistance = 3,
|
||||
sounds = mcl_sounds.node_sound_wood_defaults(),
|
||||
}
|
||||
|
||||
mcl_doors:register_trapdoor(name, trap_def)
|
||||
|
||||
minetest.register_alias("bamboo_door", "mcl_bamboo:bamboo_door")
|
||||
minetest.register_alias("bamboo_trapdoor", "mcl_bamboo:bamboo_trapdoor")
|
||||
end
|
||||
end
|
||||
|
||||
if minetest.get_modpath("mcl_stairs") then
|
||||
if mcl_stairs ~= nil then
|
||||
mcl_stairs.register_stair_and_slab_simple(
|
||||
"bamboo_block",
|
||||
"mcl_bamboo:bamboo_block",
|
||||
S("Bamboo Stair"),
|
||||
S("Bamboo Slab"),
|
||||
S("Double Bamboo Slab")
|
||||
)
|
||||
mcl_stairs.register_stair_and_slab_simple(
|
||||
"bamboo_stripped",
|
||||
"mcl_bamboo:bamboo_block_stripped",
|
||||
S("Stripped Bamboo Stair"),
|
||||
S("Stripped Bamboo Slab"),
|
||||
S("Double Stripped Bamboo Slab")
|
||||
)
|
||||
mcl_stairs.register_stair_and_slab_simple(
|
||||
"bamboo_plank",
|
||||
BAMBOO_PLANK,
|
||||
S("Bamboo Plank Stair"),
|
||||
S("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_groups = {
|
||||
wood_slab = 1,
|
||||
building_block = 1,
|
||||
slab = 1,
|
||||
axey = 1,
|
||||
handy = 1,
|
||||
stair = 1,
|
||||
flammable = 1,
|
||||
fire_encouragement = 5,
|
||||
fire_flammability = 20
|
||||
}
|
||||
|
||||
minetest.override_item(bamboo_plank_slab, { groups = node_groups })
|
||||
end
|
||||
end
|
||||
|
||||
if minetest.get_modpath("mesecons_pressureplates") then
|
||||
|
||||
if mesecon ~= nil and mesecon.register_pressure_plate ~= nil then
|
||||
-- make sure that pressure plates are installed.
|
||||
|
||||
-- Bamboo Pressure Plate...
|
||||
|
||||
-- Register a Pressure Plate (api command doc.)
|
||||
-- basename: base name of the pressure plate
|
||||
-- description: description displayed in the player's inventory
|
||||
-- textures_off:textures of the pressure plate when inactive
|
||||
-- textures_on: textures of the pressure plate when active
|
||||
-- image_w: wield image of the pressure plate
|
||||
-- image_i: inventory image of the pressure plate
|
||||
-- recipe: crafting recipe of the pressure plate
|
||||
-- sounds: sound table (like in minetest.register_node)
|
||||
-- plusgroups: group memberships (attached_node=1 and not_in_creative_inventory=1 are already used)
|
||||
-- activated_by: optimal table with elements denoting by which entities this pressure plate is triggered
|
||||
-- Possible table fields:
|
||||
-- * player=true: Player
|
||||
-- * mob=true: Mob
|
||||
-- By default, is triggered by all entities
|
||||
-- longdesc: Customized long description for the in-game help (if omitted, a dummy text is used)
|
||||
|
||||
mesecon.register_pressure_plate(
|
||||
"mcl_bamboo:pressure_plate_bamboo_wood",
|
||||
S("Bamboo Pressure Plate"),
|
||||
{ "mcl_bamboo_bamboo_plank.png" },
|
||||
{ "mcl_bamboo_bamboo_plank.png" },
|
||||
"mcl_bamboo_bamboo_plank.png",
|
||||
nil,
|
||||
{ { BAMBOO_PLANK, BAMBOO_PLANK } },
|
||||
mcl_sounds.node_sound_wood_defaults(),
|
||||
{ axey = 1, material_wood = 1 },
|
||||
nil,
|
||||
S("A wooden pressure plate is a redstone component which supplies its surrounding blocks with redstone power while any movable object (including dropped items, players and mobs) rests on top of it."))
|
||||
|
||||
minetest.register_craft({
|
||||
type = "fuel",
|
||||
recipe = "mcl_bamboo:pressure_plate_bamboo_wood_off",
|
||||
burntime = 15
|
||||
})
|
||||
minetest.register_alias("bamboo_pressure_plate", "mcl_bamboo:pressure_plate_bamboo_wood")
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
if minetest.get_modpath("mcl_signs") then
|
||||
mcl_bamboo.mcl_log("Signs Section Entrance. Modpath exists.")
|
||||
if mcl_signs ~= nil then
|
||||
-- Bamboo Signs...
|
||||
mcl_signs.register_sign_custom("mcl_bamboo", "_bamboo", "mcl_bamboo_bamboo_sign.png",
|
||||
"#ffffff", "mcl_bamboo_bamboo_sign_wield.png", "mcl_bamboo_bamboo_sign_wield.png",
|
||||
S("Bamboo Sign"))
|
||||
mcl_signs.register_sign_craft("mcl_bamboo", BAMBOO_PLANK, "_bamboo")
|
||||
minetest.register_alias("bamboo_sign", "mcl_signs:wall_sign_bamboo")
|
||||
end
|
||||
end
|
||||
|
||||
if minetest.get_modpath("mcl_fences") then
|
||||
mcl_bamboo.mcl_log("Fences Section Entrance. Modpath exists.")
|
||||
|
||||
local id = "bamboo_fence"
|
||||
local wood_groups = { handy = 1, axey = 1, flammable = 2, fence_wood = 1, fire_encouragement = 5, fire_flammability = 20 }
|
||||
local wood_connect = { "group:fence_wood" }
|
||||
|
||||
local fence_id = mcl_fences.register_fence(
|
||||
id,
|
||||
S("Bamboo Fence"),
|
||||
"mcl_bamboo_fence_bamboo.png",
|
||||
wood_groups,
|
||||
minetest.registered_nodes["mcl_core:wood"]._mcl_hardness,
|
||||
minetest.registered_nodes["mcl_core:wood"]._mcl_blast_resistance,
|
||||
wood_connect, node_sound)
|
||||
|
||||
local gate_id = mcl_fences.register_fence_gate(
|
||||
id,
|
||||
S("Bamboo Fence Gate"),
|
||||
"mcl_bamboo_fence_gate_bamboo.png",
|
||||
wood_groups,
|
||||
minetest.registered_nodes["mcl_core:wood"]._mcl_hardness,
|
||||
minetest.registered_nodes["mcl_core:wood"]._mcl_blast_resistance,
|
||||
node_sound) -- note: about missing params.. will use defaults.
|
||||
|
||||
mcl_bamboo.mcl_log(dump(fence_id))
|
||||
mcl_bamboo.mcl_log(dump(gate_id))
|
||||
end
|
||||
|
||||
if minetest.get_modpath("mesecons_button") then
|
||||
if mesecon ~= nil then
|
||||
mesecon.register_button(
|
||||
"bamboo",
|
||||
S("Bamboo Button"),
|
||||
"mcl_bamboo_bamboo_plank.png",
|
||||
BAMBOO_PLANK,
|
||||
node_sound,
|
||||
{ material_wood = 1, handy = 1, pickaxey = 1, flammable = 3, fire_flammability = 20, fire_encouragement = 5, },
|
||||
1,
|
||||
false,
|
||||
S("A bamboo button is a redstone component made out of bamboo which can be pushed to provide redstone power. When pushed, it powers adjacent redstone components for 1 second."),
|
||||
"mesecons_button_push")
|
||||
end
|
||||
end
|
||||
|
||||
if minetest.get_modpath("mcl_stairs") then
|
||||
if mcl_stairs ~= nil then
|
||||
mcl_stairs.register_stair_and_slab_simple(
|
||||
"bamboo_mosaic",
|
||||
"mcl_bamboo:bamboo_mosaic",
|
||||
S("Bamboo Mosaic Stair"),
|
||||
S("Bamboo Mosaic Slab"),
|
||||
S("Double Bamboo Mosaic Slab")
|
||||
)
|
||||
end
|
||||
end
|
||||
|
||||
local disallow_on_rotate
|
||||
if minetest.get_modpath("screwdriver") then
|
||||
disallow_on_rotate = screwdriver.disallow
|
||||
|
|
Loading…
Reference in New Issue