elepower/elepower_farming/crafting.lua

51 lines
1.6 KiB
Lua
Raw Normal View History

2018-06-21 08:09:01 +00:00
local easycrafting = minetest.settings:get("elepower_easy_crafting") == "true"
local ingot = "elepower_dynamics:viridisium_ingot"
if easycrafting then
ingot = "elepower_dynamics:wound_copper_coil"
end
2018-06-21 08:09:01 +00:00
-----------
-- Nodes --
-----------
-- Device Frame
minetest.register_craft({
output = "elepower_farming:device_frame",
recipe = {
{"homedecor:plastic_sheeting", "group:glass", "homedecor:plastic_sheeting"},
{"group:glass", "default:mese_crystal", "group:glass"},
{"homedecor:plastic_sheeting", "group:glass", "homedecor:plastic_sheeting"},
}
})
-- Planter
minetest.register_craft({
output = "elepower_farming:planter",
recipe = {
{ingot, "elepower_dynamics:control_circuit", ingot},
2018-06-21 08:09:01 +00:00
{"farming:hoe_steel", "elepower_farming:device_frame", "farming:hoe_steel"},
2018-08-03 10:15:31 +00:00
{"elepower_dynamics:wound_copper_coil", "elepower_dynamics:motor", "elepower_dynamics:wound_copper_coil"},
2018-06-21 08:09:01 +00:00
}
})
-- Harvester
minetest.register_craft({
output = "elepower_farming:harvester",
recipe = {
{ingot, "elepower_dynamics:control_circuit", ingot},
2018-06-21 08:09:01 +00:00
{"default:axe_steel", "elepower_farming:device_frame", "farming:hoe_steel"},
2018-08-03 10:15:31 +00:00
{"elepower_dynamics:motor", "elepower_dynamics:diamond_gear", "elepower_dynamics:motor"},
2018-06-21 08:09:01 +00:00
}
})
-- Tree Extractor
minetest.register_craft({
output = "elepower_farming:tree_extractor",
recipe = {
2018-08-03 10:15:31 +00:00
{"elepower_dynamics:motor", "bucket:bucket_empty", "elepower_dynamics:motor"},
2018-06-21 08:09:01 +00:00
{"elepower_dynamics:tree_tap", "elepower_farming:device_frame", "elepower_dynamics:tree_tap"},
{"elepower_dynamics:copper_gear", "elepower_dynamics:servo_valve", "elepower_dynamics:copper_gear"},
}
})