Merge pull request #6 from Kotolegokot/master

Some modifications and fixed.
This commit is contained in:
Jeija 2012-08-01 07:45:07 -07:00
commit 150da24db6
19 changed files with 46 additions and 38 deletions

View File

@ -126,7 +126,7 @@ minetest.register_node("mesecons:mesecon_on", {
type = "fixed",
fixed = {-0.5, -0.5, -0.5, 0.5, -0.45, 0.5},
},
groups = {dig_immediate=3},
groups = {dig_immediate=3, not_in_creaive_inventory=1},
drop = '"mesecons:mesecon_off" 1',
light_source = LIGHT_MAX-11,
})

View File

@ -9,9 +9,9 @@ for i = 1, 5 do
type = "fixed",
fixed = {
{-0.499, -0.499, -0.499, -0.4, 0.499, 0.499},
{ 0.499, -0.499, -0.499, 0.4, 0.499, 0.499},
{ 0.4, -0.499, -0.499, 0.499, 0.499, 0.499},
{-0.499, -0.499, -0.499, 0.499, 0.499, -0.4 },
{-0.499, -0.499, 0.499, 0.499, 0.499, 0.4 },
{-0.499, -0.499, 0.4, 0.499, 0.499, 0.499 },
{-0.4 , -0.5 , -0.4 , 0.4 , 1*(i/5)-0.5, 0.4}}
},
@ -36,9 +36,9 @@ for i = 1, 5 do
type = "fixed",
fixed = {
{-0.499, -0.499, -0.499, -0.4, 0.499, 0.499},
{ 0.499, -0.499, -0.499, 0.4, 0.499, 0.499},
{ 0.4, -0.499, -0.499, 0.499, 0.499, 0.499},
{-0.499, -0.499, -0.499, 0.499, 0.499, -0.4 },
{-0.499, -0.499, 0.499, 0.499, 0.499, 0.4 },
{-0.499, -0.499, 0.4, 0.499, 0.499, 0.499 },
{-0.4 , -0.5 , -0.4 , 0.4 , 1*(i/5)-0.5, 0.4}}
},
@ -46,7 +46,7 @@ for i = 1, 5 do
type = "fixed",
fixed = {-0.5, -0.5, -0.5, 0.5, 0.5, 0.5},
},
groups = {dig_immediate=2},
groups = {dig_immediate=2,not_in_creative_inventory=1},
description="Battery",
})
mesecon:add_receptor_node("mesecons_battery:battery_discharging_"..i)

View File

