mirror of
https://github.com/minetest-mods/mesecons.git
synced 2024-09-12 07:58:32 +02:00
Solar panel
This commit is contained in:
parent
9f493e8cb7
commit
83aa17606d
@ -1,19 +1,31 @@
|
|||||||
-- Solar Panel
|
-- Solar Panel
|
||||||
minetest.register_node("mesecons_solarpanel:solar_panel", {
|
minetest.register_node("mesecons_solarpanel:solar_panel", {
|
||||||
drawtype = "raillike",
|
drawtype = "nodebox",
|
||||||
tile_images = {"jeija_solar_panel.png"},
|
tile_images = {"jeija_solar_panel.png"},
|
||||||
inventory_image = "jeija_solar_panel.png",
|
inventory_image = "jeija_solar_panel.png",
|
||||||
wield_image = "jeija_solar_panel.png",
|
wield_image = "jeija_solar_panel.png",
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
|
paramtype2 = "wallmounted",
|
||||||
walkable = false,
|
walkable = false,
|
||||||
is_ground_content = true,
|
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 = {
|
selection_box = {
|
||||||
type = "fixed",
|
type = "wallmounted",
|
||||||
fixed = {-0.5, -0.5, -0.5, 0.5, -0.45, 0.5},
|
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,
|
furnace_burntime = 5,
|
||||||
groups = {dig_immediate=3},
|
groups = {dig_immediate=3},
|
||||||
description="Solar Panel",
|
description="Solar Panel",
|
||||||
|
after_dig_node = function(pos, node, digger)
|
||||||
|
mesecon:receptor_off(pos)
|
||||||
|
end,
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
|
Binary file not shown.
Before Width: | Height: | Size: 699 B After Width: | Height: | Size: 704 B |
Loading…
Reference in New Issue
Block a user