Update nodes for compatibility with digging time groups.

This commit is contained in:
Anthony Zhang 2012-03-22 17:52:11 -04:00
parent 9ec0767762
commit 3018128b4b
18 changed files with 42 additions and 41 deletions

@ -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,
})

@ -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",

@ -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",
})

@ -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",
})

@ -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",
})

@ -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",
})

@ -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",
})

@ -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",
})

@ -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",

@ -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",
})

@ -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",
})

@ -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",
})

@ -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',
})

@ -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",
})

@ -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",
})

@ -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",
})

@ -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",

@ -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",
})