minetest-thirsty/README.md

98 lines
3.3 KiB
Markdown
Raw Permalink Normal View History

2015-04-06 05:43:53 -07:00
Thirsty [thirsty]
=================
A Minetest mod that adds a "thirst" mechanic.
2016-06-25 11:57:59 -07:00
Version: 0.10.2
2015-04-06 05:43:53 -07:00
2015-04-15 14:45:08 -07:00
License:
2015-04-21 12:26:10 -07:00
Code: LGPL 2.1 (see included LICENSE file)
Textures: CC-BY-SA (see http://creativecommons.org/licenses/by-sa/4.0/)
2015-04-06 05:43:53 -07:00
Report bugs or request help on the forum topic.
Description
-----------
This is a mod for MineTest. It adds a thirst mechanic to the
game, similar to many hunger mods (but independent of them).
Players will slowly get thirstier over time, and will need to
drink or suffer damage.
The point of this mod is not to make the game more realistic,
or harder. The point is to have another mechanic that rewards
preparation and infrastructure. Players will now have an incentive
to build their base next to water (or add some water to their base),
and/or take some water with them when mining or travelling.
Terminology: "Thirst" vs. "hydration"
-------------------------------------
"Thirst" is the absence of "hydration" (a term suggested by
everamzah on the Minetest forums, thanks!). The overall mechanic
is still called "thirst", but the visible bar is that of
"hydration", meaning a full bar represents full hydration, not full
thirst. Players lose hydration (or "hydro points") over time, and
gain hydration when drinking.
2015-04-13 12:57:59 -07:00
Current behavior
----------------
2015-04-06 05:43:53 -07:00
**Tier 0**: stand in water (running or standing) to slowly drink.
You may not move during drinking (or you could cross an ocean without
getting thirsty).
2015-04-24 12:45:57 -07:00
**Tier 1**: use a container (e.g. from `vessels`) on water to instantly
fill your hydration. Craftable wooden bowl included.
**Tier 2**: craftable canteens: steel canteen holds two full hydration
bars, bronze canteen three bars worth of water.
2015-04-13 12:57:59 -07:00
2015-04-06 05:43:53 -07:00
**Tier 3**: placeable drinking fountain / wash basin node: instantly
fills your hydration when used.
2015-04-06 05:43:53 -07:00
**Tier 4+**: placeable fountain node(s) to fill the hydration of all
2015-04-06 05:43:53 -07:00
players within range. Placing more nodes increases the range.
**Tier 5**: craftable trinkets/gadgets/amulets that constantly keep your
hydration filled when in your inventory, solving your thirst problem
2015-04-06 05:43:53 -07:00
once and for all.
2015-07-14 11:37:02 -07:00
API
---
Some functions of interest:
* thirsty.drink(player, amount, [max]) : instantly drink a bit (up to a max value, default 20)
* thirsty.get_hydro(player) : returns the current hydration of a player
* thirsty.set_thirst_factor(player, factor) : how fast does the given player get thirsty (default is 1.0)
* thirsty.get_thirst_factor(player) : returns the current thirst factor of a player
"player" refers to a player object, i.e. with a get_player_name() method.
2015-05-07 13:04:26 -07:00
Future plans
------------
Better configurability and an API.
2015-04-06 05:43:53 -07:00
Dependencies
------------
2015-07-05 05:58:43 -07:00
* default (optional but needed for included components)
* bucket (optional but needed for some included components)
2015-04-24 12:41:19 -07:00
* hud (optional): https://forum.minetest.net/viewtopic.php?f=11&t=6342 (see HUD.txt for configuration)
* hudbars (optional): https://forum.minetest.net/viewtopic.php?f=11&t=11153
2015-04-21 12:31:36 -07:00
* vessels (optional): https://forum.minetest.net/viewtopic.php?id=2574
2015-04-06 05:43:53 -07:00
Installation
------------
Unzip the archive, rename the folder to to `thirsty` and
place it in minetest/mods/
( Linux: If you have a linux system-wide installation place
it in ~/.minetest/mods/. )
( If you only want this to be used in a single world, place
the folder in worldmods/ in your worlddirectory. )
For further information or help see:
http://wiki.minetest.com/wiki/Installing_Mods