minetest_xpfw/README.md

41 lines
1.4 KiB
Markdown
Raw Normal View History

2019-02-11 22:31:08 -08:00
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
2019-01-03 06:51:53 -08:00
Minetest Game mod: XPFW
==========================
See license.txt for license information.
2019-02-11 22:48:22 -08:00
XPFW provide an API for storing values relevant for experience mechanism into player metadata (Identified with prefix "XPFW_"). It also stores several statistic values during playtime:
2019-01-03 06:51:53 -08:00
- Walked distances calculated out of velocity (important: teleporting does not influence this value)
- accumulated distance out of comparing with last known position (important: teleporting is included in this value)
- whole playtime on the server
- amount of dug nodes
- amount of build nodes
- amount of crafted items
- amount of occured deahts
- amount of text messages
- amount of logins
For several amounts also a kind of speed is calculated, like walking speed or crafting speed.
2019-02-11 22:48:22 -08:00
Following chat commands are available:
/xpfw
prints stored values of XPFW in the chat window
/xphud
toggle the visible statistics in players hud on/off
/xpreset
set all values to default
/xpset <variable> <value>
need xpfwset privilege
Set variable of user to new value
Usage (roughly):
xpfw.register_attribute(name,data) to register new attribute <name>
2019-01-03 06:51:53 -08:00
Authors of source code
----------------------
ademant (MIT)
Authors of media (textures)
---------------------------
Created by ademant (CC BY 3.0):