diff options
author | Anthony Zhang <azhang9@gmail.com> | 2012-02-04 13:01:56 -0500 |
---|---|---|
committer | Anthony Zhang <azhang9@gmail.com> | 2012-02-04 13:01:56 -0500 |
commit | 9aaa4af37e5f2a9c3a85cfe30049429ccdfea9e4 (patch) | |
tree | 09b1c1fb1e06b65eae7223e44f59af840fb1137a /jeija/init.lua | |
parent | 400511949ab0fac6a9f1612b6b9e6a2cee71a46f (diff) |
Move the IC craft definition into init.lua, since it is also needed byt the node detector.
Diffstat (limited to 'jeija/init.lua')
-rw-r--r-- | jeija/init.lua | 20 |
1 files changed, 17 insertions, 3 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"}, |