From 70841d8c8e633650d48341afba12bed44f36ace9 Mon Sep 17 00:00:00 2001 From: Kotolegokot Date: Wed, 1 Aug 2012 15:58:19 +0600 Subject: not_in_creative_inventory --- mesecons_blinkyplant/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mesecons_blinkyplant/init.lua') diff --git a/mesecons_blinkyplant/init.lua b/mesecons_blinkyplant/init.lua index 3e6adc2..678dd56 100644 --- a/mesecons_blinkyplant/init.lua +++ b/mesecons_blinkyplant/init.lua @@ -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", -- cgit v1.2.3 From 35de798dcd78809ae50629e3bcf46e9d93b1729e Mon Sep 17 00:00:00 2001 From: Kotolegokot Date: Wed, 1 Aug 2012 16:48:00 +0600 Subject: Blinky Plant --- mesecons_blinkyplant/init.lua | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) (limited to 'mesecons_blinkyplant/init.lua') diff --git a/mesecons_blinkyplant/init.lua b/mesecons_blinkyplant/init.lua index 678dd56..9ae84aa 100644 --- a/mesecons_blinkyplant/init.lua +++ b/mesecons_blinkyplant/init.lua @@ -1,30 +1,38 @@ -- The BLINKY_PLANT minetest.register_node("mesecons_blinkyplant:blinky_plant_off", { - drawtype = "plantlike", + drawtype = "torchlike", visual_scale = 1, tile_images = {"jeija_blinky_plant_off.png"}, 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", { - drawtype = "plantlike", + drawtype = "torchlike", visual_scale = 1, tile_images = {"jeija_blinky_plant_on.png"}, inventory_image = "jeija_blinky_plant_off.png", paramtype = "light", walkable = false, - groups = {snappy=2, not_in_creative_inventory=1}, + 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({ -- cgit v1.2.3 From 20d1b9dd524931204e8a69eefaf60a534247acf9 Mon Sep 17 00:00:00 2001 From: Kotolegokot Date: Wed, 1 Aug 2012 19:36:32 +0600 Subject: Power Plant --- mesecons_blinkyplant/init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mesecons_blinkyplant/init.lua') diff --git a/mesecons_blinkyplant/init.lua b/mesecons_blinkyplant/init.lua index 9ae84aa..105a4db 100644 --- a/mesecons_blinkyplant/init.lua +++ b/mesecons_blinkyplant/init.lua @@ -1,7 +1,7 @@ -- The BLINKY_PLANT minetest.register_node("mesecons_blinkyplant:blinky_plant_off", { - drawtype = "torchlike", + drawtype = "plantlike", visual_scale = 1, tile_images = {"jeija_blinky_plant_off.png"}, inventory_image = "jeija_blinky_plant_off.png", @@ -16,7 +16,7 @@ minetest.register_node("mesecons_blinkyplant:blinky_plant_off", { }) minetest.register_node("mesecons_blinkyplant:blinky_plant_on", { - drawtype = "torchlike", + drawtype = "plantlike", visual_scale = 1, tile_images = {"jeija_blinky_plant_on.png"}, inventory_image = "jeija_blinky_plant_off.png", -- cgit v1.2.3