Move the IC craft definition into init.lua, since it is also needed byt the node detector.

This commit is contained in:
Anthony Zhang 2012-02-04 13:01:56 -05:00
parent 400511949a
commit 9aaa4af37e
2 changed files with 17 additions and 19 deletions

View File

@ -638,16 +638,30 @@ minetest.register_on_dignode(
end end
) )
-- Silicon
-- Solar Panel
minetest.register_craftitem("jeija:silicon", { minetest.register_craftitem("jeija:silicon", {
image = "jeija_silicon.png", image = "jeija_silicon.png",
on_place_on_ground = minetest.craftitem_place_item, on_place_on_ground = minetest.craftitem_place_item,
description="Silicon", 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", { minetest.register_node("jeija:solar_panel", {
drawtype = "raillike", drawtype = "raillike",
tile_images = {"jeija_solar_panel.png"}, tile_images = {"jeija_solar_panel.png"},

View File

@ -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 --COMMON WIRELESS FUNCTIONS
function mesecon:read_wlre_from_file() function mesecon:read_wlre_from_file()