add setting for teleporter pad

This commit is contained in:
BuckarooBanzay 2021-09-28 13:07:19 +02:00
parent 7a8a5a672c
commit e0e3a306fb
2 changed files with 14 additions and 8 deletions

View File

@ -11,6 +11,8 @@ if minetest.get_modpath("basic_materials") then
} }
}) })
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({ minetest.register_craft({
output = "scifi_nodes:pad", output = "scifi_nodes:pad",
recipe = { recipe = {
@ -19,6 +21,7 @@ if minetest.get_modpath("basic_materials") then
{"homedecor:plastic_sheeting", "quartz:block", "homedecor:plastic_sheeting"} {"homedecor:plastic_sheeting", "quartz:block", "homedecor:plastic_sheeting"}
} }
}) })
end
end end

View File

@ -1,2 +1,5 @@
# Doors can only be opened by mesecon signal # Doors can only be opened by mesecon signal
scifi_nodes.doors_open_with_mesecon_only (disables right click on doors) bool true 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