You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

73 lines
2.3KB

  1. -- Various settings
  2. local prefix = "pipeworks_"
  3. local settings = {
  4. enable_pipes = true,
  5. enable_lowpoly = false,
  6. enable_autocrafter = true,
  7. enable_deployer = true,
  8. enable_dispenser = true,
  9. enable_node_breaker = true,
  10. enable_teleport_tube = true,
  11. enable_pipe_devices = true,
  12. enable_redefines = true,
  13. enable_mese_tube = true,
  14. enable_detector_tube = true,
  15. enable_digiline_detector_tube = true,
  16. enable_conductor_tube = true,
  17. enable_digiline_conductor_tube = true,
  18. enable_accelerator_tube = true,
  19. enable_crossing_tube = true,
  20. enable_sand_tube = true,
  21. enable_mese_sand_tube = true,
  22. enable_one_way_tube = true,
  23. enable_priority_tube = true,
  24. enable_lua_tube = true,
  25. enable_cyclic_mode = true,
  26. drop_on_routing_fail = false,
  27. delete_item_on_clearobject = true,
  28. }
  29. pipeworks.toggles = {}
  30. -- documentation for toggles controlling pressure logic features.
  31. -- do not edit this file directly;
  32. -- instead, create pipeworks_settings.txt in your world directory,
  33. -- and copy the uncommented lines from the block comments below into it.
  34. --[[
  35. -- flow logic implementation.
  36. -- set to one of the following strings.
  37. -- "classic": classic mode written by VanessaE
  38. -- "pressure": pressure metadata based, written by thetaepsilon.
  39. -- has caveats such as water speed issues though.
  40. -- setting to nil inhibits all flow logic, useful for debugging ABM crashes,
  41. -- or for rendering the pipes purely decorative.
  42. ]]
  43. pipeworks.toggles.pipe_mode = "classic"
  44. --[[
  45. -- force-enable finite water handling mode.
  46. -- this changes the way that water node placement is handled;
  47. -- volume will always be preserved,
  48. -- and water is assumed to move itself downwards.
  49. -- nil (the default) means autodetect from installed finite liquid mods,
  50. -- true is force-on, false is force-off.
  51. -- note that you should NOT normally explicitly set this to true/false,
  52. -- unless the mod you want this for is not covered by auto-detection
  53. -- (please see autodetect-finite-water.lua).
  54. -- please file an issue if you have a finite water mod not covered there,
  55. -- and feel it necessary to explicitly set this toggle
  56. pipeworks.toggles.finite_water = nil
  57. ]]
  58. for name, value in pairs(settings) do
  59. local setting_type = type(value)
  60. if setting_type == "boolean" then
  61. pipeworks[name] = minetest.settings:get_bool(prefix..name)
  62. if pipeworks[name] == nil then
  63. pipeworks[name] = value
  64. end
  65. else
  66. pipeworks[name] = value
  67. end
  68. end