Made nodes breakable again

This commit is contained in:
James David Clarke
2023-12-28 08:47:46 +00:00
parent 58df66b7bc
commit 9a231387a3
31 changed files with 263 additions and 65 deletions

View File

@ -250,7 +250,7 @@ minetest.register_node(":technic:cnc", {
description = desc_tr,
tiles = {"technic_cnc_top.png", "technic_cnc_bottom.png", "technic_cnc_side.png",
"technic_cnc_side.png", "technic_cnc_side.png", "technic_cnc_front.png"},
groups = {cracky=2, technic_machine=1, technic_lv=1},
groups = {cracky=2, technic_machine=1, technic_lv=1, pickaxey=3},
connect_sides = {"bottom", "back", "left", "right"},
paramtype2 = "facedir",
legacy_facedir_simple = true,
@ -269,6 +269,9 @@ minetest.register_node(":technic:cnc", {
allow_metadata_inventory_move = allow_metadata_inventory_move,
on_receive_fields = form_handler,
technic_run = technic_cnc.use_technic and run,
_mcl_hardness = 3,
_mcl_blast_resistance = 3,
_mcl_silk_touch_drop = true
})
-- Active state block
@ -278,7 +281,7 @@ if technic_cnc.use_technic then
description = desc_tr,
tiles = {"technic_cnc_top_active.png", "technic_cnc_bottom.png", "technic_cnc_side.png",
"technic_cnc_side.png", "technic_cnc_side.png", "technic_cnc_front_active.png"},
groups = {cracky=2, technic_machine=1, technic_lv=1, not_in_creative_inventory=1},
groups = {cracky=2, technic_machine=1, technic_lv=1, not_in_creative_inventory=1, pickaxey=3},
connect_sides = {"bottom", "back", "left", "right"},
paramtype2 = "facedir",
drop = "technic:cnc",
@ -290,6 +293,9 @@ if technic_cnc.use_technic then
on_receive_fields = form_handler,
technic_run = run,
technic_disabled_machine_name = "technic:cnc",
_mcl_hardness = 3,
_mcl_blast_resistance = 3,
_mcl_silk_touch_drop = true
})
technic.register_machine("LV", "technic:cnc", technic.receiver)

View File

@ -273,7 +273,8 @@ technic_cnc.programs_disable = {
-- Generic function for registering all the different node types
function technic_cnc.register_program(recipeitem, suffix, model, groups, images, description, cbox, sbox)
groups.pickaxey = 3
local dtype
local nodeboxdef
local meshdef
@ -303,7 +304,10 @@ function technic_cnc.register_program(recipeitem, suffix, model, groups, images,
walkable = true,
groups = groups,
selection_box = sbox,
collision_box = cbox
collision_box = cbox,
_mcl_hardness = 3,
_mcl_blast_resistance = 3,
_mcl_silk_touch_drop = true
})
end