From 35de798dcd78809ae50629e3bcf46e9d93b1729e Mon Sep 17 00:00:00 2001 From: Kotolegokot Date: Wed, 1 Aug 2012 16:48:00 +0600 Subject: [PATCH] Blinky Plant --- mesecons_blinkyplant/init.lua | 18 +++++++++++++----- .../textures/jeija_blinky_plant_off.png | Bin 201 -> 207 bytes .../textures/jeija_blinky_plant_on.png | Bin 209 -> 214 bytes 3 files changed, 13 insertions(+), 5 deletions(-) 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({ diff --git a/mesecons_textures/textures/jeija_blinky_plant_off.png b/mesecons_textures/textures/jeija_blinky_plant_off.png index 4c545f850f92c83fc04ddf8d76bfc7f7de890ae1..8ee9dbe63ba012ab134c70af20d271ccd95e46a5 100644 GIT binary patch delta 185 zcmX@fc%IR?Gr-TCmrII^fq{Y7)59eQNDBh700$e8{9rgG9!RkzdAqwX{0G4WdzVk1 zs3%{`!N{e|GIe{-KcIAsr;B5V#p&b(307x`Gl>a5{5^Pu4cT-Q5(K#IPS*4A@YqXA zNZimYmHgW&} literal 201 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`jKx9jP7LeL$-D$|I14-?iy0Vr z{1_Oxg&9kAckTxYvX^-Jy0YJ4;S-Z()Y-1$4-|^_ba4!^IGvmz!RpL#CNbehzyG{W ziL=}vBn~y5Z>Zzopr0EHntUH||9 diff --git a/mesecons_textures/textures/jeija_blinky_plant_on.png b/mesecons_textures/textures/jeija_blinky_plant_on.png index 89acfa3109e5a7768b2d8fc3808493a5186c5b42..b4fc16cd544751125f96b21718998533424a1e55 100644 GIT binary patch delta 193 zcmcb}c#YAxGr-TCmrII^fq{Y7)59eQNDBh700$e8{9rgG9!RkzdAqwX{0G4WdzVk1 zs3%{~!N{d7(!o$O3n-oJ>Eak-aXL9cg4J2#&w1{D{xcbkrT+cjU-jqze@Wg7-lRj> zr{?GL@WeC;%*t_gSt{{wTZ*AUhgYDOns)G>|G_dF?83ZQcoUVDJb3=SpGQRc(1{Q8 oi=6-cThgSszy7~c1_uM5wZgoAM?Eco)-iax`mwsKb4q9e0ID`aV*mgE literal 209 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`jKx9jP7LeL$-D$|I14-?iy0Vr z{1_Oxg&9kAckTxYvX^-Jy0YJ4;S-ZF6_I$j8z_|Q>Eak-aXL9cg4LPf&w1{D{`;Ou z^8WuHZ~O26{~oqEZ3YibAD%a7W7Biw@SVoED2S&%dXt2N%hD74%~Lh+{nzAjk=It; z!)738^x*mTejX9Y11CPrH)8(xZ^?y*`}^x3PGx5}v0q_cl>6LiK