Blinky Plant

This commit is contained in:
Kotolegokot 2012-08-01 16:48:00 +06:00
parent e8155f5c6e
commit 35de798dcd
3 changed files with 13 additions and 5 deletions

@ -1,30 +1,38 @@
-- The BLINKY_PLANT -- The BLINKY_PLANT
minetest.register_node("mesecons_blinkyplant:blinky_plant_off", { minetest.register_node("mesecons_blinkyplant:blinky_plant_off", {
drawtype = "plantlike", drawtype = "torchlike",
visual_scale = 1, visual_scale = 1,
tile_images = {"jeija_blinky_plant_off.png"}, tile_images = {"jeija_blinky_plant_off.png"},
inventory_image = "jeija_blinky_plant_off.png", inventory_image = "jeija_blinky_plant_off.png",
paramtype = "light", paramtype = "light",
walkable = false, walkable = false,
groups = {snappy=2}, groups = {dig_immediate=3},
description="Blinky Plant", 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", { minetest.register_node("mesecons_blinkyplant:blinky_plant_on", {
drawtype = "plantlike", drawtype = "torchlike",
visual_scale = 1, visual_scale = 1,
tile_images = {"jeija_blinky_plant_on.png"}, tile_images = {"jeija_blinky_plant_on.png"},
inventory_image = "jeija_blinky_plant_off.png", inventory_image = "jeija_blinky_plant_off.png",
paramtype = "light", paramtype = "light",
walkable = false, 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', drop='"mesecons_blinkyplant:blinky_plant_off" 1',
light_source = LIGHT_MAX-7, light_source = LIGHT_MAX-7,
description = "Blinky Plant", description = "Blinky Plant",
after_dig_node = function(pos) after_dig_node = function(pos)
mesecon:receptor_off(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({ minetest.register_craft({

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