forked from VoxeLibre/VoxeLibre
Revert "All wood-type and nether-type fences now match material's blast resistance"
I left it in from another branch, didn't want to force push.
This reverts commit a1e20f2916
.
This commit is contained in:
parent
f9c404dc69
commit
e7457b9ea8
|
@ -192,23 +192,10 @@ if minetest.get_modpath("mcl_fences") then
|
||||||
local wood_groups = { handy = 1, axey = 1, flammable = 2, fence_wood = 1, fire_encouragement = 5, fire_flammability = 20 }
|
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_connect = { "group:fence_wood" }
|
||||||
|
|
||||||
local fence_id = mcl_fences.register_fence(
|
local fence_id = mcl_fences.register_fence(id, S("Bamboo Fence"), "mcl_bamboo_fence_bamboo.png", wood_groups,
|
||||||
id,
|
2, 15, wood_connect, node_sound)
|
||||||
S("Bamboo Fence"),
|
local gate_id = mcl_fences.register_fence_gate(id, S("Bamboo Fence Gate"), "mcl_bamboo_fence_gate_bamboo.png",
|
||||||
"mcl_bamboo_fence_bamboo.png",
|
wood_groups, 2, 15, node_sound) -- note: about missing params.. will use defaults.
|
||||||
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(fence_id))
|
||||||
mcl_bamboo.mcl_log(dump(gate_id))
|
mcl_bamboo.mcl_log(dump(gate_id))
|
||||||
|
|
|
@ -66,16 +66,9 @@ mcl_signs.register_sign_custom("mcl_cherry_blossom", "_cherrywood",
|
||||||
"mcl_cherry_blossom_sign_inv.png", "mcl_cherry_blossom_sign_inv.png", S("Cherry Sign"))
|
"mcl_cherry_blossom_sign_inv.png", "mcl_cherry_blossom_sign_inv.png", S("Cherry Sign"))
|
||||||
|
|
||||||
-- Fences & Gates
|
-- Fences & Gates
|
||||||
mcl_fences.register_fence_and_fence_gate(
|
mcl_fences.register_fence_and_fence_gate("cherry_fence", S("Cherry Fence"), S("Cherry Gate"),
|
||||||
"cherry_fence",
|
"mcl_cherry_blossom_planks.png", {handy=1, axey=1, flammable=2, fence_wood=1, fire_encouragement=5, fire_flammability=20}, 2, 15,
|
||||||
S("Cherry Fence"),
|
{"group:fence_wood"}, mcl_sounds.node_sound_wood_defaults())
|
||||||
S("Cherry Gate"),
|
|
||||||
"mcl_cherry_blossom_planks.png",
|
|
||||||
{handy=1, axey=1, flammable=2, fence_wood=1, fire_encouragement=5, fire_flammability=20},
|
|
||||||
minetest.registered_nodes["mcl_core:wood"]._mcl_hardness,
|
|
||||||
minetest.registered_nodes["mcl_core:wood"]._mcl_blast_resistance,
|
|
||||||
{"group:fence_wood"},
|
|
||||||
mcl_sounds.node_sound_wood_defaults())
|
|
||||||
|
|
||||||
-- Redstone
|
-- Redstone
|
||||||
mesecon.register_pressure_plate(
|
mesecon.register_pressure_plate(
|
||||||
|
|
|
@ -269,16 +269,7 @@ for w=1, #woods do
|
||||||
id = wood[1].."_fence"
|
id = wood[1].."_fence"
|
||||||
id_gate = wood[1].."_fence_gate"
|
id_gate = wood[1].."_fence_gate"
|
||||||
end
|
end
|
||||||
mcl_fences.register_fence_and_fence_gate(
|
mcl_fences.register_fence_and_fence_gate(id, wood[2], wood[3], wood[4], wood_groups, 2, 15, wood_connect, wood_sounds)
|
||||||
id,
|
|
||||||
wood[2],
|
|
||||||
wood[3],
|
|
||||||
wood[4],
|
|
||||||
wood_groups,
|
|
||||||
minetest.registered_nodes["mcl_core:wood"]._mcl_hardness,
|
|
||||||
minetest.registered_nodes["mcl_core:wood"]._mcl_blast_resistance,
|
|
||||||
wood_connect,
|
|
||||||
wood_sounds)
|
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "mcl_fences:"..id.." 3",
|
output = "mcl_fences:"..id.." 3",
|
||||||
|
@ -298,15 +289,7 @@ end
|
||||||
|
|
||||||
|
|
||||||
-- Nether Brick Fence (without fence gate!)
|
-- Nether Brick Fence (without fence gate!)
|
||||||
mcl_fences.register_fence(
|
mcl_fences.register_fence("nether_brick_fence", S("Nether Brick Fence"), "mcl_fences_fence_nether_brick.png", {pickaxey=1, deco_block=1, fence_nether_brick=1}, 2, 30, {"group:fence_nether_brick"}, mcl_sounds.node_sound_stone_defaults())
|
||||||
"nether_brick_fence",
|
|
||||||
S("Nether Brick Fence"),
|
|
||||||
"mcl_fences_fence_nether_brick.png",
|
|
||||||
{pickaxey=1, deco_block=1, fence_nether_brick=1},
|
|
||||||
minetest.registered_nodes["mcl_nether:nether_brick"]._mcl_hardness,
|
|
||||||
minetest.registered_nodes["mcl_nether:nether_brick"]._mcl_blast_resistance,
|
|
||||||
{"group:fence_nether_brick"},
|
|
||||||
mcl_sounds.node_sound_stone_defaults())
|
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "mcl_fences:nether_brick_fence 6",
|
output = "mcl_fences:nether_brick_fence 6",
|
||||||
|
|
Loading…
Reference in New Issue