From 1273b627c2314663410622311b37f8786069eacf Mon Sep 17 00:00:00 2001 From: Niles Corder <53316485+ncorder@users.noreply.github.com> Date: Sun, 26 Sep 2021 03:17:15 +0000 Subject: [PATCH 1/4] add crafting recipe for teleporter pad --- crafts.lua | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/crafts.lua b/crafts.lua index d88aab6..a229e52 100644 --- a/crafts.lua +++ b/crafts.lua @@ -10,8 +10,19 @@ if minetest.get_modpath("basic_materials") then {"homedecor:plastic_sheeting", "homedecor:plastic_sheeting", "homedecor:plastic_sheeting"} } }) + + 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 + if not minetest.get_modpath("default") or not minetest.get_modpath("dye") then -- the default and dye mod are required for most of the recipes -- if either of them is missing (because we are not in the default game) From 1c8024401fcba2df92d6147e708a7b702dbf3adb Mon Sep 17 00:00:00 2001 From: BuckarooBanzay Date: Tue, 28 Sep 2021 13:07:19 +0200 Subject: [PATCH 2/4] add setting for teleporter pad --- crafts.lua | 19 +++++++++++-------- settingtypes.txt | 3 +++ 2 files changed, 14 insertions(+), 8 deletions(-) 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 From 5788062fac64df5ab2275a34fb2e9d72fbb33cb6 Mon Sep 17 00:00:00 2001 From: BuckarooBanzay Date: Tue, 28 Sep 2021 13:08:26 +0200 Subject: [PATCH 3/4] update contributors --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index f74a2c5..a125e97 100644 --- a/README.md +++ b/README.md @@ -55,3 +55,4 @@ CC0 * OgelGames https://github.com/OgelGames * leftshift https://github.com/leftshift * fluxionary https://github.com/fluxionary +* Niles Corder https://github.com/ncorder From 4fc833bb0088bcca5f13be5d91416b11b276c6a6 Mon Sep 17 00:00:00 2001 From: BuckarooBanzay Date: Tue, 28 Sep 2021 13:08:47 +0200 Subject: [PATCH 4/4] fix default setting value for mesecons-only door operation --- settingtypes.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/settingtypes.txt b/settingtypes.txt index e6a8435..ab817ca 100644 --- a/settingtypes.txt +++ b/settingtypes.txt @@ -1,5 +1,5 @@ -# Doors can only be opened by mesecon signal -scifi_nodes.doors_open_with_mesecon_only (disables right click on doors) bool true +# Doors can only be opened by mesecon signal +scifi_nodes.doors_open_with_mesecon_only (disables right click on doors) bool false # Teleporter recipe flag scifi_nodes.teleporter_enable_crafting (enables the teleporter recipe) bool false