From 9e02edb5e264b998c34c8e29734f0b7c4e76f85b Mon Sep 17 00:00:00 2001 From: Wolfgang Silbermayr Date: Wed, 9 Aug 2017 10:44:00 +0200 Subject: [PATCH] Show the new tool level in the level-up chat message --- init.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/init.lua b/init.lua index b24dbf7..2c6104d 100644 --- a/init.lua +++ b/init.lua @@ -68,7 +68,9 @@ function toolranks.new_afteruse(itemstack, user, node, digparams) if lastlevel < level then local levelup_text = "Your " .. toolranks.colors.green .. itemdesc .. toolranks.colors.white .. - " just leveled up!" + " just leveled up to " .. + toolranks.colors.green .. "level " .. + level .. toolranks.colors.white .. "!" minetest.sound_play("toolranks_levelup", { to_player = user:get_player_name(), gain = 2.0,