diff options
author | Kotolegokot <gkotolegokot@gmail.com> | 2012-08-02 10:53:45 +0600 |
---|---|---|
committer | Kotolegokot <gkotolegokot@gmail.com> | 2012-08-02 11:43:43 +0600 |
commit | 83aa17606d9497388d0dc846a0f3caee9a4d221c (patch) | |
tree | 9759e4143980def3a0e34fb66801e967d59e41ee | |
parent | 9f493e8cb723137b7f42c501ba640d128d208fe4 (diff) | |
download | mesecons-83aa17606d9497388d0dc846a0f3caee9a4d221c.tar mesecons-83aa17606d9497388d0dc846a0f3caee9a4d221c.tar.gz mesecons-83aa17606d9497388d0dc846a0f3caee9a4d221c.tar.bz2 mesecons-83aa17606d9497388d0dc846a0f3caee9a4d221c.tar.xz mesecons-83aa17606d9497388d0dc846a0f3caee9a4d221c.zip |
Solar panel
-rw-r--r-- | mesecons_solarpanel/init.lua | 18 | ||||
-rw-r--r-- | mesecons_textures/textures/jeija_solar_panel.png | bin | 699 -> 704 bytes |
2 files changed, 15 insertions, 3 deletions
diff --git a/mesecons_solarpanel/init.lua b/mesecons_solarpanel/init.lua index 6665d89..bea4b61 100644 --- a/mesecons_solarpanel/init.lua +++ b/mesecons_solarpanel/init.lua @@ -1,19 +1,31 @@ -- Solar Panel minetest.register_node("mesecons_solarpanel:solar_panel", { - drawtype = "raillike", + drawtype = "nodebox", tile_images = {"jeija_solar_panel.png"}, inventory_image = "jeija_solar_panel.png", wield_image = "jeija_solar_panel.png", paramtype = "light", + paramtype2 = "wallmounted", walkable = false, is_ground_content = true, + node_box = { + type = "wallmounted", + wall_bottom = {-0.4375, -0.5, -0.4375, 0.4375, -0.45, 0.4375}, + wall_top = {-0.4375, 0.45, -0.4375, 0.4375, 0.5, 0.4375}, + wall_side = {-0.5, -0.4375, -0.4375, -0.45, 0.4375, 0.4375}, + }, selection_box = { - type = "fixed", - fixed = {-0.5, -0.5, -0.5, 0.5, -0.45, 0.5}, + type = "wallmounted", + wall_bottom = {-0.4375, -0.5, -0.4375, 0.4375, -0.45, 0.4375}, + wall_top = {-0.4375, 0.45, -0.4375, 0.4375, 0.5, 0.4375}, + wall_side = {-0.5, -0.4375, -0.4375, -0.45, 0.4375, 0.4375}, }, furnace_burntime = 5, groups = {dig_immediate=3}, description="Solar Panel", + after_dig_node = function(pos, node, digger) + mesecon:receptor_off(pos) + end, }) minetest.register_craft({ diff --git a/mesecons_textures/textures/jeija_solar_panel.png b/mesecons_textures/textures/jeija_solar_panel.png Binary files differindex 6bfa1f4..30bab6f 100644 --- a/mesecons_textures/textures/jeija_solar_panel.png +++ b/mesecons_textures/textures/jeija_solar_panel.png |