mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-19 01:21:05 +01:00
Fix digging times for walls
This commit is contained in:
parent
77cb90f8d5
commit
051799bb3d
1 changed files with 6 additions and 2 deletions
|
@ -87,14 +87,14 @@ local full_blocks = {
|
||||||
* craft_material: Material for the default crafting recipe (optional)
|
* craft_material: Material for the default crafting recipe (optional)
|
||||||
* tiles: Wall textures table
|
* tiles: Wall textures table
|
||||||
* inventory_image: Inventory image (optional)
|
* inventory_image: Inventory image (optional)
|
||||||
* groups: Base group memberships (optional, default is {cracky=3})
|
* groups: Base group memberships (optional, default is {pickaxey=1})
|
||||||
* sounds: Sound table (optional, default is stone)
|
* sounds: Sound table (optional, default is stone)
|
||||||
]]
|
]]
|
||||||
function mcl_walls.register_wall(nodename, description, craft_material, tiles, inventory_image, groups, sounds)
|
function mcl_walls.register_wall(nodename, description, craft_material, tiles, inventory_image, groups, sounds)
|
||||||
|
|
||||||
local base_groups = groups
|
local base_groups = groups
|
||||||
if not base_groups then
|
if not base_groups then
|
||||||
base_groups = {cracky=3}
|
base_groups = {pickaxey=1}
|
||||||
end
|
end
|
||||||
base_groups.wall = 1
|
base_groups.wall = 1
|
||||||
|
|
||||||
|
@ -154,6 +154,7 @@ function mcl_walls.register_wall(nodename, description, craft_material, tiles, i
|
||||||
},
|
},
|
||||||
sounds = sounds,
|
sounds = sounds,
|
||||||
_mcl_blast_resistance = 30,
|
_mcl_blast_resistance = 30,
|
||||||
|
_mcl_hardness = 2,
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -174,6 +175,7 @@ function mcl_walls.register_wall(nodename, description, craft_material, tiles, i
|
||||||
},
|
},
|
||||||
sounds = sounds,
|
sounds = sounds,
|
||||||
_mcl_blast_resistance = 30,
|
_mcl_blast_resistance = 30,
|
||||||
|
_mcl_hardness = 2,
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_node(nodename.."_21", {
|
minetest.register_node(nodename.."_21", {
|
||||||
|
@ -193,6 +195,7 @@ function mcl_walls.register_wall(nodename, description, craft_material, tiles, i
|
||||||
},
|
},
|
||||||
sounds = sounds,
|
sounds = sounds,
|
||||||
_mcl_blast_resistance = 30,
|
_mcl_blast_resistance = 30,
|
||||||
|
_mcl_hardness = 2,
|
||||||
})
|
})
|
||||||
|
|
||||||
-- Inventory item
|
-- Inventory item
|
||||||
|
@ -217,6 +220,7 @@ function mcl_walls.register_wall(nodename, description, craft_material, tiles, i
|
||||||
on_construct = update_wall,
|
on_construct = update_wall,
|
||||||
sounds = sounds,
|
sounds = sounds,
|
||||||
_mcl_blast_resistance = 30,
|
_mcl_blast_resistance = 30,
|
||||||
|
_mcl_hardness = 2,
|
||||||
})
|
})
|
||||||
if craft_material then
|
if craft_material then
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
|
|
Loading…
Reference in a new issue