summaryrefslogtreecommitdiff
path: root/mesecons/mesecons_powerplant
diff options
context:
space:
mode:
Diffstat (limited to 'mesecons/mesecons_powerplant')
-rw-r--r--mesecons/mesecons_powerplant/depends.txt1
-rw-r--r--mesecons/mesecons_powerplant/doc/powerplant/description.html1
-rw-r--r--mesecons/mesecons_powerplant/doc/powerplant/preview.pngbin0 -> 61931 bytes
-rw-r--r--mesecons/mesecons_powerplant/doc/powerplant/recipe.pngbin0 -> 2823 bytes
-rw-r--r--mesecons/mesecons_powerplant/init.lua31
-rw-r--r--mesecons/mesecons_powerplant/textures/jeija_power_plant.pngbin0 -> 437 bytes
6 files changed, 33 insertions, 0 deletions
diff --git a/mesecons/mesecons_powerplant/depends.txt b/mesecons/mesecons_powerplant/depends.txt
new file mode 100644
index 0000000..acaa924
--- /dev/null
+++ b/mesecons/mesecons_powerplant/depends.txt
@@ -0,0 +1 @@
+mesecons
diff --git a/mesecons/mesecons_powerplant/doc/powerplant/description.html b/mesecons/mesecons_powerplant/doc/powerplant/description.html
new file mode 100644
index 0000000..12abbbb
--- /dev/null
+++ b/mesecons/mesecons_powerplant/doc/powerplant/description.html
@@ -0,0 +1 @@
+A power plant is a receptor that is always turned on: It provides energy.
diff --git a/mesecons/mesecons_powerplant/doc/powerplant/preview.png b/mesecons/mesecons_powerplant/doc/powerplant/preview.png
new file mode 100644
index 0000000..473d15c
--- /dev/null
+++ b/mesecons/mesecons_powerplant/doc/powerplant/preview.png
Binary files differ
diff --git a/mesecons/mesecons_powerplant/doc/powerplant/recipe.png b/mesecons/mesecons_powerplant/doc/powerplant/recipe.png
new file mode 100644
index 0000000..04a4002
--- /dev/null
+++ b/mesecons/mesecons_powerplant/doc/powerplant/recipe.png
Binary files differ
diff --git a/mesecons/mesecons_powerplant/init.lua b/mesecons/mesecons_powerplant/init.lua
new file mode 100644
index 0000000..a5e3327
--- /dev/null
+++ b/mesecons/mesecons_powerplant/init.lua
@@ -0,0 +1,31 @@
+-- The POWER_PLANT
+-- Just emits power. always.
+
+minetest.register_node("mesecons_powerplant:power_plant", {
+ drawtype = "plantlike",
+ visual_scale = 1,
+ tiles = {"jeija_power_plant.png"},
+ inventory_image = "jeija_power_plant.png",
+ paramtype = "light",
+ walkable = false,
+ groups = {dig_immediate=3, mesecon = 2},
+ light_source = default.LIGHT_MAX-9,
+ description="Power Plant",
+ selection_box = {
+ type = "fixed",
+ fixed = {-0.3, -0.5, -0.3, 0.3, -0.5+0.7, 0.3},
+ },
+ sounds = default.node_sound_leaves_defaults(),
+ mesecons = {receptor = {
+ state = mesecon.state.on
+ }}
+})
+
+minetest.register_craft({
+ output = "mesecons_powerplant:power_plant 1",
+ recipe = {
+ {"group:mesecon_conductor_craftable"},
+ {"group:mesecon_conductor_craftable"},
+ {"group:sapling"},
+ }
+})
diff --git a/mesecons/mesecons_powerplant/textures/jeija_power_plant.png b/mesecons/mesecons_powerplant/textures/jeija_power_plant.png
new file mode 100644
index 0000000..edc8891
--- /dev/null
+++ b/mesecons/mesecons_powerplant/textures/jeija_power_plant.png
Binary files differ