A Minetest mod where sunlight simply kills you directly
Version: 0.2.2
License: Code: LGPL 2.1 (see included LICENSE file) Textures: CC-BY-SA (see http://creativecommons.org/licenses/by-sa/4.0/)
Report bugs or request help on the forum topic.
This is a mod for MineTest. Its goal is to make sunlight dangerous by causing "sunburn", which damages you directly. Your only chance is to burrow down when the sun comes up.
If you stand in a node with light level 14 or more, you slowly accumulate "sunburn", represented by a hud bar with sun symbols. The more sunburn you have, the more you get damaged per second.
The sunburn will heal in darkness, but slowly. Until it is fully healed, you'll continue to take damage even if you're no longer in the sun!
There are accessors for the current sunburn level (0-20), as well as three multipliers: a burn factor (how fast sunburn is gained), a heal factor (how fast sunburn is lost, does not actually heal hp), and a damage factor (how much damage is done from sunburn).
All three factors start at 1.0 and reset to 1.0 at player death. Mods wishing to change any of these factors (sun milk, wearable sombreros, curse of vampirism or similar) should set them any time they change.
sunburn.get_sunburn(player) -- returns the level, 0-20 sunburn.set_sunburn(player, value) -- sets the level, autocapping sunburn.add_sunburn(player, value) -- changes the level; negatives allowed
sunburn.get_burn_factor(player) -- get the burn factor, default 1.0 sunburn.set_burn_factor(player, value) -- set the burn factor sunburn.get_heal_factor(player) -- get the heal factor, default 1.0 sunburn.set_heal_factor(player, value) -- set the heal factor sunburn.get_damage_factor(player) -- get the damage factor, default 1.0 sunburn.set_damage_factor(player, value) -- set the damage factor
All accessors take a minetest player object.
None.
- 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
Unzip the archive, rename the folder to to sunburn
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