diff --git a/crafts.lua b/crafts.lua index a229e52..fc435a8 100644 --- a/crafts.lua +++ b/crafts.lua @@ -11,14 +11,17 @@ if minetest.get_modpath("basic_materials") then } }) - minetest.register_craft({ - output = "scifi_nodes:pad", - recipe = { - {"homedecor:plastic_sheeting", "quartz:block", "homedecor:plastic_sheeting"}, - {"default:mese_crystal", "quartz:block", "default:mese_crystal"}, - {"homedecor:plastic_sheeting", "quartz:block", "homedecor:plastic_sheeting"} - } - }) + if minetest.settings:get_bool("scifi_nodes.teleporter_enable_crafting", false) then + -- enable the teleporter pad crafting recipe only if the setting is enabled + minetest.register_craft({ + output = "scifi_nodes:pad", + recipe = { + {"homedecor:plastic_sheeting", "quartz:block", "homedecor:plastic_sheeting"}, + {"default:mese_crystal", "quartz:block", "default:mese_crystal"}, + {"homedecor:plastic_sheeting", "quartz:block", "homedecor:plastic_sheeting"} + } + }) + end end diff --git a/settingtypes.txt b/settingtypes.txt index 513c37b..e6a8435 100644 --- a/settingtypes.txt +++ b/settingtypes.txt @@ -1,2 +1,5 @@ # Doors can only be opened by mesecon signal scifi_nodes.doors_open_with_mesecon_only (disables right click on doors) bool true + +# Teleporter recipe flag +scifi_nodes.teleporter_enable_crafting (enables the teleporter recipe) bool false