forked from MysticTempest/minetest-thirsty
-
Notifications
You must be signed in to change notification settings - Fork 0
/
thirsty.default.mclconf
215 lines (171 loc) · 6.61 KB
/
thirsty.default.mclconf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
--[[
Thirsty configuration
-----------------------------
This is configuration file that is used only when mineclone2 is running.
To set-up options for minetest game, use ".default" instead.
To modify the configuration without fear of it being overwritten
by an update of this mod, copy this file to
thirsty.mclconf
in the mod directory or the directory of a specific world, and
modify away. The mod will read configuration first from the
default file, then from the mod directory copy, and finally from
the world directory copy.
The settings from these locations will be merged together in an
intelligent fashion. Normal entries in the config table will get
overwritten. Table entries (those with {} at the left of the =)
will get merged together, unless the special table entry 'CLEAR'
is given, with a true value. This merging does not go deeper than
one level, but this should be sufficient.
]]
thirsty.config = {
--[[ The period, in seconds, in which this mod updates values.
Changing this will not directly affect other values, but
may change computation load or accuracy.
]]
tick_time = 0.5,
-------------------------------------------
-- Tier 0: basics, and standing in water --
-------------------------------------------
-- Thirst per second (full hydration is 20 hydro points)
thirst_per_second = 1.0 / 20.0,
-- Damage per second if completely thirsty / out of hydration
damage_per_second = 1.0 / 10.0,
--[[ How long in seconds you have to remain still to drink
from standing in water
]]
stand_still_for_drink = 1.0,
--[[ How long in seconds of not moving before a player is deemed
AFK (away from keyboard), such players no longer get thirsty
or damaged
]]
stand_still_for_afk = 120.0, -- 2 Minutes
--[[ regen_from_node is a table defining, for each node type, the
amount of hydro per second a player drinks by standing in it.
Assign 0 to stop a player from drinking from this node type.
]]
regen_from_node = {
['mcl_core:water_source'] = 0.5,
['mcl_core:water_flowing'] = 0.5,
['mclx_core:river_water_source'] = 0.5,
['mclx_core:river_water_flowing'] = 0.5,
},
--[[ some existing containers provide water directly,
these are drunk at once, instantly giving hydration points
and loosing contents
]]
drink_this = {
['mcl_potions:potion_river_water'] = 25,
['mcl_potions:potion_water'] = 25,
['thirsty:mcl_bowl_water'] = 25,
},
---------------------------------
-- Tier 1: drinking with bowls --
---------------------------------
--[[ node_drinkable: which nodes can we drink from, given a
container (a cup, a bowl etc.)
]]
node_drinkable = {
['mcl_core:water_source'] = true,
['mcl_core:water_flowing'] = true,
['mclx_core:river_water_source'] = true,
['mclx_core:river_water_flowing'] = true,
['thirsty:drinking_fountain'] = true,
},
--[[ drink_from_container: the hydration you drink to when
using each container. Remember that "full hydration" is
20 points; these should be more to reward using them.
]]
drink_from_container = {
['mcl_core:bowl'] = 25,
['thirsty:steel_canteen'] = 25,
['thirsty:bronze_canteen'] = 25,
},
----------------------
-- Tier 2: canteens --
----------------------
--[[ container_capacity: how much hydration each container
(canteens) can hold. Remember that "full hydration" is
20 points
]]
container_capacity = {
['thirsty:steel_canteen'] = 40,
['thirsty:bronze_canteen'] = 60,
},
--------------------------------
-- Tier 3: drinking fountains --
--------------------------------
--[[ drink_from_node: if you use one of these node
(i.e. fountains), even without cups or bowls, how full
will you get?
]]
drink_from_node = {
['thirsty:drinking_fountain'] = 30,
},
-------------------------------------
-- Tier 4: free-standing fountains --
-------------------------------------
--[[ fountain_type: when scanning the surroundings of fountains,
which nodes are "fountains" and which are "water"? You need
at least one "fountain" and one "water" per fountain level.
]]
fountain_type = {
['thirsty:water_fountain'] = 'f',
['thirsty:water_extender'] = 'f',
['thirsty:water_extender_2'] = 'f',
['thirsty:water_extender_split'] = 'f',
['mcl_core:water_source'] = 'w',
['mcl_core:water_flowing'] = 'w',
['mclx_core:river_water_source'] = 'w',
['mclx_core:river_water_flowing'] = 'w',
},
--[[ Regeneration from being within a fountain's radius; see also
regen_from_node (it's as if you're standing in water)
]]
regen_from_fountain = 0.5,
-- How far should the fountain scanning pyramid go?
fountain_height = 4,
-- The max level of a fountain
fountain_max_level = 20,
--[[ How many nodes away can you still benefit from a fountain,
per fountain level
]]
fountain_distance_per_level = 5,
---------------------
-- Tier 5: amulets --
---------------------
--[[ How much hydration does a given item *extract*
(pull out of the air)
]]
extraction_for_item = {
['thirsty:extractor']= 0.6,
},
--[[ How much hydration does a given item *inject*
(fill you up with)
]]
injection_for_item = {
['thirsty:injector'] = 0.5,
},
---------------------------------------
-- Toggle node and craft definitions --
---------------------------------------
--[[ These flags enable or disable the predefined components
included in this mod. They do *not* enable or disable
the functionality.
]]
-- Should we play drinking sound?
register_sound = true,
-- Should we augment the vessels from the "vessels" mod?
register_vessels = true,
-- Add the wooden bowl and crafting recipe? In Mineclone2, allows to use bowl to drink water and to store water in it.
register_bowl = true,
-- Add the canteens and crafting recipes?
register_canteens = true,
-- Add the drinking fountain and crafting recipes?
register_drinking_fountain = true,
-- Add the fountain and extenders and crafting recipes?
register_fountains = true,
-- Add the amulets (extractor / injector) and crafting recipes?
register_amulets = true,
-- allow to collect water in bowl
register_bowls = true,
}