Add Framework for Managing different Kind of experience, e.g. farming experience for getting faster crops as more farming you have done.
ademant 3090d2e9ee mod.conf | 5 年之前 | |
---|---|---|
locale | 5 年之前 | |
textures | 6 年之前 | |
README.md | 5 年之前 | |
api.lua | 5 年之前 | |
chat_commands.lua | 6 年之前 | |
cmi.lua | 5 年之前 | |
config.lua | 5 年之前 | |
depends.txt | 5 年之前 | |
init.lua | 5 年之前 | |
intllib.lua | 5 年之前 | |
license.txt | 5 年之前 | |
mod.conf | 5 年之前 | |
register.lua | 5 年之前 | |
settingtypes.txt | 5 年之前 |
See license.txt for license information.
Main repository:
https://notabug.org/ademant/minetest_xpfw.git
Mirrors:
https://gitlab.com/ademant/minetest_xpfw.git
https://github.com/ademant/minetest_xpfw.git
Works only with Minetest >= 5.0
Minetest <= 0.4.17 does not support the mechanism for handling player related meta data.
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:
For several amounts also a kind of speed is calculated, like walking speed or crafting speed.
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
need xpfwset privilege
Set variable of user to new value
Usage (roughly), for Details see api.lua:
ademant (MIT)
Created by ademant (CC BY 3.0):