First show_level xp handler

master
Solebull 2018-12-30 18:27:57 +01:00
parent 720b965d26
commit c907b545f3
5 changed files with 15 additions and 2 deletions

View File

@ -2,7 +2,7 @@
* v1.0.0
** v0.1.0
*** v0.0.1
*** v0.0.3
**** This kind of dashboard is smart
https://grafana.qbuissondebon.info/dashboard/db/minetestforfun-external-monitoring
- Could we have one ?
@ -224,13 +224,16 @@ It's really fast. May be used on a website, to show the actual map.
[mg_villages] ERROR: Did not find a suitable replacement for cottages:barrel (suggested but inexistant: cottages:barrel). Building: chateau_without_garden.
**** Try mumble-link
- see https://github.com/chipgw/minetest-mumble-wrapper
*** v0.0.2
**** [feature_showLevel] Our own mod
CLOCK: [2018-12-30 dim. 18:06]
*xpro doesn't show total level ? Maybe write a show_level mod ?*
- [ ] First create our own mod/nint.lua
- [X] First create our own mod/nint.lua with depends description etc...
- [ ] Must get xpro mod and register two handler
- [ ] one for add XP
- [ ] One for remove
- [ ] Find a way to permanently print the player's level
- [ ] Maybe using HUD monitor mod : https://forum.minetest.net/viewtopic.php?f=9&t=13795&p=202584
**** DONE Try an XP+levels mod
CLOCK: [2018-12-29 sam. 15:55]--[2018-12-29 sam. 16:17] => 0:22
*level 2 : not showing it! but a cool annoucement with novice etc...*

View File

@ -0,0 +1 @@
xpro

View File

@ -0,0 +1 @@
Permanently shows the global player's level from xpro.

7
mods/show_level/init.lua Normal file
View File

@ -0,0 +1,7 @@
-- Permanently shows the player's level
xpro.register_on_add_xp(function(name, xp_added, lvl_changed)
minetest.log("error", "[show_level] Updating level")
end)

1
mods/show_level/mod.conf Normal file
View File

@ -0,0 +1 @@
name = show_level