1
0
mirror of git://repo.or.cz/minetest_mana.git synced 2025-06-30 14:10:21 +02:00

Update documentation

This commit is contained in:
Wuzzy
2015-05-25 22:53:09 +02:00
parent 336b6dac87
commit b157b892dd
2 changed files with 7 additions and 2 deletions

7
API.md
View File

@ -41,7 +41,12 @@ the new maximum.
### `mana.setregen(playername, value)`
Sets the mana regeneration per mana tick of the player to `value`.
Negative values are not permitted.
Floating-point numbers are also permitted, in which the generation
of 1 mana takes longer than 1 mana tick. I.e. `0.5`. means
that 1 mana is generated every 2 mana ticks. A negative value means the
player loses mana.
The length of one “mana tick” is specified as the server-wide setting
`mana_default_regen` in seconds.