summaryrefslogtreecommitdiff
path: root/mesecons_powerplant
diff options
context:
space:
mode:
authorJeija <norrepli@gmail.com>2012-12-09 00:42:30 +0100
committerJeija <norrepli@gmail.com>2012-12-09 00:42:30 +0100
commitb37bdbf55cf6d3205d5dd7a2491a8bd855cbbd76 (patch)
treeffc05ac9f096fc635535701cd287d4e5ad6b5073 /mesecons_powerplant
parentcf6080f7237af1c55a6d80bea4725dcb5c8cb1eb (diff)
downloadmesecons-b37bdbf55cf6d3205d5dd7a2491a8bd855cbbd76.tar
mesecons-b37bdbf55cf6d3205d5dd7a2491a8bd855cbbd76.tar.gz
mesecons-b37bdbf55cf6d3205d5dd7a2491a8bd855cbbd76.tar.bz2
mesecons-b37bdbf55cf6d3205d5dd7a2491a8bd855cbbd76.tar.xz
mesecons-b37bdbf55cf6d3205d5dd7a2491a8bd855cbbd76.zip
Port a lot more (basically everything apart from gates, pistons and extrawire crossing) to the new nodedef system. There are some problems with wall button and wall lever (in the way they visually connect to wires)
Diffstat (limited to 'mesecons_powerplant')
-rw-r--r--mesecons_powerplant/init.lua8
1 files changed, 5 insertions, 3 deletions
diff --git a/mesecons_powerplant/init.lua b/mesecons_powerplant/init.lua
index a45f5cc..006fc19 100644
--- a/mesecons_powerplant/init.lua
+++ b/mesecons_powerplant/init.lua
@@ -1,4 +1,5 @@
- -- The POWER_PLANT
+-- The POWER_PLANT
+-- Just emits power. always.
minetest.register_node("mesecons_powerplant:power_plant", {
drawtype = "plantlike",
@@ -14,6 +15,9 @@ minetest.register_node("mesecons_powerplant:power_plant", {
type = "fixed",
fixed = {-0.1, -0.5, -0.1, 0.1, -0.5+0.6, 0.1},
},
+ mesecons = {receptor = {
+ state = mesecon.state.on
+ }}
})
minetest.register_craft({
@@ -24,5 +28,3 @@ minetest.register_craft({
{'"default:sapling"'},
}
})
-
-mesecon:add_receptor_node("mesecons_powerplant:power_plant")