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