From 3018128b4b4ad0a1e11de133ab0fe0563d76c00d Mon Sep 17 00:00:00 2001 From: Anthony Zhang Date: Thu, 22 Mar 2012 17:52:11 -0400 Subject: Update nodes for compatibility with digging time groups. --- mesecons/init.lua | 4 ++-- mesecons_blinkyplant/init.lua | 4 ++-- mesecons_button/init.lua | 4 ++-- mesecons_detector/init.lua | 4 ++-- mesecons_dev/mesecons_walllever/init.lua | 4 ++-- mesecons_dev/mesecons_wireless/init.lua | 12 ++++++------ mesecons_hydroturbine/init.lua | 4 ++-- mesecons_lamp/init.lua | 4 ++-- mesecons_lightstone/init.lua | 4 ++-- mesecons_movestones/init.lua | 4 ++-- mesecons_pistons/init.lua | 4 ++-- mesecons_powerplant/init.lua | 2 +- mesecons_pressureplates/init.lua | 8 ++++---- mesecons_random/init.lua | 1 + mesecons_solarpanel/init.lua | 2 +- mesecons_switch/init.lua | 4 ++-- mesecons_temperest/init.lua | 10 +++++----- mesecons_torch/init.lua | 4 ++-- 18 files changed, 42 insertions(+), 41 deletions(-) diff --git a/mesecons/init.lua b/mesecons/init.lua index ac23149..aa9dc4c 100644 --- a/mesecons/init.lua +++ b/mesecons/init.lua @@ -85,7 +85,7 @@ minetest.register_node("mesecons:mesecon_off", { selection_box = { type = "fixed", }, - material = minetest.digprop_constanttime(0.1), + groups = {dig_immediate=3}, description="Mesecons", }) @@ -98,7 +98,7 @@ minetest.register_node("mesecons:mesecon_on", { selection_box = { type = "fixed", }, - material = minetest.digprop_constanttime(0.1), + groups = {dig_immediate=3}, drop = '"mesecons:mesecon_off" 1', light_source = LIGHT_MAX-11, }) diff --git a/mesecons_blinkyplant/init.lua b/mesecons_blinkyplant/init.lua index 9cb6203..4797f6a 100644 --- a/mesecons_blinkyplant/init.lua +++ b/mesecons_blinkyplant/init.lua @@ -7,7 +7,7 @@ minetest.register_node("mesecons_blinkyplant:blinky_plant_off", { inventory_image = "jeija_blinky_plant_off.png", paramtype = "light", walkable = false, - material = minetest.digprop_leaveslike(0.2), + groups = {snappy=2}, description="Blinky Plant", }) @@ -18,7 +18,7 @@ minetest.register_node("mesecons_blinkyplant:blinky_plant_on", { inventory_image = "jeija_blinky_plant_off.png", paramtype = "light", walkable = false, - material = minetest.digprop_leaveslike(0.2), + groups = {snappy=2}, drop='"mesecons_blinkyplant:blinky_plant_off" 1', light_source = LIGHT_MAX-7, description="Blinky Plant", diff --git a/mesecons_button/init.lua b/mesecons_button/init.lua index b76a49d..8cb2c9f 100644 --- a/mesecons_button/init.lua +++ b/mesecons_button/init.lua @@ -9,7 +9,7 @@ minetest.register_node("mesecons_button:button_off", { selection_box = { type = "wallmounted", }, - material = minetest.digprop_constanttime(0.3), + groups = {dig_immediate=2}, description="Button", }) minetest.register_node("mesecons_button:button_on", { @@ -22,7 +22,7 @@ minetest.register_node("mesecons_button:button_on", { selection_box = { type = "wallmounted", }, - material = minetest.digprop_constanttime(0.3), + groups = {dig_immediate=2}, drop = '"mesecons_button:button_off" 1', description="Button", }) diff --git a/mesecons_detector/init.lua b/mesecons_detector/init.lua index 55962fb..28cedec 100644 --- a/mesecons_detector/init.lua +++ b/mesecons_detector/init.lua @@ -3,7 +3,7 @@ minetest.register_node("mesecons_detector:object_detector_off", { tile_images = {"default_steel_block.png", "default_steel_block.png", "jeija_object_detector_off.png", "jeija_object_detector_off.png", "jeija_object_detector_off.png", "jeija_object_detector_off.png"}, paramtype = "light", walkable = true, - material = minetest.digprop_stonelike(4), + groups = {cracky=3}, description="Player Detector", }) @@ -11,7 +11,7 @@ minetest.register_node("mesecons_detector:object_detector_on", { tile_images = {"default_steel_block.png", "default_steel_block.png", "jeija_object_detector_on.png", "jeija_object_detector_on.png", "jeija_object_detector_on.png", "jeija_object_detector_on.png"}, paramtype = "light", walkable = true, - material = minetest.digprop_stonelike(4), + groups = {cracky=3}, drop = '"mesecons_detector:object_detector_off" 1', description="Player Detector", }) diff --git a/mesecons_dev/mesecons_walllever/init.lua b/mesecons_dev/mesecons_walllever/init.lua index 557bb1b..0276aeb 100644 --- a/mesecons_dev/mesecons_walllever/init.lua +++ b/mesecons_dev/mesecons_walllever/init.lua @@ -11,7 +11,7 @@ minetest.register_node("mesecons_walllever:wall_lever_off", { selection_box = { type = "wallmounted", }, - material = minetest.digprop_constanttime(0.3), + groups = {dig_immediate=2}, description="Lever", }) minetest.register_node("mesecons_walllever:wall_lever_on", { @@ -25,7 +25,7 @@ minetest.register_node("mesecons_walllever:wall_lever_on", { selection_box = { type = "wallmounted", }, - material = minetest.digprop_constanttime(0.3), + groups = {dig_immediate=2}, drop = '"mesecons_walllever:wall_lever_off" 1', description="Lever", }) diff --git a/mesecons_dev/mesecons_wireless/init.lua b/mesecons_dev/mesecons_wireless/init.lua index bffac58..0d956e8 100644 --- a/mesecons_dev/mesecons_wireless/init.lua +++ b/mesecons_dev/mesecons_wireless/init.lua @@ -148,14 +148,14 @@ minetest.register_abm( minetest.register_node("mesecons_wireless:wireless_receiver_off", { tile_images = {"jeija_wireless_receiver_tb_off.png", "jeija_wireless_receiver_tb_off.png", "jeija_wireless_receiver_off.png", "jeija_wireless_receiver_off.png", "jeija_wireless_receiver_off.png", "jeija_wireless_receiver_off.png"}, inventory_image = minetest.inventorycube("jeija_wireless_receiver_off.png"), - material = minetest.digprop_constanttime(0.8), + groups = {choppy=2}, description="Wireless Receiver", }) minetest.register_node("mesecons_wireless:wireless_receiver_on", { tile_images = {"jeija_wireless_receiver_tb_on.png", "jeija_wireless_receiver_tb_on.png", "jeija_wireless_receiver_on.png", "jeija_wireless_receiver_on.png", "jeija_wireless_receiver_on.png", "jeija_wireless_receiver_on.png"}, inventory_image = minetest.inventorycube("jeija_wireless_receiver_on.png"), - material = minetest.digprop_constanttime(0.8), + groups = {choppy=2}, drop = 'mesecons_wireless:wireless_receiver_off', description="Wireless Receiver", }) @@ -216,7 +216,7 @@ mesecon:add_receptor_node_off("mesecons_wireless:wireless_receiver_off") minetest.register_node("mesecons_wireless:wireless_inverter_off", { tile_images = {"jeija_wireless_inverter_tb.png", "jeija_wireless_inverter_tb.png", "jeija_wireless_inverter_off.png", "jeija_wireless_inverter_off.png", "jeija_wireless_inverter_off.png", "jeija_wireless_inverter_off.png"}, inventory_image = minetest.inventorycube("jeija_wireless_inverter_off.png"), - material = minetest.digprop_constanttime(0.8), + groups = {choppy=2}, drop = 'mesecons_wireless:wireless_inverter_on', description="Wireless Inverter", }) @@ -224,7 +224,7 @@ minetest.register_node("mesecons_wireless:wireless_inverter_off", { minetest.register_node("mesecons_wireless:wireless_inverter_on", { tile_images = {"jeija_wireless_inverter_tb.png", "jeija_wireless_inverter_tb.png", "jeija_wireless_inverter_on.png", "jeija_wireless_inverter_on.png", "jeija_wireless_inverter_on.png", "jeija_wireless_inverter_on.png"}, inventory_image = minetest.inventorycube("jeija_wireless_inverter_on.png"), - material = minetest.digprop_constanttime(0.8), + groups = {choppy=2}, description="Wireless Inverter", }) @@ -278,7 +278,7 @@ end minetest.register_node("mesecons_wireless:wireless_transmitter_on", { tile_images = {"jeija_wireless_transmitter_tb.png", "jeija_wireless_transmitter_tb.png", "jeija_wireless_transmitter_on.png", "jeija_wireless_transmitter_on.png", "jeija_wireless_transmitter_on.png", "jeija_wireless_transmitter_on.png"}, inventory_image = minetest.inventorycube("jeija_wireless_transmitter_on.png"), - material = minetest.digprop_constanttime(0.8), + groups = {choppy=2}, drop = {'"mesecons_wireless:wireless_transmitter_off" 1'}, description="Wireless Transmitter", }) @@ -286,7 +286,7 @@ minetest.register_node("mesecons_wireless:wireless_transmitter_on", { minetest.register_node("mesecons_wireless:wireless_transmitter_off", { tile_images = {"jeija_wireless_transmitter_tb.png", "jeija_wireless_transmitter_tb.png", "jeija_wireless_transmitter_off.png", "jeija_wireless_transmitter_off.png", "jeija_wireless_transmitter_off.png", "jeija_wireless_transmitter_off.png"}, inventory_image = minetest.inventorycube("jeija_wireless_transmitter_off.png"), - material = minetest.digprop_constanttime(0.8), + groups = {choppy=2}, description="Wireless Transmitter", }) diff --git a/mesecons_hydroturbine/init.lua b/mesecons_hydroturbine/init.lua index ed64d79..53362c2 100644 --- a/mesecons_hydroturbine/init.lua +++ b/mesecons_hydroturbine/init.lua @@ -2,14 +2,14 @@ minetest.register_node("mesecons_hydroturbine:hydro_turbine_off", { tile_images = {"jeija_hydro_turbine_off.png", "jeija_hydro_turbine_off.png", "jeija_hydro_turbine_off.png", "jeija_hydro_turbine_off.png", "jeija_hydro_turbine_off.png", "jeija_hydro_turbine_off.png"}, - material = minetest.digprop_constanttime(0.5), + groups = {dig_immediate=2}, description="Water Turbine", }) minetest.register_node("mesecons_hydroturbine:hydro_turbine_on", { tile_images = {"jeija_hydro_turbine_on.png", "jeija_hydro_turbine_on.png", "jeija_hydro_turbine_on.png", "jeija_hydro_turbine_on.png", "jeija_hydro_turbine_on.png", "jeija_hydro_turbine_on.png"}, drop = '"mesecons_hydroturbine:hydro_turbine_off" 1', - material = minetest.digprop_constanttime(0.5), + groups = {dig_immediate=2}, description="Water Turbine", }) diff --git a/mesecons_lamp/init.lua b/mesecons_lamp/init.lua index 16be723..fdee6fa 100644 --- a/mesecons_lamp/init.lua +++ b/mesecons_lamp/init.lua @@ -14,7 +14,7 @@ minetest.register_node("mesecons_lamp:lamp_on", { --type = "fixed", fixed = {-0.38, -0.5, -0.1, 0.38, -0.2, 0.1}, }, - material = minetest.digprop_constanttime(0.1), + groups = {dig_immediate=3}, drop='"mesecons_lamp:lamp_off" 1', }) @@ -31,7 +31,7 @@ minetest.register_node("mesecons_lamp:lamp_off", { --type = "fixed", fixed = {-0.38, -0.5, -0.1, 0.38, -0.2, 0.1}, }, - material = minetest.digprop_constanttime(0.1), + groups = {dig_immediate=3}, description="Meselamp", }) diff --git a/mesecons_lightstone/init.lua b/mesecons_lightstone/init.lua index fda5e39..079c6da 100644 --- a/mesecons_lightstone/init.lua +++ b/mesecons_lightstone/init.lua @@ -2,13 +2,13 @@ function mesecon:lightstone_add(name, base_item, texture_off, texture_on) minetest.register_node("mesecons_lightstone:lightstone_" .. name .. "_off", { tile_images = {texture_off}, inventory_image = minetest.inventorycube(texture_off), - material = minetest.digprop_stonelike(0.5), + groups = {crackly=2}, description=name.." Lightstone", }) minetest.register_node("mesecons_lightstone:lightstone_" .. name .. "_on", { tile_images = {texture_on}, inventory_image = minetest.inventorycube(texture_on), - material = minetest.digprop_stonelike(0.5), + groups = {crackly=2}, drop = "node mesecons_lightstone:lightstone_" .. name .. "_off 1", light_source = LIGHT_MAX-2, description=name.." Lightstone", diff --git a/mesecons_movestones/init.lua b/mesecons_movestones/init.lua index fb07300..7343c4d 100644 --- a/mesecons_movestones/init.lua +++ b/mesecons_movestones/init.lua @@ -44,7 +44,7 @@ minetest.register_node("mesecons_movestones:movestone", { tile_images = {"jeija_movestone_side.png", "jeija_movestone_side.png", "jeija_movestone_side.png", "jeija_movestone_side.png", "jeija_movestone_arrows.png", "jeija_movestone_arrows.png"}, paramtype2 = "facedir", legacy_facedir_simple = true, - material = minetest.digprop_stonelike(0.8), + groups = {crackly=3}, description="Movestone", }) @@ -153,7 +153,7 @@ minetest.register_node("mesecons_movestones:sticky_movestone", { inventory_image = minetest.inventorycube("jeija_sticky_movestone.png", "jeija_movestone_side.png", "jeija_movestone_side.png"), paramtype2 = "facedir", legacy_facedir_simple = true, - material = minetest.digprop_stonelike(0.8), + groups = {crackly=3}, description="Sticky Movestone", }) diff --git a/mesecons_pistons/init.lua b/mesecons_pistons/init.lua index 9c15fb3..094ba07 100644 --- a/mesecons_pistons/init.lua +++ b/mesecons_pistons/init.lua @@ -2,7 +2,7 @@ --registration normal one: minetest.register_node("mesecons_pistons:piston_normal", { tile_images = {"jeija_piston_tb.png", "jeija_piston_tb.png", "jeija_piston_tb.png", "jeija_piston_tb.png", "jeija_piston_tb.png", "jeija_piston_side.png"}, - material = minetest.digprop_stonelike(0.5), + groups = {crackly=3}, paramtype2="facedir", description="Piston", }) @@ -19,7 +19,7 @@ minetest.register_craft({ --registration sticky one: minetest.register_node("mesecons_pistons:piston_sticky", { tile_images = {"jeija_piston_tb.png", "jeija_piston_tb.png", "jeija_piston_tb.png", "jeija_piston_tb.png", "jeija_piston_tb.png", "jeija_piston_sticky_side.png"}, - material = minetest.digprop_stonelike(0.5), + groups = {crackly=3}, paramtype2="facedir", description="Sticky Piston", }) diff --git a/mesecons_powerplant/init.lua b/mesecons_powerplant/init.lua index a353bb4..d6a8e97 100644 --- a/mesecons_powerplant/init.lua +++ b/mesecons_powerplant/init.lua @@ -7,7 +7,7 @@ minetest.register_node("mesecons_powerplant:power_plant", { inventory_image = "jeija_power_plant.png", paramtype = "light", walkable = false, - material = minetest.digprop_leaveslike(0.2), + groups = {snappy=2}, light_source = LIGHT_MAX-9, description="Power Plant", }) diff --git a/mesecons_pressureplates/init.lua b/mesecons_pressureplates/init.lua index 884bc09..2e5a47b 100644 --- a/mesecons_pressureplates/init.lua +++ b/mesecons_pressureplates/init.lua @@ -11,7 +11,7 @@ minetest.register_node("mesecons_pressureplates:pressure_plate_wood_off", { selection_box = { type = "fixed", }, - material = minetest.digprop_constanttime(0.3), + groups = {choppy=2}, description="Wood Pressure Plate", }) @@ -24,7 +24,7 @@ minetest.register_node("mesecons_pressureplates:pressure_plate_wood_on", { selection_box = { type = "fixed", }, - material = minetest.digprop_constanttime(0.3), + groups = {choppy=2}, drop='"mesecons_pressureplates:pressure_plate_wood_off" 1', }) @@ -88,7 +88,7 @@ minetest.register_node("mesecons_pressureplates:pressure_plate_stone_off", { selection_box = { type = "fixed", }, - material = minetest.digprop_constanttime(0.3), + groups = {choppy=2}, description="Stone Pressure Plate", }) @@ -101,7 +101,7 @@ minetest.register_node("mesecons_pressureplates:pressure_plate_stone_on", { selection_box = { type = "fixed", }, - material = minetest.digprop_constanttime(0.3), + groups = {choppy=2}, drop='"mesecons_pressureplates:pressure_plate_stone_off" 1', }) diff --git a/mesecons_random/init.lua b/mesecons_random/init.lua index 751e252..ce3a391 100644 --- a/mesecons_random/init.lua +++ b/mesecons_random/init.lua @@ -14,6 +14,7 @@ minetest.register_node("mesecons_random:removestone", { tile_images = {"jeija_removestone.png"}, inventory_image = minetest.inventorycube("jeija_removestone_inv.png"), material = minetest.digprop_stonelike(1.0), + groups = {cracky=3}, description="Removestone", }) diff --git a/mesecons_solarpanel/init.lua b/mesecons_solarpanel/init.lua index f64b4b2..e555c9c 100644 --- a/mesecons_solarpanel/init.lua +++ b/mesecons_solarpanel/init.lua @@ -11,7 +11,7 @@ minetest.register_node("mesecons_solarpanel:solar_panel", { type = "fixed", }, furnace_burntime = 5, - material = minetest.digprop_dirtlike(0.1), + groups = {snappy=2}, description="Solar Panel", }) diff --git a/mesecons_switch/init.lua b/mesecons_switch/init.lua index 769223c..d95178b 100644 --- a/mesecons_switch/init.lua +++ b/mesecons_switch/init.lua @@ -3,14 +3,14 @@ minetest.register_node("mesecons_switch:mesecon_switch_off", { tile_images = {"jeija_mesecon_switch_side.png", "jeija_mesecon_switch_side.png", "jeija_mesecon_switch_side.png", "jeija_mesecon_switch_side.png", "jeija_mesecon_switch_side.png", "jeija_mesecon_switch_off.png"}, paramtype2="facedir", - material = minetest.digprop_constanttime(0.5), + groups = {dig_immediate=2}, description="Switch", }) minetest.register_node("mesecons_switch:mesecon_switch_on", { tile_images = {"jeija_mesecon_switch_side.png", "jeija_mesecon_switch_side.png", "jeija_mesecon_switch_side.png", "jeija_mesecon_switch_side.png", "jeija_mesecon_switch_side.png", "jeija_mesecon_switch_on.png"}, paramtype2="facedir", - material = minetest.digprop_constanttime(0.5), + groups = {dig_immediate=2}, drop='"mesecons_switch:mesecon_switch_off" 1', description="Switch", }) diff --git a/mesecons_temperest/init.lua b/mesecons_temperest/init.lua index fb0ec8d..3c31013 100644 --- a/mesecons_temperest/init.lua +++ b/mesecons_temperest/init.lua @@ -7,7 +7,7 @@ minetest.register_node("mesecons_temperest:mesecon_plug", { tile_images = {"jeija_mesecon_plug.png"}, inventory_image = "jeija_mesecon_plug.png", wield_image = "jeija_mesecon_plug.png", - material = minetest.digprop_constanttime(0.1), + groups = {dig_immediate=2}, walkable = false, selection_box = { type = "fixed", @@ -133,7 +133,7 @@ minetest.register_node("mesecons_temperest:mesecon_socket_off", { tile_images = {"jeija_mesecon_socket_off.png"}, inventory_image = "jeija_mesecon_socket_off.png", wield_image = "jeija_mesecon_socket_off.png", - material = minetest.digprop_constanttime(0.1), + groups = {dig_immediate=2}, walkable = false, selection_box = { type = "fixed", @@ -145,7 +145,7 @@ minetest.register_node("mesecons_temperest:mesecon_socket_on", { paramtype = "light", is_ground_content = true, tile_images = {"jeija_mesecon_socket_on.png"}, - material = minetest.digprop_constanttime(0.1), + groups = {dig_immediate=2}, walkable = false, selection_box = { type = "fixed", @@ -180,7 +180,7 @@ if ENABLE_TEMPEREST==1 then paramtype = "light", is_ground_content = true, tile_images = {"jeija_mesecon_inverter_off.png"}, - material = minetest.digprop_constanttime(0.1), + groups = {dig_immediate=2}, walkable = false, selection_box = { type = "fixed", @@ -196,7 +196,7 @@ if ENABLE_TEMPEREST==1 then tile_images = {"jeija_mesecon_inverter_on.png"}, inventory_image = "jeija_mesecon_inverter_on.png", wield_image = "jeija_mesecon_inverter_on.png", - material = minetest.digprop_constanttime(0.1), + groups = {dig_immediate=2}, walkable = false, selection_box = { type = "fixed", diff --git a/mesecons_torch/init.lua b/mesecons_torch/init.lua index b6afb17..dfed5c6 100644 --- a/mesecons_torch/init.lua +++ b/mesecons_torch/init.lua @@ -16,7 +16,7 @@ minetest.register_node("mesecons_torch:mesecon_torch_off", { walkable = false, paramtype2 = "wallmounted", legacy_wallmounted = true, - material = minetest.digprop_constanttime(0.5), + groups = {dig_immediate=2}, drop = '"mesecons_torch:mesecon_torch_on" 1', description="Mesecon Torch", }) @@ -31,7 +31,7 @@ minetest.register_node("mesecons_torch:mesecon_torch_on", { walkable = false, paramtype2 = "wallmounted", legacy_wallmounted = true, - material = minetest.digprop_constanttime(0.5), + groups = {dig_immediate=2}, light_source = LIGHT_MAX-5, description="Mesecon Torch", }) -- cgit v1.2.3