forked from minetest-mods/mesecons
Merge pull request #16 from VanessaE/master
mesecons groups settings, detector textures
This commit is contained in:
commit
c060e56e1d
@ -19,7 +19,7 @@ for i = 1, 5 do
|
|||||||
type = "fixed",
|
type = "fixed",
|
||||||
fixed = {-0.5, -0.5, -0.5, 0.5, 0.5, 0.5},
|
fixed = {-0.5, -0.5, -0.5, 0.5, 0.5, 0.5},
|
||||||
},
|
},
|
||||||
groups = {dig_immediate=2},
|
groups = {dig_immediate=2, mesecon = 1},
|
||||||
description="Battery",
|
description="Battery",
|
||||||
})
|
})
|
||||||
mesecon:add_receptor_node_off("mesecons_battery:battery_charging_"..i)
|
mesecon:add_receptor_node_off("mesecons_battery:battery_charging_"..i)
|
||||||
@ -46,7 +46,7 @@ for i = 1, 5 do
|
|||||||
type = "fixed",
|
type = "fixed",
|
||||||
fixed = {-0.5, -0.5, -0.5, 0.5, 0.5, 0.5},
|
fixed = {-0.5, -0.5, -0.5, 0.5, 0.5, 0.5},
|
||||||
},
|
},
|
||||||
groups = {dig_immediate=2,not_in_creative_inventory=1},
|
groups = {dig_immediate=2,not_in_creative_inventory=1, mesecon = 1},
|
||||||
description="Battery",
|
description="Battery",
|
||||||
})
|
})
|
||||||
mesecon:add_receptor_node("mesecons_battery:battery_discharging_"..i)
|
mesecon:add_receptor_node("mesecons_battery:battery_discharging_"..i)
|
||||||
|
@ -7,7 +7,7 @@ minetest.register_node("mesecons_blinkyplant:blinky_plant_off", {
|
|||||||
inventory_image = "jeija_blinky_plant_off.png",
|
inventory_image = "jeija_blinky_plant_off.png",
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
walkable = false,
|
walkable = false,
|
||||||
groups = {dig_immediate=3},
|
groups = {dig_immediate=3, mesecon = 1},
|
||||||
description="Blinky Plant",
|
description="Blinky Plant",
|
||||||
selection_box = {
|
selection_box = {
|
||||||
type = "fixed",
|
type = "fixed",
|
||||||
@ -22,7 +22,7 @@ minetest.register_node("mesecons_blinkyplant:blinky_plant_on", {
|
|||||||
inventory_image = "jeija_blinky_plant_off.png",
|
inventory_image = "jeija_blinky_plant_off.png",
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
walkable = false,
|
walkable = false,
|
||||||
groups = {dig_immediate=3, not_in_creative_inventory=1},
|
groups = {dig_immediate=3, not_in_creative_inventory=1, mesecon = 1},
|
||||||
drop='"mesecons_blinkyplant:blinky_plant_off" 1',
|
drop='"mesecons_blinkyplant:blinky_plant_off" 1',
|
||||||
light_source = LIGHT_MAX-7,
|
light_source = LIGHT_MAX-7,
|
||||||
description = "Blinky Plant",
|
description = "Blinky Plant",
|
||||||
|
@ -24,7 +24,7 @@ minetest.register_node("mesecons_button:button_off", {
|
|||||||
{ -4/16, -2/16, 4/16, 4/16, 2/16, 6/16 } -- the button itself
|
{ -4/16, -2/16, 4/16, 4/16, 2/16, 6/16 } -- the button itself
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
groups = {dig_immediate=2},
|
groups = {dig_immediate=2, mesecon = 1},
|
||||||
description = "Button",
|
description = "Button",
|
||||||
})
|
})
|
||||||
minetest.register_node("mesecons_button:button_on", {
|
minetest.register_node("mesecons_button:button_on", {
|
||||||
@ -53,7 +53,7 @@ minetest.register_node("mesecons_button:button_on", {
|
|||||||
{ -4/16, -2/16, 11/32, 4/16, 2/16, 6/16 }
|
{ -4/16, -2/16, 11/32, 4/16, 2/16, 6/16 }
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
groups = {dig_immediate=2, not_in_creative_inventory=1},
|
groups = {dig_immediate=2, not_in_creative_inventory=1, mesecon = 1},
|
||||||
drop = 'mesecons_button:button_off',
|
drop = 'mesecons_button:button_off',
|
||||||
description = "Button",
|
description = "Button",
|
||||||
after_dig_node = function(pos, oldnode)
|
after_dig_node = function(pos, oldnode)
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
for i = 1, 4 do
|
for i = 1, 4 do
|
||||||
local groups = {}
|
local groups = {}
|
||||||
if i == 1 then
|
if i == 1 then
|
||||||
groups = {bendy=2,snappy=1,dig_immediate=2}
|
groups = {bendy=2,snappy=1,dig_immediate=2, mesecon = 1}
|
||||||
else
|
else
|
||||||
groups = {bendy=2,snappy=1,dig_immediate=2, not_in_creative_inventory=1}
|
groups = {bendy=2,snappy=1,dig_immediate=2, not_in_creative_inventory=1, mesecon = 1}
|
||||||
end
|
end
|
||||||
|
|
||||||
minetest.register_node("mesecons_delayer:delayer_off_"..tostring(i), {
|
minetest.register_node("mesecons_delayer:delayer_off_"..tostring(i), {
|
||||||
@ -49,7 +49,7 @@ minetest.register_node("mesecons_delayer:delayer_on_"..tostring(i), {
|
|||||||
type = "fixed",
|
type = "fixed",
|
||||||
fixed = { -8/16, -8/16, -8/16, 8/16, -7/16, 8/16 },
|
fixed = { -8/16, -8/16, -8/16, 8/16, -7/16, 8/16 },
|
||||||
},
|
},
|
||||||
groups = {bendy=2,snappy=1,dig_immediate=2,not_in_creative_inventory=1},
|
groups = {bendy=2,snappy=1,dig_immediate=2,not_in_creative_inventory=1, mesecon = 1},
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
|
@ -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"},
|
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",
|
paramtype = "light",
|
||||||
walkable = true,
|
walkable = true,
|
||||||
groups = {cracky=3},
|
groups = {cracky=3, mesecon = 1},
|
||||||
description="Player Detector",
|
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"},
|
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",
|
paramtype = "light",
|
||||||
walkable = true,
|
walkable = true,
|
||||||
groups = {cracky=3,not_in_creative_inventory=1},
|
groups = {cracky=3,not_in_creative_inventory=1, mesecon = 1},
|
||||||
drop = 'mesecons_detector:object_detector_off',
|
drop = 'mesecons_detector:object_detector_off',
|
||||||
description="Player Detector",
|
description="Player Detector",
|
||||||
after_dig_node = function(pos)
|
after_dig_node = function(pos)
|
||||||
|
@ -86,7 +86,7 @@ for i = 1, 4 do
|
|||||||
tile_images = {"default_wood.png"},
|
tile_images = {"default_wood.png"},
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
is_ground_content = true,
|
is_ground_content = true,
|
||||||
groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2},
|
groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2, mesecon = 1},
|
||||||
drop = "mesecons_door:door",
|
drop = "mesecons_door:door",
|
||||||
node_box = {
|
node_box = {
|
||||||
type = "fixed",
|
type = "fixed",
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
minetest.register_node("mesecons_hydroturbine:hydro_turbine_off", {
|
minetest.register_node("mesecons_hydroturbine:hydro_turbine_off", {
|
||||||
drawtype = "nodebox",
|
drawtype = "nodebox",
|
||||||
tile_images = {"jeija_hydro_turbine_off.png"},
|
tile_images = {"jeija_hydro_turbine_off.png"},
|
||||||
groups = {dig_immediate=2},
|
groups = {dig_immediate=2, mesecon = 1},
|
||||||
description="Water Turbine",
|
description="Water Turbine",
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
selection_box = {
|
selection_box = {
|
||||||
@ -26,7 +26,7 @@ minetest.register_node("mesecons_hydroturbine:hydro_turbine_on", {
|
|||||||
drawtype = "nodebox",
|
drawtype = "nodebox",
|
||||||
tile_images = {"jeija_hydro_turbine_on.png"},
|
tile_images = {"jeija_hydro_turbine_on.png"},
|
||||||
drop = '"mesecons_hydroturbine:hydro_turbine_off" 1',
|
drop = '"mesecons_hydroturbine:hydro_turbine_off" 1',
|
||||||
groups = {dig_immediate=2,not_in_creative_inventory=1},
|
groups = {dig_immediate=2,not_in_creative_inventory=1, mesecon = 1},
|
||||||
description="Water Turbine",
|
description="Water Turbine",
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
selection_box = {
|
selection_box = {
|
||||||
|
@ -20,7 +20,7 @@ minetest.register_node("mesecons_lamp:lamp_on", {
|
|||||||
wall_bottom = {-0.3125,-0.5,-0.3125,0.3125,-0.375,0.3125},
|
wall_bottom = {-0.3125,-0.5,-0.3125,0.3125,-0.375,0.3125},
|
||||||
wall_side = {-0.375,-0.3125,-0.3125,-0.5,0.3125,0.3125},
|
wall_side = {-0.375,-0.3125,-0.3125,-0.5,0.3125,0.3125},
|
||||||
},
|
},
|
||||||
groups = {dig_immediate=3,not_in_creative_inventory=1},
|
groups = {dig_immediate=3,not_in_creative_inventory=1, mesecon = 1},
|
||||||
drop='"mesecons_lamp:lamp_off" 1',
|
drop='"mesecons_lamp:lamp_off" 1',
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -45,7 +45,7 @@ minetest.register_node("mesecons_lamp:lamp_off", {
|
|||||||
wall_bottom = {-0.3125,-0.5,-0.3125,0.3125,-0.375,0.3125},
|
wall_bottom = {-0.3125,-0.5,-0.3125,0.3125,-0.375,0.3125},
|
||||||
wall_side = {-0.375,-0.3125,-0.3125,-0.5,0.3125,0.3125},
|
wall_side = {-0.375,-0.3125,-0.3125,-0.5,0.3125,0.3125},
|
||||||
},
|
},
|
||||||
groups = {dig_immediate=3},
|
groups = {dig_immediate=3, mesecon = 1},
|
||||||
description="Meselamp",
|
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", {
|
minetest.register_node("mesecons_lightstone:lightstone_" .. name .. "_off", {
|
||||||
tile_images = {texture_off},
|
tile_images = {texture_off},
|
||||||
inventory_image = minetest.inventorycube(texture_off),
|
inventory_image = minetest.inventorycube(texture_off),
|
||||||
groups = {cracky=2},
|
groups = {cracky=2, mesecon = 1},
|
||||||
description=name.." Lightstone",
|
description=name.." Lightstone",
|
||||||
})
|
})
|
||||||
minetest.register_node("mesecons_lightstone:lightstone_" .. name .. "_on", {
|
minetest.register_node("mesecons_lightstone:lightstone_" .. name .. "_on", {
|
||||||
tile_images = {texture_on},
|
tile_images = {texture_on},
|
||||||
inventory_image = minetest.inventorycube(texture_on),
|
inventory_image = minetest.inventorycube(texture_on),
|
||||||
groups = {cracky=2,not_in_creative_inventory=1},
|
groups = {cracky=2,not_in_creative_inventory=1, mesecon = 1},
|
||||||
drop = "node mesecons_lightstone:lightstone_" .. name .. "_off 1",
|
drop = "node mesecons_lightstone:lightstone_" .. name .. "_off 1",
|
||||||
light_source = LIGHT_MAX-2,
|
light_source = LIGHT_MAX-2,
|
||||||
description=name.." Lightstone",
|
description=name.." Lightstone",
|
||||||
|
@ -6,9 +6,9 @@ for c = 0, 1 do
|
|||||||
for d = 0, 1 do
|
for d = 0, 1 do
|
||||||
local nodename = "mesecons_microcontroller:microcontroller"..tostring(d)..tostring(c)..tostring(b)..tostring(a)
|
local nodename = "mesecons_microcontroller:microcontroller"..tostring(d)..tostring(c)..tostring(b)..tostring(a)
|
||||||
if tostring(d)..tostring(c)..tostring(b)..tostring(a) ~= "0000" then
|
if tostring(d)..tostring(c)..tostring(b)..tostring(a) ~= "0000" then
|
||||||
groups = {dig_immediate=2, not_in_creative_inventory=1}
|
groups = {dig_immediate=2, not_in_creative_inventory=1, mesecon = 1}
|
||||||
else
|
else
|
||||||
groups = {dig_immediate=2}
|
groups = {dig_immediate=2, mesecon = 1}
|
||||||
end
|
end
|
||||||
minetest.register_node(nodename, {
|
minetest.register_node(nodename, {
|
||||||
description = "Microcontroller",
|
description = "Microcontroller",
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
minetest.register_node("mesecons_noteblock:noteblock", {
|
minetest.register_node("mesecons_noteblock:noteblock", {
|
||||||
description = "Noteblock",
|
description = "Noteblock",
|
||||||
tile_images = {"mesecons_noteblock.png"},
|
tile_images = {"mesecons_noteblock.png"},
|
||||||
groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2},
|
groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2, mesecon = 1},
|
||||||
drawtype = "allfaces_optional",
|
drawtype = "allfaces_optional",
|
||||||
visual_scale = 1.3,
|
visual_scale = 1.3,
|
||||||
paramtype="light",
|
paramtype="light",
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
minetest.register_node("mesecons_pistons:piston_normal", {
|
minetest.register_node("mesecons_pistons:piston_normal", {
|
||||||
description = "Piston",
|
description = "Piston",
|
||||||
tiles = {"jeija_piston_tb.png", "jeija_piston_tb.png", "jeija_piston_tb.png", "jeija_piston_tb.png", "jeija_piston_tb.png", "jeija_piston_side.png"},
|
tiles = {"jeija_piston_tb.png", "jeija_piston_tb.png", "jeija_piston_tb.png", "jeija_piston_tb.png", "jeija_piston_tb.png", "jeija_piston_side.png"},
|
||||||
groups = {cracky=3},
|
groups = {cracky=3, mesecon = 1},
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
after_dig_node = function(pos, oldnode)
|
after_dig_node = function(pos, oldnode)
|
||||||
local dir = mesecon:piston_get_direction(oldnode)
|
local dir = mesecon:piston_get_direction(oldnode)
|
||||||
@ -23,7 +23,7 @@ minetest.register_node("mesecons_pistons:piston_normal", {
|
|||||||
minetest.register_node("mesecons_pistons:piston_sticky", {
|
minetest.register_node("mesecons_pistons:piston_sticky", {
|
||||||
description = "Sticky Piston",
|
description = "Sticky Piston",
|
||||||
tiles = {"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"},
|
tiles = {"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"},
|
||||||
groups = {cracky=3},
|
groups = {cracky=3, mesecon = 1},
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
after_dig_node = function(pos, oldnode)
|
after_dig_node = function(pos, oldnode)
|
||||||
local dir = mesecon:piston_get_direction(oldnode)
|
local dir = mesecon:piston_get_direction(oldnode)
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
minetest.register_node("mesecons_pistons:piston_down_normal", {
|
minetest.register_node("mesecons_pistons:piston_down_normal", {
|
||||||
description = "Piston DOWN",
|
description = "Piston DOWN",
|
||||||
tiles = {"jeija_piston_tb.png", "jeija_piston_side.png", "jeija_piston_tb.png", "jeija_piston_tb.png", "jeija_piston_tb.png", "jeija_piston_tb.png"},
|
tiles = {"jeija_piston_tb.png", "jeija_piston_side.png", "jeija_piston_tb.png", "jeija_piston_tb.png", "jeija_piston_tb.png", "jeija_piston_tb.png"},
|
||||||
groups = {cracky=3},
|
groups = {cracky=3, mesecon = 1},
|
||||||
after_dig_node = function(pos, oldnode)
|
after_dig_node = function(pos, oldnode)
|
||||||
local dir = {x=0, y=-1, z=0}
|
local dir = {x=0, y=-1, z=0}
|
||||||
pos.x, pos.y, pos.z = pos.x + dir.x, pos.y + dir.y, pos.z + dir.z --move to first node to check
|
pos.x, pos.y, pos.z = pos.x + dir.x, pos.y + dir.y, pos.z + dir.z --move to first node to check
|
||||||
@ -22,7 +22,7 @@ minetest.register_node("mesecons_pistons:piston_down_normal", {
|
|||||||
minetest.register_node("mesecons_pistons:piston_down_sticky", {
|
minetest.register_node("mesecons_pistons:piston_down_sticky", {
|
||||||
description = "Sticky Piston DOWN",
|
description = "Sticky Piston DOWN",
|
||||||
tiles = {"jeija_piston_tb.png", "jeija_piston_sticky_side.png", "jeija_piston_tb.png", "jeija_piston_tb.png", "jeija_piston_tb.png", "jeija_piston_tb.png"},
|
tiles = {"jeija_piston_tb.png", "jeija_piston_sticky_side.png", "jeija_piston_tb.png", "jeija_piston_tb.png", "jeija_piston_tb.png", "jeija_piston_tb.png"},
|
||||||
groups = {cracky=3},
|
groups = {cracky=3, mesecon = 1},
|
||||||
after_dig_node = function(pos, oldnode)
|
after_dig_node = function(pos, oldnode)
|
||||||
local dir = {x=0, y=-1, z=0}
|
local dir = {x=0, y=-1, z=0}
|
||||||
pos.x, pos.y, pos.z = pos.x + dir.x, pos.y + dir.y, pos.z + dir.z --move to first node to check
|
pos.x, pos.y, pos.z = pos.x + dir.x, pos.y + dir.y, pos.z + dir.z --move to first node to check
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
minetest.register_node("mesecons_pistons:piston_up_normal", {
|
minetest.register_node("mesecons_pistons:piston_up_normal", {
|
||||||
description = "Piston UP",
|
description = "Piston UP",
|
||||||
tiles = {"jeija_piston_side.png", "jeija_piston_tb.png", "jeija_piston_tb.png", "jeija_piston_tb.png", "jeija_piston_tb.png", "jeija_piston_tb.png"},
|
tiles = {"jeija_piston_side.png", "jeija_piston_tb.png", "jeija_piston_tb.png", "jeija_piston_tb.png", "jeija_piston_tb.png", "jeija_piston_tb.png"},
|
||||||
groups = {cracky=3},
|
groups = {cracky=3, mesecon = 1},
|
||||||
after_dig_node = function(pos, oldnode)
|
after_dig_node = function(pos, oldnode)
|
||||||
local dir = {x=0, y=1, z=0}
|
local dir = {x=0, y=1, z=0}
|
||||||
pos.x, pos.y, pos.z = pos.x + dir.x, pos.y + dir.y, pos.z + dir.z --move to first node to check
|
pos.x, pos.y, pos.z = pos.x + dir.x, pos.y + dir.y, pos.z + dir.z --move to first node to check
|
||||||
@ -22,7 +22,7 @@ minetest.register_node("mesecons_pistons:piston_up_normal", {
|
|||||||
minetest.register_node("mesecons_pistons:piston_up_sticky", {
|
minetest.register_node("mesecons_pistons:piston_up_sticky", {
|
||||||
description = "Sticky Piston UP",
|
description = "Sticky Piston UP",
|
||||||
tiles = {"jeija_piston_sticky_side.png", "jeija_piston_tb.png", "jeija_piston_tb.png", "jeija_piston_tb.png", "jeija_piston_tb.png", "jeija_piston_tb.png"},
|
tiles = {"jeija_piston_sticky_side.png", "jeija_piston_tb.png", "jeija_piston_tb.png", "jeija_piston_tb.png", "jeija_piston_tb.png", "jeija_piston_tb.png"},
|
||||||
groups = {cracky=3},
|
groups = {cracky=3, mesecon = 1},
|
||||||
after_dig_node = function(pos, oldnode)
|
after_dig_node = function(pos, oldnode)
|
||||||
local dir = {x=0, y=1, z=0}
|
local dir = {x=0, y=1, z=0}
|
||||||
pos.x, pos.y, pos.z = pos.x + dir.x, pos.y + dir.y, pos.z + dir.z --move to first node to check
|
pos.x, pos.y, pos.z = pos.x + dir.x, pos.y + dir.y, pos.z + dir.z --move to first node to check
|
||||||
|
@ -7,7 +7,7 @@ minetest.register_node("mesecons_powerplant:power_plant", {
|
|||||||
inventory_image = "jeija_power_plant.png",
|
inventory_image = "jeija_power_plant.png",
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
walkable = false,
|
walkable = false,
|
||||||
groups = {dig_immediate=3},
|
groups = {dig_immediate=3, mesecon = 1},
|
||||||
light_source = LIGHT_MAX-9,
|
light_source = LIGHT_MAX-9,
|
||||||
description="Power Plant",
|
description="Power Plant",
|
||||||
after_place_node = function(pos)
|
after_place_node = function(pos)
|
||||||
|
@ -16,7 +16,7 @@ minetest.register_node("mesecons_pressureplates:pressure_plate_wood_off", {
|
|||||||
type = "fixed",
|
type = "fixed",
|
||||||
fixed = { -7/16, -8/16, -7/16, 7/16, -7/16, 7/16 },
|
fixed = { -7/16, -8/16, -7/16, 7/16, -7/16, 7/16 },
|
||||||
},
|
},
|
||||||
groups = {snappy=2,choppy=2,oddly_breakable_by_hand=3},
|
groups = {snappy=2,choppy=2,oddly_breakable_by_hand=3, mesecon = 1},
|
||||||
description="Wood Pressure Plate",
|
description="Wood Pressure Plate",
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -34,7 +34,7 @@ minetest.register_node("mesecons_pressureplates:pressure_plate_wood_on", {
|
|||||||
type = "fixed",
|
type = "fixed",
|
||||||
fixed = { -7/16, -8/16, -7/16, 7/16, -31/64, 7/16 },
|
fixed = { -7/16, -8/16, -7/16, 7/16, -31/64, 7/16 },
|
||||||
},
|
},
|
||||||
groups = {snappy=2,choppy=2,oddly_breakable_by_hand=3,not_in_creative_inventory=1},
|
groups = {snappy=2,choppy=2,oddly_breakable_by_hand=3,not_in_creative_inventory=1, mesecon = 1},
|
||||||
drop='"mesecons_pressureplates:pressure_plate_wood_off" 1',
|
drop='"mesecons_pressureplates:pressure_plate_wood_off" 1',
|
||||||
after_dig_node = function(pos)
|
after_dig_node = function(pos)
|
||||||
mesecon:receptor_off(pos, mesecon:get_rules("pressureplate"))
|
mesecon:receptor_off(pos, mesecon:get_rules("pressureplate"))
|
||||||
@ -98,7 +98,7 @@ minetest.register_node("mesecons_pressureplates:pressure_plate_stone_off", {
|
|||||||
type = "fixed",
|
type = "fixed",
|
||||||
fixed = { -7/16, -8/16, -7/16, 7/16, -7/16, 7/16 },
|
fixed = { -7/16, -8/16, -7/16, 7/16, -7/16, 7/16 },
|
||||||
},
|
},
|
||||||
groups = {snappy=2,choppy=2,oddly_breakable_by_hand=3},
|
groups = {snappy=2,choppy=2,oddly_breakable_by_hand=3, mesecon = 1},
|
||||||
description="Stone Pressure Plate",
|
description="Stone Pressure Plate",
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -116,7 +116,7 @@ minetest.register_node("mesecons_pressureplates:pressure_plate_stone_on", {
|
|||||||
type = "fixed",
|
type = "fixed",
|
||||||
fixed = { -7/16, -8/16, -7/16, 7/16, -31/64, 7/16 },
|
fixed = { -7/16, -8/16, -7/16, 7/16, -31/64, 7/16 },
|
||||||
},
|
},
|
||||||
groups = {snappy=2,choppy=2,oddly_breakable_by_hand=3,not_in_creative_inventory=1},
|
groups = {snappy=2,choppy=2,oddly_breakable_by_hand=3,not_in_creative_inventory=1, mesecon = 1},
|
||||||
drop='"mesecons_pressureplates:pressure_plate_stone_off" 1',
|
drop='"mesecons_pressureplates:pressure_plate_stone_off" 1',
|
||||||
after_dig_node = function(pos)
|
after_dig_node = function(pos)
|
||||||
mesecon:receptor_off(pos, mesecon:get_rules("pressureplate"))
|
mesecon:receptor_off(pos, mesecon:get_rules("pressureplate"))
|
||||||
|
@ -4,7 +4,7 @@ minetest.register_node("mesecons_random:removestone", {
|
|||||||
tile_images = {"jeija_removestone.png"},
|
tile_images = {"jeija_removestone.png"},
|
||||||
inventory_image = minetest.inventorycube("jeija_removestone_inv.png"),
|
inventory_image = minetest.inventorycube("jeija_removestone_inv.png"),
|
||||||
material = minetest.digprop_stonelike(1.0),
|
material = minetest.digprop_stonelike(1.0),
|
||||||
groups = {cracky=3},
|
groups = {cracky=3, mesecon = 1},
|
||||||
description="Removestone",
|
description="Removestone",
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -21,7 +21,7 @@ minetest.register_node("mesecons_solarpanel:solar_panel", {
|
|||||||
wall_side = { -8/16, -7/16, -7/16, -7/16, 7/16, 7/16 },
|
wall_side = { -8/16, -7/16, -7/16, -7/16, 7/16, 7/16 },
|
||||||
},
|
},
|
||||||
furnace_burntime = 5,
|
furnace_burntime = 5,
|
||||||
groups = {dig_immediate=3},
|
groups = {dig_immediate=3, mesecon = 1},
|
||||||
description="Solar Panel",
|
description="Solar Panel",
|
||||||
after_dig_node = function(pos, node, digger)
|
after_dig_node = function(pos, node, digger)
|
||||||
mesecon:receptor_off(pos)
|
mesecon:receptor_off(pos)
|
||||||
|
@ -3,14 +3,14 @@
|
|||||||
minetest.register_node("mesecons_switch:mesecon_switch_off", {
|
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"},
|
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",
|
paramtype2="facedir",
|
||||||
groups = {dig_immediate=2},
|
groups = {dig_immediate=2, mesecon = 1, mesecon = 1},
|
||||||
description="Switch",
|
description="Switch",
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_node("mesecons_switch:mesecon_switch_on", {
|
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"},
|
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",
|
paramtype2="facedir",
|
||||||
groups = {dig_immediate=2,not_in_creative_inventory=1},
|
groups = {dig_immediate=2,not_in_creative_inventory=1, mesecon = 1, mesecon = 1},
|
||||||
drop='"mesecons_switch:mesecon_switch_off" 1',
|
drop='"mesecons_switch:mesecon_switch_off" 1',
|
||||||
description="Switch",
|
description="Switch",
|
||||||
after_dig_node = function(pos)
|
after_dig_node = function(pos)
|
||||||
|
@ -105,7 +105,7 @@ minetest.register_node("mesecons_temperest:mesecon_plug", {
|
|||||||
tile_images = {"jeija_mesecon_plug.png"},
|
tile_images = {"jeija_mesecon_plug.png"},
|
||||||
inventory_image = "jeija_mesecon_plug.png",
|
inventory_image = "jeija_mesecon_plug.png",
|
||||||
wield_image = "jeija_mesecon_plug.png",
|
wield_image = "jeija_mesecon_plug.png",
|
||||||
groups = {dig_immediate=2},
|
groups = {dig_immediate=2, mesecon = 1},
|
||||||
walkable = false,
|
walkable = false,
|
||||||
selection_box = {
|
selection_box = {
|
||||||
type = "fixed",
|
type = "fixed",
|
||||||
@ -139,7 +139,7 @@ minetest.register_node("mesecons_temperest:mesecon_socket_off", {
|
|||||||
tile_images = {"jeija_mesecon_socket_off.png"},
|
tile_images = {"jeija_mesecon_socket_off.png"},
|
||||||
inventory_image = "jeija_mesecon_socket_off.png",
|
inventory_image = "jeija_mesecon_socket_off.png",
|
||||||
wield_image = "jeija_mesecon_socket_off.png",
|
wield_image = "jeija_mesecon_socket_off.png",
|
||||||
groups = {dig_immediate=2},
|
groups = {dig_immediate=2, mesecon = 1},
|
||||||
walkable = false,
|
walkable = false,
|
||||||
selection_box = {
|
selection_box = {
|
||||||
type = "fixed",
|
type = "fixed",
|
||||||
@ -156,7 +156,7 @@ minetest.register_node("mesecons_temperest:mesecon_socket_on", {
|
|||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
is_ground_content = true,
|
is_ground_content = true,
|
||||||
tile_images = {"jeija_mesecon_socket_on.png"},
|
tile_images = {"jeija_mesecon_socket_on.png"},
|
||||||
groups = {dig_immediate=2,not_in_creative_inventory=1},
|
groups = {dig_immediate=2,not_in_creative_inventory=1, mesecon = 1},
|
||||||
walkable = false,
|
walkable = false,
|
||||||
selection_box = {
|
selection_box = {
|
||||||
type = "fixed",
|
type = "fixed",
|
||||||
@ -191,7 +191,7 @@ if ENABLE_TEMPEREST then
|
|||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
is_ground_content = true,
|
is_ground_content = true,
|
||||||
tile_images = {"jeija_mesecon_inverter_off.png"},
|
tile_images = {"jeija_mesecon_inverter_off.png"},
|
||||||
groups = {dig_immediate=2,not_in_creative_inventory=1},
|
groups = {dig_immediate=2,not_in_creative_inventory=1, mesecon = 1},
|
||||||
walkable = false,
|
walkable = false,
|
||||||
selection_box = {
|
selection_box = {
|
||||||
type = "fixed",
|
type = "fixed",
|
||||||
@ -212,7 +212,7 @@ if ENABLE_TEMPEREST then
|
|||||||
tile_images = {"jeija_mesecon_inverter_on.png"},
|
tile_images = {"jeija_mesecon_inverter_on.png"},
|
||||||
inventory_image = "jeija_mesecon_inverter_on.png",
|
inventory_image = "jeija_mesecon_inverter_on.png",
|
||||||
wield_image = "jeija_mesecon_inverter_on.png",
|
wield_image = "jeija_mesecon_inverter_on.png",
|
||||||
groups = {dig_immediate=2},
|
groups = {dig_immediate=2, mesecon = 1},
|
||||||
walkable = false,
|
walkable = false,
|
||||||
selection_box = {
|
selection_box = {
|
||||||
type = "fixed",
|
type = "fixed",
|
||||||
|
Binary file not shown.
Before Width: | Height: | Size: 750 B After Width: | Height: | Size: 712 B |
Binary file not shown.
Before Width: | Height: | Size: 764 B After Width: | Height: | Size: 735 B |
@ -26,7 +26,7 @@ minetest.register_node("mesecons_walllever:wall_lever_off", {
|
|||||||
{ -2/16, -1/16, 3/16, 2/16, 1/16, 4/16 }, -- the lever "hinge"
|
{ -2/16, -1/16, 3/16, 2/16, 1/16, 4/16 }, -- the lever "hinge"
|
||||||
{ -1/16, -8/16, 4/16, 1/16, 0, 6/16 }} -- the lever itself.
|
{ -1/16, -8/16, 4/16, 1/16, 0, 6/16 }} -- the lever itself.
|
||||||
},
|
},
|
||||||
groups = {dig_immediate=2},
|
groups = {dig_immediate=2, mesecon = 1},
|
||||||
description="Lever",
|
description="Lever",
|
||||||
})
|
})
|
||||||
minetest.register_node("mesecons_walllever:wall_lever_on", {
|
minetest.register_node("mesecons_walllever:wall_lever_on", {
|
||||||
@ -56,7 +56,7 @@ minetest.register_node("mesecons_walllever:wall_lever_on", {
|
|||||||
{ -2/16, -1/16, 3/16, 2/16, 1/16, 4/16 }, -- the lever "hinge"
|
{ -2/16, -1/16, 3/16, 2/16, 1/16, 4/16 }, -- the lever "hinge"
|
||||||
{ -1/16, 0, 4/16, 1/16, 8/16, 6/16 }} -- the lever itself.
|
{ -1/16, 0, 4/16, 1/16, 8/16, 6/16 }} -- the lever itself.
|
||||||
},
|
},
|
||||||
groups = {dig_immediate=2,not_in_creative_inventory=1},
|
groups = {dig_immediate=2,not_in_creative_inventory=1, mesecon = 1},
|
||||||
drop = '"mesecons_walllever:wall_lever_off" 1',
|
drop = '"mesecons_walllever:wall_lever_off" 1',
|
||||||
description="Lever",
|
description="Lever",
|
||||||
after_dig_node = function(pos, oldnode)
|
after_dig_node = function(pos, oldnode)
|
||||||
|
Loading…
Reference in New Issue
Block a user