Go to file
A. Demant d7560c6245 add sunprotection with 3d_armor 2018-09-11 05:34:09 +02:00
textures Initial release. 2015-09-08 23:19:46 +02:00
LICENSE (Wrong LICENSE file included) 2015-09-18 21:38:40 +02:00
README.md Version 0.2.2 2015-10-21 22:55:37 +02:00
configuration.lua Moved configuration to external file(s) 2015-10-21 22:49:57 +02:00
depends.txt add sunprotection with 3d_armor 2018-09-11 05:34:09 +02:00
hud.conf.no_hunger Example hud.conf files, with and without hunger. 2015-10-21 22:52:16 +02:00
hud.conf.with_hunger Example hud.conf files, with and without hunger. 2015-10-21 22:52:16 +02:00
hud.lua Initial release. 2015-09-08 23:19:46 +02:00
init.lua add sunprotection with 3d_armor 2018-09-11 05:34:09 +02:00
persistent_player_attributes.lua Initial release. 2015-09-08 23:19:46 +02:00
sunburn.default.conf add sunprotection with 3d_armor 2018-09-11 05:34:09 +02:00

README.md

Sunburn [sunburn]

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.

Description

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.

Current behavior

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!

API

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.

Future plans

None.

Dependencies

Installation

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