summaryrefslogtreecommitdiff
path: root/mesecons_blinkyplant/init.lua
diff options
context:
space:
mode:
authorJeija <norrepli@googlemail.com>2012-08-01 07:45:07 -0700
committerJeija <norrepli@googlemail.com>2012-08-01 07:45:07 -0700
commit150da24db6947306ae09340bb80249f922a84af8 (patch)
treed673343390b9ce57f333104df69081e343314c5d /mesecons_blinkyplant/init.lua
parent7568182f4ae2a3cb4ede1c1f81fd26ae9252b841 (diff)
parent20d1b9dd524931204e8a69eefaf60a534247acf9 (diff)
downloadmesecons-150da24db6947306ae09340bb80249f922a84af8.tar
mesecons-150da24db6947306ae09340bb80249f922a84af8.tar.gz
mesecons-150da24db6947306ae09340bb80249f922a84af8.tar.bz2
mesecons-150da24db6947306ae09340bb80249f922a84af8.tar.xz
mesecons-150da24db6947306ae09340bb80249f922a84af8.zip
Merge pull request #6 from Kotolegokot/master
Some modifications and fixed.
Diffstat (limited to 'mesecons_blinkyplant/init.lua')
-rw-r--r--mesecons_blinkyplant/init.lua14
1 files changed, 11 insertions, 3 deletions
diff --git a/mesecons_blinkyplant/init.lua b/mesecons_blinkyplant/init.lua
index 3e6adc2..105a4db 100644
--- a/mesecons_blinkyplant/init.lua
+++ b/mesecons_blinkyplant/init.lua
@@ -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({