minetest-thirsty/configuration.lua

64 lines
1.3 KiB
Lua

--[[
Configuration for Thirsty.
See init.lua for license.
]]
--[[
Default values
]]
thirsty.config = {
stash_filename = 'thirsty.dat',
tick_time = 0.5,
-- Tier 0
thirst_per_second = 1.0 / 20.0,
damage_per_second = 1.0 / 10.0, -- when out of hydration
stand_still_for_drink = 1.0,
stand_still_for_afk = 120.0, -- 2 Minutes
-- which nodes can we drink from (given containers)
node_drinkable = {
['default:water_source'] = true,
['default:water_flowing'] = true,
['thirsty:drinking_fountain'] = true,
},
regen_from_node = {
-- value: hydration regen per second
['default:water_source'] = 0.5,
['default:water_flowing'] = 0.5,
},
drink_from_container = {
-- value: max hydration when drinking with item
['thirsty:wooden_bowl'] = 25,
['thirsty:steel_canteen'] = 25,
['thirsty:bronze_canteen'] = 25,
},
container_capacity = {
-- value: hydro capacity in item
['thirsty:steel_canteen'] = 40,
['thirsty:bronze_canteen'] = 60,
},
drink_from_node = {
-- value: max hydration when drinking from node
['thirsty:drinking_fountain'] = 30,
},
extractor_speed = 0.6,
injector_speed = 0.5,
}
-- TODO: read more configuration from thirsty.conf or similar