@ -7,8 +7,12 @@ minetest.register_node("mesecons_blinkyplant:blinky_plant_off", {
inventory_image = "jeija_blinky_plant_off.png",
paramtype = "light",
walkable = false,
groups = {snappy=2},
groups = {dig_immediate=3},
description="Blinky Plant",
selection_box = {
type = "fixed",
fixed = {-0.1, -0.5, -0.1, 0.1, -0.5+0.6, 0.1},
},
})
minetest.register_node("mesecons_blinkyplant:blinky_plant_on", {
@ -18,13 +22,17 @@ minetest.register_node("mesecons_blinkyplant:blinky_plant_on", {
inventory_image = "jeija_blinky_plant_off.png",
paramtype = "light",
walkable = false,
groups = {snappy=2},
groups = {dig_immediate=3, not_in_creative_inventory=1},
drop='"mesecons_blinkyplant:blinky_plant_off" 1',
light_source = LIGHT_MAX-7,
description = "Blinky Plant",
after_dig_node = function(pos)
mesecon:receptor_off(pos)
end
end,
selection_box = {
type = "fixed",
fixed = {-0.1, -0.5, -0.1, 0.1, -0.5+0.6, 0.1},
},
})
minetest.register_craft({

View File

@ -32,7 +32,7 @@ minetest.register_node("mesecons_button:button_on", {
type = "fixed",
fixed = {-0.2, -0.15, 0.4, 0.2, 0.15, 0.5},
},
groups = {dig_immediate=2},
groups = {dig_immediate=2, not_in_creative_inventory=1},
drop = 'mesecons_button:button_off',
description = "Button",
after_dig_node = function(pos, oldnode)

View File

@ -35,7 +35,7 @@ minetest.register_node("mesecons_delayer:delayer_off_2", {
type = "fixed",
fixed = {-0.5, -0.5, -0.5, 0.5, -0.35, 0.5},
},
groups = {bendy=2,snappy=1,dig_immediate=2},
groups = {bendy=2,snappy=1,dig_immediate=2,not_in_creative_inventory=1},
paramtype = "light",
paramtype2 = "facedir",
sunlight_propagates = true,
@ -57,7 +57,7 @@ minetest.register_node("mesecons_delayer:delayer_off_3", {
type = "fixed",
fixed = {-0.5, -0.5, -0.5, 0.5, -0.35, 0.5},
},
groups = {bendy=2,snappy=1,dig_immediate=2},
groups = {bendy=2,snappy=1,dig_immediate=2,not_in_creative_inventory=1},
paramtype = "light",
paramtype2 = "facedir",
sunlight_propagates = true,
@ -79,7 +79,7 @@ minetest.register_node("mesecons_delayer:delayer_off_4", {
type = "fixed",
fixed = {-0.5, -0.5, -0.5, 0.5, -0.35, 0.5},
},
groups = {bendy=2,snappy=1,dig_immediate=2},
groups = {bendy=2,snappy=1,dig_immediate=2,not_in_creative_inventory=1},
paramtype = "light",
paramtype2 = "facedir",
sunlight_propagates = true,
@ -87,10 +87,6 @@ minetest.register_node("mesecons_delayer:delayer_off_4", {
drop = 'mesecons_delayer:delayer_off_1',
})
minetest.register_node("mesecons_delayer:delayer_on_1", {
description = "Delayer",
drawtype = "nodebox",
@ -105,7 +101,7 @@ minetest.register_node("mesecons_delayer:delayer_on_1", {
type = "fixed",
fixed = {-0.5, -0.5, -0.5, 0.5, -0.35, 0.5},
},
groups = {bendy=2,snappy=1,dig_immediate=2},
groups = {bendy=2,snappy=1,dig_immediate=2,not_in_creative_inventory=1},
paramtype = "light",
paramtype2 = "facedir",
sunlight_propagates = true,
@ -127,7 +123,7 @@ minetest.register_node("mesecons_delayer:delayer_on_2", {
type = "fixed",
fixed = {-0.5, -0.5, -0.5, 0.5, -0.35, 0.5},
},
groups = {bendy=2,snappy=1,dig_immediate=2},
groups = {bendy=2,snappy=1,dig_immediate=2,not_in_creative_inventory=1},
paramtype = "light",
paramtype2 = "facedir",
sunlight_propagates = true,
@ -149,7 +145,7 @@ minetest.register_node("mesecons_delayer:delayer_on_3", {
type = "fixed",
fixed = {-0.5, -0.5, -0.5, 0.5, -0.35, 0.5},
},
groups = {bendy=2,snappy=1,dig_immediate=2},
groups = {bendy=2,snappy=1,dig_immediate=2,not_in_creative_inventory=1},
paramtype = "light",
paramtype2 = "facedir",
sunlight_propagates = true,
@ -171,7 +167,7 @@ minetest.register_node("mesecons_delayer:delayer_on_4", {
type = "fixed",
fixed = {-0.5, -0.5, -0.5, 0.5, -0.35, 0.5},
},
groups = {bendy=2,snappy=1,dig_immediate=2},
groups = {bendy=2,snappy=1,dig_immediate=2,not_in_creative_inventory=1},
paramtype = "light",
paramtype2 = "facedir",
sunlight_propagates = true,

View File

@ -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,
groups = {cracky=3},
groups = {cracky=3,not_in_creative_inventory=1},
drop = 'mesecons_detector:object_detector_off',
description="Player Detector",
after_dig_node = function(pos)

View File

@ -26,7 +26,7 @@ minetest.register_node("mesecons_hydroturbine:hydro_turbine_on", {
drawtype = "nodebox",
tile_images = {"jeija_hydro_turbine_on.png"},
drop = '"mesecons_hydroturbine:hydro_turbine_off" 1',
groups = {dig_immediate=2},
groups = {dig_immediate=2,not_in_creative_inventory=1},
description="Water Turbine",
paramtype = "light",
selection_box = {

View File

@ -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},
},
groups = {dig_immediate=3},
groups = {dig_immediate=3,not_in_creative_inventory=1},
drop='"mesecons_lamp:lamp_off" 1',
})

View File

@ -8,7 +8,7 @@ function mesecon:lightstone_add(name, base_item, texture_off, texture_on)
minetest.register_node("mesecons_lightstone:lightstone_" .. name .. "_on", {
tile_images = {texture_on},
inventory_image = minetest.inventorycube(texture_on),
groups = {cracky=2},
groups = {cracky=2,not_in_creative_inventory=1},
drop = "node mesecons_lightstone:lightstone_" .. name .. "_off 1",
light_source = LIGHT_MAX-2,
description=name.." Lightstone",

View File

@ -7,7 +7,7 @@ minetest.register_node("mesecons_powerplant:power_plant", {
inventory_image = "jeija_power_plant.png",
paramtype = "light",
walkable = false,
groups = {snappy=3},
groups = {dig_immediate=3},
light_source = LIGHT_MAX-9,
description="Power Plant",
after_place_node = function(pos)
@ -15,7 +15,11 @@ minetest.register_node("mesecons_powerplant:power_plant", {
end,
after_dig_node = function(pos)
mesecon:receptor_off(pos)
end
end,
selection_box = {
type = "fixed",
fixed = {-0.1, -0.5, -0.1, 0.1, -0.5+0.6, 0.1},
},
})
minetest.register_craft({

View File

@ -34,7 +34,7 @@ minetest.register_node("mesecons_pressureplates:pressure_plate_wood_on", {
type = "fixed",
fixed = {-0.45, -0.5, -0.45, 0.45, -0.48, 0.45},
},
groups = {snappy=2,choppy=2,oddly_breakable_by_hand=3},
groups = {snappy=2,choppy=2,oddly_breakable_by_hand=3,not_in_creative_inventory=1},
drop='"mesecons_pressureplates:pressure_plate_wood_off" 1',
after_dig_node = function(pos)
mesecon:receptor_off(pos, mesecon:get_rules("pressureplate"))
@ -116,7 +116,7 @@ minetest.register_node("mesecons_pressureplates:pressure_plate_stone_on", {
type = "fixed",
fixed = {-0.45, -0.5, -0.45, 0.45, -0.48, 0.45},
},
groups = {snappy=2,choppy=2,oddly_breakable_by_hand=3},
groups = {snappy=2,choppy=2,oddly_breakable_by_hand=3,not_in_creative_inventory=1},
drop='"mesecons_pressureplates:pressure_plate_stone_off" 1',
after_dig_node = function(pos)
mesecon:receptor_off(pos, mesecon:get_rules("pressureplate"))

View File

@ -10,7 +10,7 @@ minetest.register_node("mesecons_switch:mesecon_switch_off", {
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",
groups = {dig_immediate=2},
groups = {dig_immediate=2,not_in_creative_inventory=1},
drop='"mesecons_switch:mesecon_switch_off" 1',
description="Switch",
after_dig_node = function(pos)

View File

@ -156,7 +156,7 @@ minetest.register_node("mesecons_temperest:mesecon_socket_on", {
paramtype = "light",
is_ground_content = true,
tile_images = {"jeija_mesecon_socket_on.png"},
groups = {dig_immediate=2},
groups = {dig_immediate=2,not_in_creative_inventory=1},
walkable = false,
selection_box = {
type = "fixed",
@ -191,7 +191,7 @@ if ENABLE_TEMPEREST then
paramtype = "light",
is_ground_content = true,
tile_images = {"jeija_mesecon_inverter_off.png"},
groups = {dig_immediate=2},
groups = {dig_immediate=2,not_in_creative_inventory=1},
walkable = false,
selection_box = {
type = "fixed",

Binary file not shown.

Before

Width:  |  Height:  |  Size: 201 B

After

Width:  |  Height:  |  Size: 207 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 209 B

After

Width:  |  Height:  |  Size: 214 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 227 B

After

Width:  |  Height:  |  Size: 229 B

View File

@ -31,7 +31,7 @@ minetest.register_node("mesecons_torch:mesecon_torch_on", {
walkable = false,
paramtype2 = "wallmounted",
legacy_wallmounted = true,
groups = {dig_immediate=2},
groups = {dig_immediate=2,not_in_creative_inventory=1},
light_source = LIGHT_MAX-5,
description="Mesecon Torch",
after_place_node = function(pos)

View File

@ -25,7 +25,7 @@ minetest.register_node("mesecons_walllever:wall_lever_on", {
selection_box = {
type = "wallmounted",
},
groups = {dig_immediate=2},
groups = {dig_immediate=2,not_in_creative_inventory=1},
drop = '"mesecons_walllever:wall_lever_off" 1',
description="Lever",
after_dig_node = function(pos, oldnode)