Tweak digging timer for old chests and coffins
parent
396608ad98
commit
1848a7a6d2
|
@ -27,7 +27,7 @@ minetest.register_node("coffin:coffin", {
|
||||||
"coffin_side.png",
|
"coffin_side.png",
|
||||||
},
|
},
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
groups = {dig_immediate = 2},
|
groups = {choppy = default.dig.old_chest},
|
||||||
sounds = default.node_sound_wood_defaults({
|
sounds = default.node_sound_wood_defaults({
|
||||||
dug = {name = "ruins_chest_break", gain = 0.6},
|
dug = {name = "ruins_chest_break", gain = 0.6},
|
||||||
}),
|
}),
|
||||||
|
|
|
@ -32,7 +32,7 @@ default.dig = {
|
||||||
netherbrick = 17,
|
netherbrick = 17,
|
||||||
redstone_ore = 18,
|
redstone_ore = 18,
|
||||||
brick = 19,
|
brick = 19,
|
||||||
pressure_plate_stone = 20,--+stonebrick,hardclay,grass
|
pressure_plate_stone = 20,--+stonebrick
|
||||||
|
|
||||||
-- Crumbly (shovel)
|
-- Crumbly (shovel)
|
||||||
dirt_with_grass = 1,
|
dirt_with_grass = 1,
|
||||||
|
@ -46,7 +46,7 @@ default.dig = {
|
||||||
hardclay = 9,
|
hardclay = 9,
|
||||||
|
|
||||||
-- Choppy (axe)
|
-- Choppy (axe)
|
||||||
tree = 1,--+deadtree
|
tree = 1,
|
||||||
wood = 2,
|
wood = 2,
|
||||||
bookshelf = 3,
|
bookshelf = 3,
|
||||||
fence = 4,
|
fence = 4,
|
||||||
|
@ -56,6 +56,7 @@ default.dig = {
|
||||||
workbench = 8,
|
workbench = 8,
|
||||||
pressure_plate_wood=9,
|
pressure_plate_wood=9,
|
||||||
deadtree = 10,
|
deadtree = 10,
|
||||||
|
old_chest = 11,
|
||||||
|
|
||||||
-- Snappy (shears)
|
-- Snappy (shears)
|
||||||
leaves = 1,
|
leaves = 1,
|
||||||
|
|
|
@ -26,6 +26,7 @@ local function get_groupcaps(uses, group, table)
|
||||||
[default.dig.workbench] = 3.75,
|
[default.dig.workbench] = 3.75,
|
||||||
[default.dig.pressure_plate_wood] = 0.75,
|
[default.dig.pressure_plate_wood] = 0.75,
|
||||||
[default.dig.deadtree] = 1.5,
|
[default.dig.deadtree] = 1.5,
|
||||||
|
[default.dig.old_chest] = 1.5,
|
||||||
}, uses=uses},
|
}, uses=uses},
|
||||||
snappy = {times={
|
snappy = {times={
|
||||||
[default.dig.leaves] = 0.3,
|
[default.dig.leaves] = 0.3,
|
||||||
|
@ -327,6 +328,7 @@ minetest.register_tool("default:axe_wood", {
|
||||||
[default.dig.workbench] = 1.9,
|
[default.dig.workbench] = 1.9,
|
||||||
[default.dig.pressure_plate_wood] = 0.4,
|
[default.dig.pressure_plate_wood] = 0.4,
|
||||||
[default.dig.deadtree] = 0.75,
|
[default.dig.deadtree] = 0.75,
|
||||||
|
[default.dig.old_chest] = 0.75,
|
||||||
}, uses=60/3}
|
}, uses=60/3}
|
||||||
),
|
),
|
||||||
full_punch_interval = 1,
|
full_punch_interval = 1,
|
||||||
|
@ -349,6 +351,7 @@ minetest.register_tool("default:axe_stone", {
|
||||||
[default.dig.workbench] = 0.95,
|
[default.dig.workbench] = 0.95,
|
||||||
[default.dig.pressure_plate_wood] = 0.2,
|
[default.dig.pressure_plate_wood] = 0.2,
|
||||||
[default.dig.deadtree] = 0.4,
|
[default.dig.deadtree] = 0.4,
|
||||||
|
[default.dig.old_chest] = 0.4,
|
||||||
}, uses=132/3}
|
}, uses=132/3}
|
||||||
),
|
),
|
||||||
full_punch_interval = 1,
|
full_punch_interval = 1,
|
||||||
|
@ -371,6 +374,7 @@ minetest.register_tool("default:axe_iron", {
|
||||||
[default.dig.workbench] = 0.65,
|
[default.dig.workbench] = 0.65,
|
||||||
[default.dig.pressure_plate_wood] = 0.15,
|
[default.dig.pressure_plate_wood] = 0.15,
|
||||||
[default.dig.deadtree] = 0.25,
|
[default.dig.deadtree] = 0.25,
|
||||||
|
[default.dig.old_chest] = 0.25,
|
||||||
}, uses=251/3}
|
}, uses=251/3}
|
||||||
),
|
),
|
||||||
full_punch_interval = 1,
|
full_punch_interval = 1,
|
||||||
|
@ -393,6 +397,7 @@ minetest.register_tool("default:axe_diamond", {
|
||||||
[default.dig.workbench] = 0.5,
|
[default.dig.workbench] = 0.5,
|
||||||
[default.dig.pressure_plate_wood] = 0.1,
|
[default.dig.pressure_plate_wood] = 0.1,
|
||||||
[default.dig.deadtree] = 0.2,
|
[default.dig.deadtree] = 0.2,
|
||||||
|
[default.dig.old_chest] = 0.2,
|
||||||
}, uses=1562/3}
|
}, uses=1562/3}
|
||||||
),
|
),
|
||||||
full_punch_interval = 1,
|
full_punch_interval = 1,
|
||||||
|
@ -415,6 +420,7 @@ minetest.register_tool("default:axe_gold", {
|
||||||
[default.dig.workbench] = 0.35,
|
[default.dig.workbench] = 0.35,
|
||||||
[default.dig.pressure_plate_wood] = 0.1,
|
[default.dig.pressure_plate_wood] = 0.1,
|
||||||
[default.dig.deadtree] = 0.15,
|
[default.dig.deadtree] = 0.15,
|
||||||
|
[default.dig.old_chest] = 0.15,
|
||||||
}, uses=33/3}
|
}, uses=33/3}
|
||||||
),
|
),
|
||||||
full_punch_interval = 1,
|
full_punch_interval = 1,
|
||||||
|
@ -440,6 +446,7 @@ minetest.register_tool("default:sword_wood", {
|
||||||
damage_groups = {fleshy=2},
|
damage_groups = {fleshy=2},
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_tool("default:sword_stone", {
|
minetest.register_tool("default:sword_stone", {
|
||||||
description = "Stone Sword",
|
description = "Stone Sword",
|
||||||
inventory_image = "default_tool_stonesword.png",
|
inventory_image = "default_tool_stonesword.png",
|
||||||
|
@ -454,6 +461,7 @@ minetest.register_tool("default:sword_stone", {
|
||||||
damage_groups = {fleshy=4},
|
damage_groups = {fleshy=4},
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_tool("default:sword_iron", {
|
minetest.register_tool("default:sword_iron", {
|
||||||
description = "Iron Sword",
|
description = "Iron Sword",
|
||||||
inventory_image = "default_tool_ironsword.png",
|
inventory_image = "default_tool_ironsword.png",
|
||||||
|
@ -468,20 +476,7 @@ minetest.register_tool("default:sword_iron", {
|
||||||
damage_groups = {fleshy=6},
|
damage_groups = {fleshy=6},
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
minetest.register_tool("default:sword_diamond", {
|
|
||||||
description = "Diamond Sword",
|
|
||||||
inventory_image = "default_tool_diamondsword.png",
|
|
||||||
tool_capabilities = {
|
|
||||||
groupcaps = get_groupcaps(551, "snappy",
|
|
||||||
{times={
|
|
||||||
[default.dig.leaves] = 0.2,
|
|
||||||
[default.dig.wool] = 1.2,
|
|
||||||
}, uses=551/3}
|
|
||||||
),
|
|
||||||
full_punch_interval = 1,
|
|
||||||
damage_groups = {fleshy=8},
|
|
||||||
}
|
|
||||||
})
|
|
||||||
minetest.register_tool("default:sword_gold", {
|
minetest.register_tool("default:sword_gold", {
|
||||||
description = "Gold Sword",
|
description = "Gold Sword",
|
||||||
inventory_image = "default_tool_goldsword.png",
|
inventory_image = "default_tool_goldsword.png",
|
||||||
|
@ -496,3 +491,18 @@ minetest.register_tool("default:sword_gold", {
|
||||||
damage_groups = {fleshy=7},
|
damage_groups = {fleshy=7},
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
minetest.register_tool("default:sword_diamond", {
|
||||||
|
description = "Diamond Sword",
|
||||||
|
inventory_image = "default_tool_diamondsword.png",
|
||||||
|
tool_capabilities = {
|
||||||
|
groupcaps = get_groupcaps(551, "snappy",
|
||||||
|
{times={
|
||||||
|
[default.dig.leaves] = 0.2,
|
||||||
|
[default.dig.wool] = 1.2,
|
||||||
|
}, uses=551/3}
|
||||||
|
),
|
||||||
|
full_punch_interval = 1.8,
|
||||||
|
damage_groups = {fleshy=8},
|
||||||
|
}
|
||||||
|
})
|
|
@ -14,10 +14,10 @@ minetest.register_node("ruins:chest", {
|
||||||
tiles = {"ruins_chest_top.png", "ruins_chest_top.png", "ruins_chest_side.png",
|
tiles = {"ruins_chest_top.png", "ruins_chest_top.png", "ruins_chest_side.png",
|
||||||
"ruins_chest_side.png", "ruins_chest_side.png", "ruins_chest_front.png"},
|
"ruins_chest_side.png", "ruins_chest_side.png", "ruins_chest_front.png"},
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
groups = {choppy = 2, oddly_breakable_by_hand = 2},
|
groups = {choppy = default.dig.old_chest},
|
||||||
legacy_facedir_simple = true,
|
legacy_facedir_simple = true,
|
||||||
sounds = default.node_sound_wood_defaults({
|
sounds = default.node_sound_wood_defaults({
|
||||||
dug = {name = "ruins_chest_break", gain = 0.6},
|
dug = {name = "ruins_chest_break", gain = 0.8},
|
||||||
}),
|
}),
|
||||||
drop = "default:stick 2",
|
drop = "default:stick 2",
|
||||||
on_construct = function(pos)
|
on_construct = function(pos)
|
||||||
|
|
Loading…
Reference in New Issue