From 20d1b9dd524931204e8a69eefaf60a534247acf9 Mon Sep 17 00:00:00 2001 From: Kotolegokot Date: Wed, 1 Aug 2012 19:36:32 +0600 Subject: [PATCH] Power Plant --- mesecons_blinkyplant/init.lua | 4 ++-- mesecons_powerplant/init.lua | 10 +++++++--- .../textures/jeija_power_plant.png | Bin 227 -> 229 bytes 3 files changed, 9 insertions(+), 5 deletions(-) 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", diff --git a/mesecons_powerplant/init.lua b/mesecons_powerplant/init.lua index b7e4cde..6e3f263 100644 --- a/mesecons_powerplant/init.lua +++ b/mesecons_powerplant/init.lua @@ -1,4 +1,4 @@ --- The POWER_PLANT + -- The POWER_PLANT minetest.register_node("mesecons_powerplant:power_plant", { drawtype = "plantlike", @@ -7,7 +7,7 @@ minetest.register_node("mesecons_powerplant:power_plant", { inventory_image = "jeija_power_plant.png", paramtype = "light", walkable = false, - groups = {snappy=3}, + groups = {dig_immediate=3}, light_source = LIGHT_MAX-9, description="Power Plant", after_place_node = function(pos) @@ -15,7 +15,11 @@ minetest.register_node("mesecons_powerplant:power_plant", { end, 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_power_plant.png b/mesecons_textures/textures/jeija_power_plant.png index 0c92dd0c857e4de4958ee94944a453f226a044cd..6528f57b70c62e5248132e81e189f4503a8b2957 100644 GIT binary patch delta 208 zcmaFN_>|GOGr-TCmrII^fq{Y7)59eQNDBh700$e8{9rgG9!RkzdAqwX{0G4WdzVk1 zs3%{~!N{wmvD;exCQ!P_)5S5w;&gI?1go>epa1n=>=jLWe(>&KH+^8rti0ILZ>vws zTZI<_Y+^N&{{Oq1l92T0{D=4U%0JuQ+$?Nz^!9Fjcx$Wm6X{KrXY1O8AAOgI+h5}m z`9>s_RftDKt!bITzvKlsCdA*j3&=ZhKR%vQiits_{e?V=7${Wg>Eak-aXL9cg4LPf&;R-__I8zS ze`dXRG~J(;kYaLt)iloie|va%cq(KM9BA_YbbtSB9-p57lK=jutDJAJwe~Z}$Xsa< zv%9R_hS_ZW&GQ9Lf8-9op3Z-=zje_Xhdqr4TrRL2tLG7s{P6lV`zf9uzh7&|RWhhP WS1Aa}R44~JfWgz%&t;ucLK6T*I8hM*