Power Plant

This commit is contained in:
Kotolegokot 2012-08-01 19:36:32 +06:00
parent 35de798dcd
commit 20d1b9dd52
3 changed files with 9 additions and 5 deletions

@ -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",

@ -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({

Binary file not shown.

Before

Width:  |  Height:  |  Size: 227 B

After

Width:  |  Height:  |  Size: 229 B