No Description

Thomas Rudin 299eb684ac lower craft limit time 1 month ago
models 3de27fd47a trophy wip 10 months ago
screenshots 601a167ed7 name tag doc 1 year ago
sounds c3078c9ec4 proper hud / rank congrats 1 year ago
textures 782ebc909d bronze protector 5 months ago
LICENSE.txt 7bb0e03755 textures / skeleton 1 year ago
builtin.lua 299eb684ac lower craft limit time 1 month ago
chatcmd.lua 97e865fc42 highscore 1 year ago
depends.txt baa1683aba support invisibility from invis mod 3 months ago
entities.lua ae11c5aa3a fix rank entity 4 months ago
functions.lua 24501ba2ce check for ranks (if none are installed) 7 months ago
globalstep.lua 808d65647c move globalstep to own file 8 months ago
highscore.lua 50dbc013ab fix nil issue / crafting = 1+ 11 months ago
hud.lua 54effa42d2 bugfix 1 month ago
init.lua 1ff1e2c58c hide_nametag priv 1 month ago
json.lua 1fb11716fd export after timeout 8 months ago
license.txt 5f3d8aebbc license 1 year ago
mobs.lua 47ed3aa017 1 xp per mob/playerpunch 9 months ago
privs.lua 54effa42d2 bugfix 1 month ago
protector.lua 9593715483 fix mesecons mvps attack vector 4 months ago
ranks.lua 01c1716bf7 fix #28 8 months ago 3de27fd47a trophy wip 10 months ago
stats.lua 98a2d4d2ea fix #11 10 months ago
trophies.lua 3de27fd47a trophy wip 10 months ago
xpgate.lua c4f457a24f max/min mode on xp doors 8 months ago

Minetest XP mod (xp_redo)

Minetest mod for player experience management (xp) It adds an xp counter per player and ranks according to your xp level. The xp level, your rank and a progress bar to the next rank will show up in your hud. On every rank level up you get a award-like notification. There is also a xpgate block which, when placed under a wooden door will only allow players with a certain xp level to go through.


  • Unzip/Clone it to your worldmods folder


  • givexp: Manage xp of your users


Add or remove (amount with negative sign) xp from a user:

/givexp (username) (amount)


Give player somedude 200 xp points:

/givexp somedude 200

Remove 100 xp points from player somedude:

/givexp somedude -100


  • default
  • doors?
  • mobs_redo?
  • mobs_animal?
  • mobs_monster?

Builtin xp events


Every node dig gives you 1 xp point


Every mob punch gives you the amount of damage on the mob in xp


Hud in action

Note: Android screenshot, ignore wrong spacing

XP Gate block (configuring)

XP Gate block (blocking)

Note: It will teleport you through if you have enough xp and try to open it

Player nametags (with rank-colors)


Some initial ranks are hardcoded in ranks.lua (Swiss military ranks, but translated to english.... sorry :)

  • Recruit (xp: 0)
  • Soldier (xp: 10)
  • Appointee (xp: 100)
  • Private (xp: 1000)
  • Corporal (xp: 10000)
  • Seargant (xp: 100000)

Lua api



rankDef = {
	name = "Rank name",
	icon = "myicon.png" -- Should fit withing the background icon (16x32px)
	color = {r=255, g=255, b=255}, -- Player name tag color
	xp = 100 -- xp threshold

ranks are held in xp_redo.ranks as a table


Returns the rankDef for given xp amount



Returns the xp level for given playername (always a number)

xp_redo.add_xp(playername, xp)

Adds the amount of xp to given playername (can be negative for xp removal)



Pull requests / bugs

I'm happy for any bug reports or pull requests (code and textures)

TODO / Ideas

  • Scoreboard (block)
  • More doors
  • Door-teleport alternative
  • XP Regions
  • XP entities/items