mirror of
https://github.com/D00Med/scifi_nodes.git
synced 2024-12-22 16:10:18 +01:00
add setting for teleporter pad
This commit is contained in:
parent
1273b627c2
commit
1c8024401f
19
crafts.lua
19
crafts.lua
@ -11,14 +11,17 @@ if minetest.get_modpath("basic_materials") then
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
if minetest.settings:get_bool("scifi_nodes.teleporter_enable_crafting", false) then
|
||||||
output = "scifi_nodes:pad",
|
-- enable the teleporter pad crafting recipe only if the setting is enabled
|
||||||
recipe = {
|
minetest.register_craft({
|
||||||
{"homedecor:plastic_sheeting", "quartz:block", "homedecor:plastic_sheeting"},
|
output = "scifi_nodes:pad",
|
||||||
{"default:mese_crystal", "quartz:block", "default:mese_crystal"},
|
recipe = {
|
||||||
{"homedecor:plastic_sheeting", "quartz:block", "homedecor:plastic_sheeting"}
|
{"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
|
end
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user