forked from MineClone5/MineClone5
Hardness: Furnace+head+hopper+jukebox+rails
This commit is contained in:
parent
707c0813ff
commit
c7ac8620c3
|
@ -224,7 +224,7 @@ minetest.register_node("mcl_furnaces:furnace", {
|
||||||
"default_furnace_side.png", "default_furnace_front.png"
|
"default_furnace_side.png", "default_furnace_front.png"
|
||||||
},
|
},
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
groups = {cracky=2, container=4, deco_block=1},
|
groups = {pickaxey=1, container=4, deco_block=1},
|
||||||
is_ground_content = false,
|
is_ground_content = false,
|
||||||
sounds = mcl_sounds.node_sound_stone_defaults(),
|
sounds = mcl_sounds.node_sound_stone_defaults(),
|
||||||
|
|
||||||
|
@ -266,6 +266,7 @@ minetest.register_node("mcl_furnaces:furnace", {
|
||||||
allow_metadata_inventory_take = allow_metadata_inventory_take,
|
allow_metadata_inventory_take = allow_metadata_inventory_take,
|
||||||
on_receive_fields = craftguide,
|
on_receive_fields = craftguide,
|
||||||
_mcl_blast_resistance = 17.5,
|
_mcl_blast_resistance = 17.5,
|
||||||
|
_mcl_hardness = 3.5,
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_node("mcl_furnaces:furnace_active", {
|
minetest.register_node("mcl_furnaces:furnace_active", {
|
||||||
|
@ -278,7 +279,7 @@ minetest.register_node("mcl_furnaces:furnace_active", {
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
light_source = 13,
|
light_source = 13,
|
||||||
drop = "mcl_furnaces:furnace",
|
drop = "mcl_furnaces:furnace",
|
||||||
groups = {cracky=2, container=4, deco_block=1, not_in_creative_inventory=1},
|
groups = {pickaxey=1, container=4, deco_block=1, not_in_creative_inventory=1},
|
||||||
is_ground_content = false,
|
is_ground_content = false,
|
||||||
sounds = mcl_sounds.node_sound_stone_defaults(),
|
sounds = mcl_sounds.node_sound_stone_defaults(),
|
||||||
on_timer = furnace_node_timer,
|
on_timer = furnace_node_timer,
|
||||||
|
@ -304,6 +305,7 @@ minetest.register_node("mcl_furnaces:furnace_active", {
|
||||||
allow_metadata_inventory_take = allow_metadata_inventory_take,
|
allow_metadata_inventory_take = allow_metadata_inventory_take,
|
||||||
on_receive_fields = craftguide,
|
on_receive_fields = craftguide,
|
||||||
_mcl_blast_resistance = 17.5,
|
_mcl_blast_resistance = 17.5,
|
||||||
|
_mcl_hardness = 3.5,
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
|
|
|
@ -11,7 +11,7 @@ local function addhead(node, desc)
|
||||||
{ -0.25, -0.5, -0.25, 0.25, 0.0, 0.25, },
|
{ -0.25, -0.5, -0.25, 0.25, 0.0, 0.25, },
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
groups = {oddly_breakable_by_hand=3, head=1, deco_block=1},
|
groups = {handy=1, head=1, deco_block=1},
|
||||||
tiles = {
|
tiles = {
|
||||||
"head_"..node.."_top.png",
|
"head_"..node.."_top.png",
|
||||||
"head_"..node.."_top.png",
|
"head_"..node.."_top.png",
|
||||||
|
@ -33,6 +33,7 @@ local function addhead(node, desc)
|
||||||
footstep = {name="default_hard_footstep", gain=0.3}
|
footstep = {name="default_hard_footstep", gain=0.3}
|
||||||
}),
|
}),
|
||||||
_mcl_blast_resistance = 5,
|
_mcl_blast_resistance = 5,
|
||||||
|
_mcl_hardness = 1,
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -16,7 +16,7 @@ minetest.register_node("mcl_hoppers:hopper", {
|
||||||
description = "Hopper",
|
description = "Hopper",
|
||||||
inventory_image = "mcl_hoppers_item.png",
|
inventory_image = "mcl_hoppers_item.png",
|
||||||
wield_image = "mcl_hoppers_item.png",
|
wield_image = "mcl_hoppers_item.png",
|
||||||
groups = {cracky=1,level=2,container=2,deco_block=1,},
|
groups = {pickaxey=1, container=2,deco_block=1,},
|
||||||
drawtype = "nodebox",
|
drawtype = "nodebox",
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
tiles = {"mcl_hoppers_hopper_inside.png^mcl_hoppers_hopper_top.png", "mcl_hoppers_hopper_outside.png", "mcl_hoppers_hopper_outside.png", "mcl_hoppers_hopper_inside.png", "mcl_hoppers_hopper_outside.png", "mcl_hoppers_hopper_outside.png"},
|
tiles = {"mcl_hoppers_hopper_inside.png^mcl_hoppers_hopper_top.png", "mcl_hoppers_hopper_outside.png", "mcl_hoppers_hopper_outside.png", "mcl_hoppers_hopper_inside.png", "mcl_hoppers_hopper_outside.png", "mcl_hoppers_hopper_outside.png"},
|
||||||
|
@ -112,12 +112,13 @@ minetest.register_node("mcl_hoppers:hopper", {
|
||||||
end,
|
end,
|
||||||
sounds = mcl_sounds.node_sound_metal_defaults(),
|
sounds = mcl_sounds.node_sound_metal_defaults(),
|
||||||
_mcl_blast_resistance = 24,
|
_mcl_blast_resistance = 24,
|
||||||
|
_mcl_hardness = 3,
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_node("mcl_hoppers:hopper_side", {
|
minetest.register_node("mcl_hoppers:hopper_side", {
|
||||||
description = "Hopper (Side)",
|
description = "Hopper (Side)",
|
||||||
drop = "mcl_hoppers:hopper",
|
drop = "mcl_hoppers:hopper",
|
||||||
groups = {cracky=1,level=2,container=2,not_in_creative_inventory=1},
|
groups = {pickaxey=1, container=2,not_in_creative_inventory=1},
|
||||||
drawtype = "nodebox",
|
drawtype = "nodebox",
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
|
@ -174,6 +175,7 @@ minetest.register_node("mcl_hoppers:hopper_side", {
|
||||||
end,
|
end,
|
||||||
sounds = mcl_sounds.node_sound_metal_defaults(),
|
sounds = mcl_sounds.node_sound_metal_defaults(),
|
||||||
_mcl_blast_resistance = 24,
|
_mcl_blast_resistance = 24,
|
||||||
|
_mcl_hardness = 3,
|
||||||
})
|
})
|
||||||
|
|
||||||
-- Make hoppers suck in dropped items
|
-- Make hoppers suck in dropped items
|
||||||
|
|
|
@ -77,7 +77,7 @@ minetest.register_node("mcl_jukebox:jukebox", {
|
||||||
description = "Jukebox",
|
description = "Jukebox",
|
||||||
tiles = {"mcl_jukebox_top.png", "mcl_jukebox_side.png", "mcl_jukebox_side.png"},
|
tiles = {"mcl_jukebox_top.png", "mcl_jukebox_side.png", "mcl_jukebox_side.png"},
|
||||||
sounds = mcl_sounds.node_sound_wood_defaults(),
|
sounds = mcl_sounds.node_sound_wood_defaults(),
|
||||||
groups = {oddly_breakable_by_hand=1, choppy=3, deco_block=1},
|
groups = {handy=1,axey=1, deco_block=1},
|
||||||
on_construct = function(pos)
|
on_construct = function(pos)
|
||||||
local meta = minetest.get_meta(pos)
|
local meta = minetest.get_meta(pos)
|
||||||
local inv = meta:get_inventory()
|
local inv = meta:get_inventory()
|
||||||
|
@ -146,6 +146,7 @@ minetest.register_node("mcl_jukebox:jukebox", {
|
||||||
meta:from_table(meta2:to_table())
|
meta:from_table(meta2:to_table())
|
||||||
end,
|
end,
|
||||||
_mcl_blast_resistance = 30,
|
_mcl_blast_resistance = 30,
|
||||||
|
_mcl_hardness = 2,
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
|
|
|
@ -14,9 +14,10 @@ minetest.register_node("mcl_minecarts:rail", {
|
||||||
fixed = {-1/2, -1/2, -1/2, 1/2, -1/2+1/16, 1/2},
|
fixed = {-1/2, -1/2, -1/2, 1/2, -1/2+1/16, 1/2},
|
||||||
},
|
},
|
||||||
stack_max = 64,
|
stack_max = 64,
|
||||||
groups = {cracky=3,oddly_breakable_by_hand=3,attached_node=1,rail=1,connect_to_raillike=1,dig_by_water=1,transport=1},
|
groups = {handy=1,pickaxey=1, attached_node=1,rail=1,connect_to_raillike=1,dig_by_water=1,transport=1},
|
||||||
sounds = mcl_sounds.node_sound_defaults(),
|
sounds = mcl_sounds.node_sound_defaults(),
|
||||||
_mcl_blast_resistance = 3.5,
|
_mcl_blast_resistance = 3.5,
|
||||||
|
_mcl_hardness = 0.7,
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
|
@ -43,7 +44,7 @@ minetest.register_node("mcl_minecarts:golden_rail", {
|
||||||
-- but how to specify the dimensions for curved and sideways rails?
|
-- but how to specify the dimensions for curved and sideways rails?
|
||||||
fixed = {-1/2, -1/2, -1/2, 1/2, -1/2+1/16, 1/2},
|
fixed = {-1/2, -1/2, -1/2, 1/2, -1/2+1/16, 1/2},
|
||||||
},
|
},
|
||||||
groups = {cracky = 3, oddly_breakable_by_hand = 3, attached_node = 1, rail = 1, connect_to_raillike = 1, dig_by_water = 1, transport = 1},
|
groups = {handy=1,pickaxey=1, attached_node = 1, rail = 1, connect_to_raillike = 1, dig_by_water = 1, transport = 1},
|
||||||
|
|
||||||
after_place_node = function(pos, placer, itemstack)
|
after_place_node = function(pos, placer, itemstack)
|
||||||
if not mesecon then
|
if not mesecon then
|
||||||
|
@ -63,6 +64,7 @@ minetest.register_node("mcl_minecarts:golden_rail", {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
_mcl_blast_resistance = 3.5,
|
_mcl_blast_resistance = 3.5,
|
||||||
|
_mcl_hardness = 0.7,
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
|
|
Loading…
Reference in New Issue