summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony Zhang <azhang9@gmail.com>2012-02-04 13:01:56 -0500
committerAnthony Zhang <azhang9@gmail.com>2012-02-04 13:01:56 -0500
commit9aaa4af37e5f2a9c3a85cfe30049429ccdfea9e4 (patch)
tree09b1c1fb1e06b65eae7223e44f59af840fb1137a
parent400511949ab0fac6a9f1612b6b9e6a2cee71a46f (diff)
downloadmesecons-9aaa4af37e5f2a9c3a85cfe30049429ccdfea9e4.tar
mesecons-9aaa4af37e5f2a9c3a85cfe30049429ccdfea9e4.tar.gz
mesecons-9aaa4af37e5f2a9c3a85cfe30049429ccdfea9e4.tar.bz2
mesecons-9aaa4af37e5f2a9c3a85cfe30049429ccdfea9e4.tar.xz
mesecons-9aaa4af37e5f2a9c3a85cfe30049429ccdfea9e4.zip
Move the IC craft definition into init.lua, since it is also needed byt the node detector.
-rw-r--r--jeija/init.lua20
-rw-r--r--jeija/wireless.lua16
2 files changed, 17 insertions, 19 deletions
diff --git a/jeija/init.lua b/jeija/init.lua
index b680b24..f39e3eb 100644
--- a/jeija/init.lua
+++ b/jeija/init.lua
@@ -638,16 +638,30 @@ minetest.register_on_dignode(
end
)
-
--- Solar Panel
-
+-- Silicon
minetest.register_craftitem("jeija:silicon", {
image = "jeija_silicon.png",
on_place_on_ground = minetest.craftitem_place_item,
description="Silicon",
})
+-- IC
+minetest.register_craftitem("jeija:ic", {
+ image = "jeija_ic.png",
+ on_place_on_ground = minetest.craftitem_place_item,
+ description="IC",
+})
+minetest.register_craft({
+ output = 'craft "jeija:ic" 2',
+ recipe = {
+ {'craft "jeija:silicon"', 'craft "jeija:silicon"', 'node "jeija:mesecon_off"'},
+ {'craft "jeija:silicon"', 'craft "jeija:silicon"', 'node "jeija:mesecon_off"'},
+ {'node "jeija:mesecon_off"', 'node "jeija:mesecon_off"', ''},
+ }
+})
+
+-- Solar Panel
minetest.register_node("jeija:solar_panel", {
drawtype = "raillike",
tile_images = {"jeija_solar_panel.png"},
diff --git a/jeija/wireless.lua b/jeija/wireless.lua
index d067167..dcd6c92 100644
--- a/jeija/wireless.lua
+++ b/jeija/wireless.lua
@@ -1,19 +1,3 @@
--- IC
-minetest.register_craftitem("jeija:ic", {
- image = "jeija_ic.png",
- on_place_on_ground = minetest.craftitem_place_item,
- description="IC",
-})
-
-minetest.register_craft({
- output = 'craft "jeija:ic" 2',
- recipe = {
- {'craft "jeija:silicon"', 'craft "jeija:silicon"', 'node "jeija:mesecon_off"'},
- {'craft "jeija:silicon"', 'craft "jeija:silicon"', 'node "jeija:mesecon_off"'},
- {'node "jeija:mesecon_off"', 'node "jeija:mesecon_off"', ''},
- }
-})
-
--COMMON WIRELESS FUNCTIONS
function mesecon:read_wlre_from_file()