summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcheapie <no-email-for-you@example.com>2024-05-11 11:22:41 -0500
committercheapie <no-email-for-you@example.com>2024-05-11 11:22:41 -0500
commit645b2944311fcf672cfa74e7612f58a706c12b8b (patch)
tree39881a63a2b4d03021aa142094d1a117186ff314
parent6c908698d72cdac9fbc85a7e3d168fd3f431e2e3 (diff)
downloadcelevator-645b2944311fcf672cfa74e7612f58a706c12b8b.tar
celevator-645b2944311fcf672cfa74e7612f58a706c12b8b.tar.gz
celevator-645b2944311fcf672cfa74e7612f58a706c12b8b.tar.bz2
celevator-645b2944311fcf672cfa74e7612f58a706c12b8b.tar.xz
celevator-645b2944311fcf672cfa74e7612f58a706c12b8b.zip
Add craft recipes
Uses items from default (MTG or DB should work, along with most other MTG-based games), mesecons, digilines (digilines I/O module only), and basic_materials. The mod is still usable in creative mode without any of these.
-rw-r--r--crafts.lua289
-rw-r--r--init.lua1
2 files changed, 290 insertions, 0 deletions
diff --git a/crafts.lua b/crafts.lua
new file mode 100644
index 0000000..dd4b796
--- /dev/null
+++ b/crafts.lua
@@ -0,0 +1,289 @@
+minetest.register_craft({
+ output = "celevator:buffer_oil",
+ recipe = {
+ {"","basic_materials:steel_bar",""},
+ {"default:steel_ingot","bucket:bucket_empty","default:steel_ingot"},
+ {"default:steel_ingot","default:steel_ingot","default:steel_ingot"},
+ },
+})
+
+minetest.register_craft({
+ output = "celevator:buffer_rubber",
+ recipe = {
+ {"basic_materials:plastic_sheet","dye:black","basic_materials:plastic_sheet"},
+ {"","default:steel_ingot",""},
+ {"default:steel_ingot","default:steel_ingot","default:steel_ingot"},
+ },
+})
+
+minetest.register_craft({
+ output = "celevator:callbutton_both",
+ recipe = {
+ {"basic_materials:steel_strip","mesecons_lightstone:lightstone_blue_off","mesecons_button:button_off"},
+ {"basic_materials:steel_strip","",""},
+ {"basic_materials:steel_strip","mesecons_lightstone:lightstone_blue_off","mesecons_button:button_off"},
+ },
+})
+
+minetest.register_craft({
+ output = "celevator:callbutton_up",
+ recipe = {
+ {"basic_materials:steel_strip","mesecons_lightstone:lightstone_blue_off","mesecons_button:button_off"},
+ {"basic_materials:steel_strip","",""},
+ {"basic_materials:steel_strip","",""},
+ },
+})
+
+minetest.register_craft({
+ output = "celevator:callbutton_down",
+ recipe = {
+ {"basic_materials:steel_strip","",""},
+ {"basic_materials:steel_strip","",""},
+ {"basic_materials:steel_strip","mesecons_lightstone:lightstone_blue_off","mesecons_button:button_off"},
+ },
+})
+
+minetest.register_craft({
+ output = "celevator:car",
+ recipe = {
+ {"default:steel_ingot","default:steel_ingot","default:steel_ingot"},
+ {"mesecons_button:button_off","celevator:hwdoor_glass","default:steel_ingot"},
+ {"mesecons_switch:mesecon_switch_off","default:steel_ingot","default:steel_ingot"},
+ },
+})
+
+minetest.register_craft({
+ output = "celevator:controller",
+ recipe = {
+ {"basic_materials:steel_strip","basic_materials:ic","basic_materials:steel_strip"},
+ {"basic_materials:steel_strip","basic_materials:ic","basic_materials:steel_strip"},
+ {"basic_materials:steel_strip","default:steel_ingot","basic_materials:steel_strip"},
+ },
+})
+
+minetest.register_craft({
+ output = "celevator:dispatcher",
+ recipe = {
+ {"basic_materials:steel_strip","basic_materials:ic","basic_materials:steel_strip"},
+ {"basic_materials:steel_strip","basic_materials:ic","basic_materials:steel_strip"},
+ {"basic_materials:steel_strip","basic_materials:steel_strip","basic_materials:steel_strip"},
+ },
+})
+
+minetest.register_craft({
+ output = "celevator:drive",
+ recipe = {
+ {"basic_materials:silicon","basic_materials:steel_strip","basic_materials:silicon"},
+ {"basic_materials:silicon","basic_materials:ic","basic_materials:silicon"},
+ {"basic_materials:silicon","basic_materials:steel_strip","basic_materials:silicon"},
+ },
+})
+
+minetest.register_craft({
+ output = "celevator:digilines_io",
+ recipe = {
+ {"","",""},
+ {"","basic_materials:ic",""},
+ {"digilines:wire_std_00000000","basic_materials:steel_strip","digilines:wire_std_00000000"},
+ },
+})
+
+minetest.register_craft({
+ output = "celevator:mesecons_input_off",
+ recipe = {
+ {"","",""},
+ {"","basic_materials:ic",""},
+ {"mesecons:wire_00000000_off","basic_materials:steel_strip","basic_materials:steel_strip"},
+ },
+})
+
+minetest.register_craft({
+ output = "celevator:mesecons_output_off",
+ recipe = {
+ {"","",""},
+ {"","basic_materials:ic",""},
+ {"basic_materials:steel_strip","basic_materials:steel_strip","mesecons:wire_00000000_off"},
+ },
+})
+
+minetest.register_craft({
+ output = "celevator:fs1switch_off",
+ recipe = {
+ {"basic_materials:steel_strip","mesecons_lightstone:lightstone_red_off",""},
+ {"basic_materials:steel_strip","mesecons_switch:mesecon_switch_off","dye:red"},
+ {"basic_materials:steel_strip","",""},
+ },
+})
+
+minetest.register_craft({
+ output = "celevator:guide_rail 10",
+ recipe = {
+ {"basic_materials:steel_strip","default:steel_ingot","basic_materials:steel_strip"},
+ {"basic_materials:steel_strip","default:steel_ingot","basic_materials:steel_strip"},
+ {"basic_materials:steel_strip","default:steel_ingot","basic_materials:steel_strip"},
+ },
+})
+
+minetest.register_craft({
+ output = "celevator:guide_rail_bracket",
+ recipe = {
+ {"basic_materials:steel_strip","celevator:guide_rail","basic_materials:steel_strip"},
+ },
+})
+
+minetest.register_craft({
+ output = "celevator:hwdoor_glass",
+ recipe = {
+ {"basic_materials:steel_bar","basic_materials:steel_bar","basic_materials:steel_bar"},
+ {"default:glass","basic_materials:steel_bar","default:glass"},
+ {"basic_materials:steel_bar","basic_materials:steel_bar","basic_materials:steel_bar"},
+ },
+})
+
+minetest.register_craft({
+ output = "celevator:lantern_up",
+ recipe = {
+ {"basic_materials:steel_strip",""},
+ {"basic_materials:steel_strip","mesecons_lightstone:lightstone_green_off"},
+ {"basic_materials:steel_strip",""},
+ },
+})
+
+minetest.register_craft({
+ output = "celevator:lantern_down",
+ recipe = {
+ {"basic_materials:steel_strip",""},
+ {"basic_materials:steel_strip","mesecons_lightstone:lightstone_red_off"},
+ {"basic_materials:steel_strip",""},
+ },
+})
+
+minetest.register_craft({
+ output = "celevator:lantern_both",
+ recipe = {
+ {"basic_materials:steel_strip","mesecons_lightstone:lightstone_green_off"},
+ {"basic_materials:steel_strip",""},
+ {"basic_materials:steel_strip","mesecons_lightstone:lightstone_red_off"},
+ },
+})
+
+minetest.register_craft({
+ output = "celevator:lantern_vertical_up",
+ type = "shapeless",
+ recipe = {
+ "celevator:lantern_up",
+ },
+})
+
+minetest.register_craft({
+ output = "celevator:lantern_vertical_down",
+ type = "shapeless",
+ recipe = {
+ "celevator:lantern_down",
+ },
+})
+
+minetest.register_craft({
+ output = "celevator:lantern_vertical_both",
+ type = "shapeless",
+ recipe = {
+ "celevator:lantern_both",
+ },
+})
+
+minetest.register_craft({
+ output = "celevator:lantern_up",
+ type = "shapeless",
+ recipe = {
+ "celevator:lantern_vertical_up",
+ },
+})
+
+minetest.register_craft({
+ output = "celevator:lantern_down",
+ type = "shapeless",
+ recipe = {
+ "celevator:lantern_vertical_down",
+ },
+})
+
+minetest.register_craft({
+ output = "celevator:lantern_both",
+ type = "shapeless",
+ recipe = {
+ "celevator:lantern_vertical_both",
+ },
+})
+
+minetest.register_craft({
+ output = "celevator:machine",
+ recipe = {
+ {"basic_materials:gear_steel","basic_materials:copper_wire",""},
+ {"basic_materials:steel_bar","basic_materials:steel_bar","basic_materials:motor"},
+ {"default:steel_ingot","default:steel_ingot","default:steel_ingot"},
+ },
+})
+
+minetest.register_craft({
+ output = "celevator:pi",
+ recipe = {
+ {"basic_materials:steel_strip",""},
+ {"mesecons_lightstone:lightstone_red_off","digilines:lcd"},
+ {"basic_materials:steel_strip",""},
+ },
+})
+
+minetest.register_craft({
+ output = "celevator:pilantern_up",
+ type = "shapeless",
+ recipe = {
+ "celevator:lantern_up",
+ "celevator:pi",
+ },
+})
+
+minetest.register_craft({
+ output = "celevator:pilantern_down",
+ type = "shapeless",
+ recipe = {
+ "celevator:lantern_down",
+ "celevator:pi",
+ },
+})
+
+minetest.register_craft({
+ output = "celevator:pilantern_both",
+ type = "shapeless",
+ recipe = {
+ "celevator:lantern_both",
+ "celevator:pi",
+ },
+})
+
+minetest.register_craft({
+ output = "celevator:tape 15",
+ recipe = {
+ {"basic_materials:steel_strip","","basic_materials:steel_strip"},
+ {"basic_materials:steel_strip","basic_materials:steel_strip","basic_materials:steel_strip"},
+ {"basic_materials:steel_strip","","basic_materials:steel_strip"},
+ },
+})
+
+minetest.register_craft({
+ output = "celevator:tape_magnets",
+ type = "shapeless",
+ recipe = {
+ "celevator:tape",
+ "default:iron_lump",
+ "basic_materials:plastic_sheet",
+ },
+})
+
+minetest.register_craft({
+ output = "celevator:tape_bracket",
+ type = "shapeless",
+ recipe = {
+ "celevator:tape",
+ "basic_materials:steel_strip",
+ },
+})
diff --git a/init.lua b/init.lua
index c60ef22..9b794e9 100644
--- a/init.lua
+++ b/init.lua
@@ -10,6 +10,7 @@ local components = {
"fs1switch",
"dispatcher",
"decorations",
+ "crafts",
}
local integrations = {