mirror of
https://github.com/minetest-mods/pontoons.git
synced 2025-04-30 13:21:40 -04:00
found and fixed issue with mcl2: metal pontoon unbreakable by pickaxe (#1)
applied same values as mcl2 iron block, retested again under both games in non-creative.
This commit is contained in:
parent
960d442f95
commit
40d99604a9
1 changed files with 9 additions and 3 deletions
12
init.lua
12
init.lua
|
@ -10,10 +10,13 @@ if mineclone_path then -- means MineClone 2 is loaded, this is its core mod
|
||||||
moditems.iron_item = "mcl_core:iron_ingot" -- MCL iron
|
moditems.iron_item = "mcl_core:iron_ingot" -- MCL iron
|
||||||
moditems.sounds_wood = mcl_sounds.node_sound_wood_defaults
|
moditems.sounds_wood = mcl_sounds.node_sound_wood_defaults
|
||||||
moditems.sounds_metal = mcl_sounds.node_sound_metal_defaults
|
moditems.sounds_metal = mcl_sounds.node_sound_metal_defaults
|
||||||
else -- fallback, assume default (MineTest Game) is loaded, otherwise it will error anyway here.
|
moditems.metal_block_group = { pickaxey=2 }
|
||||||
|
|
||||||
|
elseif default_modpath then -- fallback, assume default (MineTest Game) is loaded, otherwise it will error anyway here.
|
||||||
moditems.iron_item = "default:steel_ingot" -- default iron
|
moditems.iron_item = "default:steel_ingot" -- default iron
|
||||||
moditems.sounds_wood = default.node_sound_wood_defaults
|
moditems.sounds_wood = default.node_sound_wood_defaults
|
||||||
moditems.sounds_metal = default.node_sound_metal_defaults
|
moditems.sounds_metal = default.node_sound_metal_defaults
|
||||||
|
moditems.metal_block_group = { cracky = 1, level = 2 }
|
||||||
end
|
end
|
||||||
|
|
||||||
-- load settings from minetest
|
-- load settings from minetest
|
||||||
|
@ -59,6 +62,8 @@ if pontoons_wood_pontoons then
|
||||||
liquids_pointable = true,
|
liquids_pointable = true,
|
||||||
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2, wood = 1},
|
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2, wood = 1},
|
||||||
sounds = moditems.sounds_wood(),
|
sounds = moditems.sounds_wood(),
|
||||||
|
_mcl_blast_resistance = 3,
|
||||||
|
_mcl_hardness = 0.6,
|
||||||
})
|
})
|
||||||
|
|
||||||
-- modify recipe, if "airtank" mod is loaded as it has similar recipe and conflicts with pontoons.
|
-- modify recipe, if "airtank" mod is loaded as it has similar recipe and conflicts with pontoons.
|
||||||
|
@ -99,9 +104,10 @@ if pontoons_steel_pontoons then
|
||||||
is_ground_content = false,
|
is_ground_content = false,
|
||||||
tiles = {"pontoon_steel.png"},
|
tiles = {"pontoon_steel.png"},
|
||||||
liquids_pointable = true,
|
liquids_pointable = true,
|
||||||
is_ground_content = false,
|
groups = moditems.metal_block_group,
|
||||||
groups = {cracky = 1, level = 2},
|
|
||||||
sounds = moditems.sounds_metal(),
|
sounds = moditems.sounds_metal(),
|
||||||
|
_mcl_blast_resistance = 30,
|
||||||
|
_mcl_hardness = 5,
|
||||||
})
|
})
|
||||||
|
|
||||||
if default_modpath then
|
if default_modpath then
|
||||||
|
|
Loading…
Add table
Reference in a new issue