mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-12-26 09:59:33 +01:00
Begin: make bamboo dig-able by Pistons for Farm Creation.
This commit is contained in:
parent
7d46fa3362
commit
83bc60722d
2 changed files with 27 additions and 27 deletions
|
@ -29,7 +29,7 @@ local bamboo_def = {
|
|||
tiles = {"mcl_bamboo_bamboo_bottom.png", "mcl_bamboo_bamboo_bottom.png", "mcl_bamboo_bamboo.png"},
|
||||
drawtype = "nodebox",
|
||||
paramtype = "light",
|
||||
groups = {handy = 1, axey = 1, choppy = 1, flammable = 3},
|
||||
groups = {handy = 1, axey = 1, choppy = 1, dig_by_piston = 1, plant = 1, non_mycelium_plant = 1, flammable = 3},
|
||||
sounds = node_sound,
|
||||
|
||||
drop = {
|
||||
|
|
|
@ -35,9 +35,9 @@ if minetest.get_modpath("mcl_flowerpots") then
|
|||
if mcl_flowerpots ~= nil then
|
||||
-- Flower-potted Bamboo...
|
||||
local flwr_name = BAMBOO
|
||||
local flwr_def = {name = "bamboo_plant",
|
||||
desc = S("Bamboo"),
|
||||
image = "mcl_bamboo_bamboo_fpm.png", -- use with "register_potted_cube"
|
||||
local flwr_def = { name = "bamboo_plant",
|
||||
desc = S("Bamboo"),
|
||||
image = "mcl_bamboo_bamboo_fpm.png", -- use with "register_potted_cube"
|
||||
-- "mcl_bamboo_flower_pot.png", -- use with "register_potted_flower"
|
||||
}
|
||||
|
||||
|
@ -53,11 +53,11 @@ if minetest.get_modpath("mcl_doors") then
|
|||
local bot_door_tiles = {}
|
||||
|
||||
if BROKEN_DOORS then
|
||||
top_door_tiles = {"mcl_bamboo_door_top_alt.png", "mcl_bamboo_door_top.png"}
|
||||
bot_door_tiles = {"mcl_bamboo_door_bottom_alt.png", "mcl_bamboo_door_bottom.png"}
|
||||
top_door_tiles = { "mcl_bamboo_door_top_alt.png", "mcl_bamboo_door_top.png" }
|
||||
bot_door_tiles = { "mcl_bamboo_door_bottom_alt.png", "mcl_bamboo_door_bottom.png" }
|
||||
else
|
||||
top_door_tiles = {"mcl_bamboo_door_top.png", "mcl_bamboo_door_top.png"}
|
||||
bot_door_tiles = {"mcl_bamboo_door_bottom.png", "mcl_bamboo_door_bottom.png"}
|
||||
top_door_tiles = { "mcl_bamboo_door_top.png", "mcl_bamboo_door_top.png" }
|
||||
bot_door_tiles = { "mcl_bamboo_door_bottom.png", "mcl_bamboo_door_bottom.png" }
|
||||
end
|
||||
|
||||
local name = "mcl_bamboo:bamboo_door"
|
||||
|
@ -65,7 +65,7 @@ if minetest.get_modpath("mcl_doors") then
|
|||
description = S("Bamboo Door."),
|
||||
inventory_image = "mcl_bamboo_door_wield.png",
|
||||
wield_image = "mcl_bamboo_door_wield.png",
|
||||
groups = {handy = 1, axey = 1, material_wood = 1, flammable = -1},
|
||||
groups = { handy = 1, axey = 1, material_wood = 1, flammable = -1 },
|
||||
_mcl_hardness = 3,
|
||||
_mcl_blast_resistance = 3,
|
||||
tiles_bottom = bot_door_tiles,
|
||||
|
@ -86,7 +86,7 @@ if minetest.get_modpath("mcl_doors") then
|
|||
_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",
|
||||
inventory_image = "mcl_bamboo_trapdoor_side.png",
|
||||
groups = {handy = 1, axey = 1, mesecon_effector_on = 1, material_wood = 1, flammable = -1},
|
||||
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(),
|
||||
|
@ -137,7 +137,7 @@ if minetest.get_modpath("mcl_stairs") then
|
|||
fire_flammability = 20
|
||||
}
|
||||
|
||||
minetest.override_item(bamboo_plank_slab, {groups = node_groups})
|
||||
minetest.override_item(bamboo_plank_slab, { groups = node_groups })
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -168,13 +168,13 @@ if minetest.get_modpath("mesecons_pressureplates") then
|
|||
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" },
|
||||
{ "mcl_bamboo_bamboo_plank.png" },
|
||||
"mcl_bamboo_bamboo_plank.png",
|
||||
nil,
|
||||
{{BAMBOO_PLANK, BAMBOO_PLANK}},
|
||||
{ { BAMBOO_PLANK, BAMBOO_PLANK } },
|
||||
mcl_sounds.node_sound_wood_defaults(),
|
||||
{axey = 1, material_wood = 1},
|
||||
{ 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."))
|
||||
|
||||
|
@ -204,8 +204,8 @@ 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 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,
|
||||
2, 15, wood_connect, node_sound)
|
||||
|
@ -224,7 +224,7 @@ if minetest.get_modpath("mesecons_button") then
|
|||
"mcl_bamboo_bamboo_plank.png",
|
||||
BAMBOO_PLANK,
|
||||
node_sound,
|
||||
{material_wood = 1, handy = 1, pickaxey = 1, flammable = 3, fire_flammability = 20, fire_encouragement = 5, },
|
||||
{ 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 stone which can be pushed to provide redstone power. When pushed, it powers adjacent redstone components for 1 second."),
|
||||
|
@ -253,24 +253,24 @@ minetest.register_node(SCAFFOLDING_NAME, {
|
|||
description = S("Scaffolding"),
|
||||
doc_items_longdesc = S("Scaffolding block used to climb up or out across areas."),
|
||||
doc_items_hidden = false,
|
||||
tiles = {"mcl_bamboo_scaffolding_top.png", "mcl_bamboo_scaffolding_top.png", "mcl_bamboo_scaffolding_bottom.png"},
|
||||
tiles = { "mcl_bamboo_scaffolding_top.png", "mcl_bamboo_scaffolding_top.png", "mcl_bamboo_scaffolding_bottom.png" },
|
||||
drawtype = "nodebox",
|
||||
paramtype = "light",
|
||||
use_texture_alpha = "clip",
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{-0.5, 0.375, -0.5, 0.5, 0.5, 0.5},
|
||||
{-0.5, -0.5, -0.5, -0.375, 0.5, -0.375},
|
||||
{0.375, -0.5, -0.5, 0.5, 0.5, -0.375},
|
||||
{0.375, -0.5, 0.375, 0.5, 0.5, 0.5},
|
||||
{-0.5, -0.5, 0.375, -0.375, 0.5, 0.5},
|
||||
{ -0.5, 0.375, -0.5, 0.5, 0.5, 0.5 },
|
||||
{ -0.5, -0.5, -0.5, -0.375, 0.5, -0.375 },
|
||||
{ 0.375, -0.5, -0.5, 0.5, 0.5, -0.375 },
|
||||
{ 0.375, -0.5, 0.375, 0.5, 0.5, 0.5 },
|
||||
{ -0.5, -0.5, 0.375, -0.375, 0.5, 0.5 },
|
||||
}
|
||||
},
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{-0.5, -0.5, -0.5, 0.5, 0.5, 0.5},
|
||||
{ -0.5, -0.5, -0.5, 0.5, 0.5, 0.5 },
|
||||
},
|
||||
},
|
||||
buildable_to = false,
|
||||
|
@ -279,7 +279,7 @@ minetest.register_node(SCAFFOLDING_NAME, {
|
|||
climbable = true,
|
||||
physical = true,
|
||||
node_placement_prediction = "",
|
||||
groups = {handy = 1, axey = 1, flammable = 3, building_block = 1, material_wood = 1, fire_encouragement = 5, fire_flammability = 20, falling_node = 1, stack_falling = 1},
|
||||
groups = { handy = 1, axey = 1, flammable = 3, building_block = 1, material_wood = 1, fire_encouragement = 5, fire_flammability = 20, dig_by_piston = 1, falling_node = 1, stack_falling = 1 },
|
||||
sounds = mcl_sounds.node_sound_wood_defaults(),
|
||||
_mcl_blast_resistance = 0,
|
||||
_mcl_hardness = 0,
|
||||
|
@ -319,7 +319,7 @@ minetest.register_node(SCAFFOLDING_NAME, {
|
|||
local dir = vector.subtract(pointed.under, pointed.above)
|
||||
local wdir = minetest.dir_to_wallmounted(dir)
|
||||
if wdir == 1 then
|
||||
minetest.set_node(pointed.above, {name = SCAFFOLDING_NAME, param2 = 0})
|
||||
minetest.set_node(pointed.above, { name = SCAFFOLDING_NAME, param2 = 0 })
|
||||
if not minetest.is_creative_enabled(placer:get_player_name()) then
|
||||
itemstack:take_item(1)
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue