mirror of
https://github.com/minetest-mods/mesecons.git
synced 2024-12-24 17:30:19 +01:00
not_in_creative_inventory
This commit is contained in:
parent
7568182f4a
commit
70841d8c8e
@ -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,
|
||||
})
|
||||
|
@ -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)
|
||||
|
@ -18,7 +18,7 @@ minetest.register_node("mesecons_blinkyplant:blinky_plant_on", {
|
||||
inventory_image = "jeija_blinky_plant_off.png",
|
||||
paramtype = "light",
|
||||
walkable = false,
|
||||
groups = {snappy=2},
|
||||
groups = {snappy=2, not_in_creative_inventory=1},
|
||||
drop='"mesecons_blinkyplant:blinky_plant_off" 1',
|
||||
light_source = LIGHT_MAX-7,
|
||||
description = "Blinky Plant",
|
||||
|
@ -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)
|
||||
|
@ -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,
|
||||
|
@ -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)
|
||||
|
@ -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 = {
|
||||
|
@ -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',
|
||||
})
|
||||
|
||||
|
@ -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",
|
||||
|
@ -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"))
|
||||
|
@ -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)
|
||||
|
@ -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",
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user