mirror of
https://git.minetest.land/Mineclonia/Mineclonia.git
synced 2024-11-17 13:15:10 +00:00
Hardness for the last remaining items
This commit is contained in:
parent
78fcc61759
commit
4ec6f5a3ec
10 changed files with 37 additions and 21 deletions
|
@ -11,7 +11,7 @@ minetest.register_node("mobs:spawner", {
|
|||
paramtype = "light",
|
||||
walkable = true,
|
||||
description = S("Monster Spawner"),
|
||||
groups = {cracky = 1, not_in_creative_inventory = 1},
|
||||
groups = {pickaxey=1, not_in_creative_inventory = 1},
|
||||
drop = "",
|
||||
|
||||
on_construct = function(pos)
|
||||
|
@ -72,6 +72,7 @@ minetest.register_node("mobs:spawner", {
|
|||
end,
|
||||
sounds = mcl_sounds.node_sound_metal_defaults(),
|
||||
_mcl_blast_resistance = 25,
|
||||
_mcl_hardness = 5,
|
||||
})
|
||||
|
||||
-- spawner abm
|
||||
|
|
|
@ -155,11 +155,13 @@ minetest.register_node("crafting:workbench", {
|
|||
"crafting_workbench_side.png", "crafting_workbench_front.png", "crafting_workbench_front.png"},
|
||||
paramtype2 = "facedir",
|
||||
paramtype = "light",
|
||||
groups = {choppy=2,oddly_breakable_by_hand=2,deco_block=1},
|
||||
groups = {handy=1,axey=1, deco_block=1},
|
||||
on_rightclick = function(pos, node, clicker, itemstack)
|
||||
set_workbench(clicker)
|
||||
end,
|
||||
sounds = mcl_sounds.node_sound_wood_defaults(),
|
||||
_mcl_blast_resistance = 12.5,
|
||||
_mcl_hardness = 2.5,
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
|
|
|
@ -177,7 +177,7 @@ end
|
|||
minetest.register_node("mesecons_commandblock:commandblock_off", {
|
||||
description = "Command Block",
|
||||
tiles = {{name="jeija_commandblock_off.png", animation={type="vertical_frames", aspect_w=32, aspect_h=32, length=2}}},
|
||||
groups = {mesecon_effector_off=1, not_in_creative_inventory=1, oddly_breakable_by_hand=5},
|
||||
groups = {creative_breakable=1, mesecon_effector_off=1, not_in_creative_inventory=1},
|
||||
drop = "",
|
||||
on_blast = function() end,
|
||||
on_construct = construct,
|
||||
|
@ -194,7 +194,7 @@ minetest.register_node("mesecons_commandblock:commandblock_off", {
|
|||
|
||||
minetest.register_node("mesecons_commandblock:commandblock_on", {
|
||||
tiles = {{name="jeija_commandblock_off.png", animation={type="vertical_frames", aspect_w=32, aspect_h=32, length=2}}},
|
||||
groups = {mesecon_effector_on=1, not_in_creative_inventory=1, oddly_breakable_by_hand=5},
|
||||
groups = {creative_breakable=1, mesecon_effector_on=1, not_in_creative_inventory=1},
|
||||
drop = "",
|
||||
on_blast = function() end,
|
||||
on_construct = construct,
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
minetest.register_node("mesecons_noteblock:noteblock", {
|
||||
description = "Note Block",
|
||||
tiles = {"mesecons_noteblock.png"},
|
||||
groups = {handy=1,axey=1, oddly_breakable_by_hand=2},
|
||||
groups = {handy=1,axey=1},
|
||||
drawtype = "allfaces_optional",
|
||||
visual_scale = 1.3,
|
||||
paramtype="light",
|
||||
|
|
|
@ -316,7 +316,7 @@ end
|
|||
doors:register_door("doors:door_wood", {
|
||||
description = "Oak Door",
|
||||
inventory_image = "door_wood.png",
|
||||
groups = {handy=1,axey=1,door=1},
|
||||
groups = {handy=1,axey=1, door=1},
|
||||
_mcl_hardness = 3,
|
||||
tiles_bottom = {"door_wood_b.png", "door_brown.png"},
|
||||
tiles_top = {"door_wood_a.png", "door_brown.png"},
|
||||
|
@ -336,7 +336,7 @@ minetest.register_craft({
|
|||
doors:register_door("doors:door_acacia", {
|
||||
description = "Acacia Door",
|
||||
inventory_image = "door_acacia.png",
|
||||
groups = {handy=1,axey=1,door=1},
|
||||
groups = {handy=1,axey=1, door=1},
|
||||
_mcl_hardness = 3,
|
||||
tiles_bottom = {"door_acacia_b.png", "door_brown.png"},
|
||||
tiles_top = {"door_acacia_a.png", "door_brown.png"},
|
||||
|
@ -356,7 +356,7 @@ minetest.register_craft({
|
|||
doors:register_door("doors:door_birch", {
|
||||
description = "Birch Door",
|
||||
inventory_image = "door_birch.png",
|
||||
groups = {handy=1,axey=1,door=1},
|
||||
groups = {handy=1,axey=1, door=1},
|
||||
_mcl_hardness = 3,
|
||||
tiles_bottom = {"door_birch_b.png", "door_brown.png"},
|
||||
tiles_top = {"door_birch_a.png", "door_brown.png"},
|
||||
|
@ -376,7 +376,7 @@ minetest.register_craft({
|
|||
doors:register_door("doors:door_dark_oak", {
|
||||
description = "Dark Oak Door",
|
||||
inventory_image = "door_dark_oak.png",
|
||||
groups = {handy=1,axey=1,door=1},
|
||||
groups = {handy=1,axey=1, door=1},
|
||||
_mcl_hardness = 3,
|
||||
tiles_bottom = {"door_dark_oak_b.png", "door_brown.png"},
|
||||
tiles_top = {"door_dark_oak_a.png", "door_brown.png"},
|
||||
|
@ -396,7 +396,7 @@ minetest.register_craft({
|
|||
doors:register_door("doors:door_jungle", {
|
||||
description = "Jungle Door",
|
||||
inventory_image = "door_jungle.png",
|
||||
groups = {handy=1,axey=1,door=1},
|
||||
groups = {handy=1,axey=1, door=1},
|
||||
_mcl_hardness = 3,
|
||||
tiles_bottom = {"door_jungle_b.png", "door_brown.png"},
|
||||
tiles_top = {"door_jungle_a.png", "door_brown.png"},
|
||||
|
@ -416,7 +416,7 @@ minetest.register_craft({
|
|||
doors:register_door("doors:door_spruce", {
|
||||
description = "Spruce Door",
|
||||
inventory_image = "door_spruce.png",
|
||||
groups = {handy=1,axey=1,door=1},
|
||||
groups = {handy=1,axey=1, door=1},
|
||||
_mcl_hardness = 3,
|
||||
tiles_bottom = {"door_spruce_b.png", "door_brown.png"},
|
||||
tiles_top = {"door_spruce_a.png", "door_brown.png"},
|
||||
|
@ -467,7 +467,7 @@ minetest.register_craft({
|
|||
doors:register_door("doors:door_iron", {
|
||||
description = "Iron Door",
|
||||
inventory_image = "door_steel.png",
|
||||
groups = {pickaxey=1,door=1,mesecon_effector_on=1},
|
||||
groups = {pickaxey=1, door=1,mesecon_effector_on=1},
|
||||
_mcl_hardness = 5,
|
||||
tiles_bottom = {"door_steel_b.png", "door_grey.png"},
|
||||
tiles_top = {"door_steel_a.png", "door_grey.png"},
|
||||
|
@ -596,7 +596,7 @@ doors:register_trapdoor("doors:trapdoor", {
|
|||
description = "Wooden Trapdoor",
|
||||
tiles = {"door_trapdoor.png"},
|
||||
wield_image = "door_trapdoor.png",
|
||||
groups = {handy=1,axey=1,oddly_breakable_by_hand=2,mesecon_effector_on=1,door=2},
|
||||
groups = {handy=1,axey=1, mesecon_effector_on=1,door=2},
|
||||
_mcl_hardness = 3,
|
||||
sounds = mcl_sounds.node_sound_wood_defaults(),
|
||||
})
|
||||
|
@ -619,7 +619,7 @@ doors:register_trapdoor("doors:iron_trapdoor", {
|
|||
description = "Iron Trapdoor",
|
||||
tiles = {"iron_trapdoor.png"},
|
||||
wield_image = "iron_trapdoor.png",
|
||||
groups = {pickaxey=1,mesecon_effector_on=1,door=2},
|
||||
groups = {pickaxey=1, mesecon_effector_on=1,door=2},
|
||||
_mcl_hardness = 5,
|
||||
sounds = mcl_sounds.node_sound_metal_defaults(),
|
||||
sound_open = "doors_steel_door_open",
|
||||
|
|
|
@ -108,7 +108,7 @@ local crop_def = {
|
|||
},
|
||||
},
|
||||
groups = {
|
||||
handy=1,axey=1, cocoa=1, oddly_breakable_by_hand=3, not_in_creative_inventory=1, dig_by_water=1,
|
||||
handy=1,axey=1, cocoa=1, not_in_creative_inventory=1, dig_by_water=1,
|
||||
},
|
||||
sounds = mcl_sounds.node_sound_wood_defaults(),
|
||||
_mcl_blast_resistance = 15,
|
||||
|
|
|
@ -2,7 +2,7 @@ minetest.register_node("mcl_farming:melon", {
|
|||
description = "Melon",
|
||||
stack_max = 64,
|
||||
tiles = {"farming_melon_top.png", "farming_melon_top.png", "farming_melon_side.png", "farming_melon_side.png", "farming_melon_side.png", "farming_melon_side.png"},
|
||||
groups = {handy=1,axey=1, oddly_breakable_by_hand=2, building_block=1},
|
||||
groups = {handy=1,axey=1, building_block=1},
|
||||
drop = {
|
||||
max_items = 1,
|
||||
items = {
|
||||
|
|
|
@ -178,8 +178,10 @@ minetest.register_node("mcl_farming:hay_block", {
|
|||
paramtype2 = "facedir",
|
||||
is_ground_content = false,
|
||||
on_place = mcl_util.rotate_axis,
|
||||
groups = {oddly_breakable_by_hand=3,flammable=2, building_block=1},
|
||||
groups = {handy=1, flammable=2, building_block=1},
|
||||
sounds = mcl_sounds.node_sound_leaves_defaults(),
|
||||
_mcl_blast_resistance = 2.5,
|
||||
_mcl_hardness = 0.5,
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
|
|
|
@ -68,6 +68,7 @@ local function update_entity(pos)
|
|||
end
|
||||
end
|
||||
|
||||
-- FIXME: The armor stand should be an entity
|
||||
minetest.register_node("3d_armor_stand:armor_stand", {
|
||||
description = "Armor Stand",
|
||||
drawtype = "mesh",
|
||||
|
@ -82,7 +83,9 @@ minetest.register_node("3d_armor_stand:armor_stand", {
|
|||
type = "fixed",
|
||||
fixed = {-0.5,-0.5,-0.5, 0.5,1.4,0.5}
|
||||
},
|
||||
groups = {choppy=2, oddly_breakable_by_hand=2, deco_block=1},
|
||||
-- FIXME: This should be breakable by 2 quick punches
|
||||
groups = {handy=1, deco_block=1},
|
||||
_mcl_hardness = 2,
|
||||
sounds = mcl_sounds.node_sound_wood_defaults(),
|
||||
on_construct = function(pos)
|
||||
local meta = minetest.get_meta(pos)
|
||||
|
|
|
@ -119,6 +119,8 @@ function xpanes.register_pane(name, def)
|
|||
fixed = {{-1/2, -1/2, -1/32, 1/2, 1/2, 1/32}},
|
||||
},
|
||||
connect_sides = { "left", "right" },
|
||||
_mcl_blast_resistance = def._mcl_blast_resistance,
|
||||
_mcl_hardness = def._mcl_hardness,
|
||||
})
|
||||
|
||||
local groups = table.copy(def.groups)
|
||||
|
@ -145,6 +147,8 @@ function xpanes.register_pane(name, def)
|
|||
},
|
||||
connects_to = {"group:pane", "group:stone", "group:glass", "group:wood", "group:tree"},
|
||||
drop = drop,
|
||||
_mcl_blast_resistance = def._mcl_blast_resistance,
|
||||
_mcl_hardness = def._mcl_hardness,
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
|
@ -161,12 +165,14 @@ local pane = function(description, node, append)
|
|||
inventory_image = "xpanes_pane_glass"..append..".png",
|
||||
wield_image = "xpanes_pane_glass"..append..".png",
|
||||
sounds = mcl_sounds.node_sound_glass_defaults(),
|
||||
groups = {snappy=2, cracky=3, oddly_breakable_by_hand=3},
|
||||
groups = {handy=1},
|
||||
recipe = {
|
||||
{node, node, node},
|
||||
{node, node, node},
|
||||
},
|
||||
drop = "",
|
||||
_mcl_blast_resistance = 1.5,
|
||||
_mcl_hardness = 0.3,
|
||||
})
|
||||
end
|
||||
|
||||
|
@ -176,12 +182,14 @@ xpanes.register_pane("bar", {
|
|||
textures = {"xpanes_pane_iron.png","xpanes_pane_half_iron.png","xpanes_top_iron.png"},
|
||||
inventory_image = "xpanes_pane_iron.png",
|
||||
wield_image = "xpanes_pane_iron.png",
|
||||
groups = {cracky=2},
|
||||
groups = {pickaxey=1},
|
||||
sounds = mcl_sounds.node_sound_metal_defaults(),
|
||||
recipe = {
|
||||
{"mcl_core:iron_ingot", "mcl_core:iron_ingot", "mcl_core:iron_ingot"},
|
||||
{"mcl_core:iron_ingot", "mcl_core:iron_ingot", "mcl_core:iron_ingot"},
|
||||
}
|
||||
},
|
||||
_mcl_blast_resistance = 30,
|
||||
_mcl_hardness = 5,
|
||||
})
|
||||
|
||||
-- Glass
|
||||
|
|
Loading…
Reference in a new issue