Prismarine, sealantern, sponge, sign: Hardness set

This commit is contained in:
Wuzzy 2017-02-27 01:45:25 +01:00
parent ed1c5b78a2
commit 0cb1a39c33
3 changed files with 17 additions and 7 deletions

View file

@ -15,9 +15,10 @@ minetest.register_node("mcl_ocean:sea_lantern", {
} }
}, },
tiles = {{name="mcl_ocean_sea_lantern.png", animation={type="vertical_frames", aspect_w=32, aspect_h=32, length=1.25}}}, tiles = {{name="mcl_ocean_sea_lantern.png", animation={type="vertical_frames", aspect_w=32, aspect_h=32, length=1.25}}},
groups = {oddly_breakable_by_hand=3, building_block=1}, groups = {handy=1, building_block=1},
sounds = mcl_sounds.node_sound_glass_defaults(), sounds = mcl_sounds.node_sound_glass_defaults(),
_mcl_blast_resistance = 1.5, _mcl_blast_resistance = 1.5,
_mcl_hardness = 0.3,
}) })
minetest.register_node("mcl_ocean:prismarine", { minetest.register_node("mcl_ocean:prismarine", {
@ -25,9 +26,10 @@ minetest.register_node("mcl_ocean:prismarine", {
stack_max = 64, stack_max = 64,
is_ground_content = false, is_ground_content = false,
tiles = {{name="mcl_ocean_prismarine_anim.png", animation={type="vertical_frames", aspect_w=32, aspect_h=32, length=45.0}}}, tiles = {{name="mcl_ocean_prismarine_anim.png", animation={type="vertical_frames", aspect_w=32, aspect_h=32, length=45.0}}},
groups = {cracky=3, building_block=1}, groups = {pickaxey=1, building_block=1},
sounds = mcl_sounds.node_sound_stone_defaults(), sounds = mcl_sounds.node_sound_stone_defaults(),
_mcl_blast_resistance = 30, _mcl_blast_resistance = 30,
_mcl_hardness = 1.5,
}) })
minetest.register_node("mcl_ocean:prismarine_brick", { minetest.register_node("mcl_ocean:prismarine_brick", {
@ -35,9 +37,10 @@ minetest.register_node("mcl_ocean:prismarine_brick", {
stack_max = 64, stack_max = 64,
is_ground_content = false, is_ground_content = false,
tiles = {"mcl_ocean_prismarine_bricks.png"}, tiles = {"mcl_ocean_prismarine_bricks.png"},
groups = {cracky=2, building_block=1}, groups = {pickaxey=1, building_block=1},
sounds = mcl_sounds.node_sound_stone_defaults(), sounds = mcl_sounds.node_sound_stone_defaults(),
_mcl_blast_resistance = 30, _mcl_blast_resistance = 30,
_mcl_hardness = 1.5,
}) })
minetest.register_node("mcl_ocean:prismarine_dark", { minetest.register_node("mcl_ocean:prismarine_dark", {
@ -45,9 +48,10 @@ minetest.register_node("mcl_ocean:prismarine_dark", {
stack_max = 64, stack_max = 64,
is_ground_content = false, is_ground_content = false,
tiles = {"mcl_ocean_prismarine_dark.png"}, tiles = {"mcl_ocean_prismarine_dark.png"},
groups = {cracky=2, building_block=1}, groups = {pickaxey=1, building_block=1},
sounds = mcl_sounds.node_sound_stone_defaults(), sounds = mcl_sounds.node_sound_stone_defaults(),
_mcl_blast_resistance = 30, _mcl_blast_resistance = 30,
_mcl_hardness = 1.5,
}) })
-- Craftitems -- Craftitems

View file

@ -10,7 +10,7 @@ minetest.register_node("mcl_sponges:sponge", {
buildable_to = false, buildable_to = false,
stack_max = 64, stack_max = 64,
sounds = mcl_sounds.node_sound_dirt_defaults(), sounds = mcl_sounds.node_sound_dirt_defaults(),
groups = {snappy=2,choppy=2,oddly_breakable_by_hand=3,building_block=1}, groups = {handy=1, building_block=1},
on_place = function(itemstack, placer, pointed_thing) on_place = function(itemstack, placer, pointed_thing)
local pn = placer:get_player_name() local pn = placer:get_player_name()
if pointed_thing.type ~= "node" then if pointed_thing.type ~= "node" then
@ -78,6 +78,7 @@ minetest.register_node("mcl_sponges:sponge", {
end, end,
_mcl_blast_resistance = 3, _mcl_blast_resistance = 3,
_mcl_hardness = 0.6,
}) })
minetest.register_node("mcl_sponges:sponge_wet", { minetest.register_node("mcl_sponges:sponge_wet", {
@ -92,8 +93,9 @@ minetest.register_node("mcl_sponges:sponge_wet", {
buildable_to = false, buildable_to = false,
stack_max = 64, stack_max = 64,
sounds = mcl_sounds.node_sound_dirt_defaults(), sounds = mcl_sounds.node_sound_dirt_defaults(),
groups = {snappy=2,choppy=2,oddly_breakable_by_hand=3,building_block=1}, groups = {handy=1, building_block=1},
_mcl_blast_resistance = 3, _mcl_blast_resistance = 3,
_mcl_hardness = 0.6,
}) })
minetest.register_craft({ minetest.register_craft({

View file

@ -137,7 +137,7 @@ local signs_yard = {
{delta = {x = 0.05, y = 0, z = 0}, yaw = math.pi / 2}, {delta = {x = 0.05, y = 0, z = 0}, yaw = math.pi / 2},
} }
local sign_groups = {choppy=2, flammable=1, deco_block=1} local sign_groups = {handy=1,axey=1, flammable=1, deco_block=1}
local construct_sign = function(pos) local construct_sign = function(pos)
local meta = minetest.get_meta(pos) local meta = minetest.get_meta(pos)
@ -265,6 +265,8 @@ minetest.register_node("signs:sign_wall", {
on_punch = function(pos, node, puncher) on_punch = function(pos, node, puncher)
update_sign(pos) update_sign(pos)
end, end,
_mcl_hardness = 1,
_mcl_blast_resistance = 5,
}) })
minetest.register_node("signs:sign_yard", { minetest.register_node("signs:sign_yard", {
@ -297,6 +299,8 @@ minetest.register_node("signs:sign_yard", {
on_punch = function(pos, node, puncher) on_punch = function(pos, node, puncher)
update_sign(pos) update_sign(pos)
end, end,
_mcl_hardness = 1,
_mcl_blast_resistance = 5,
}) })
minetest.register_entity("signs:text", { minetest.register_entity("signs:text", {