Optionally append itemstring

master
Wuzzy 2021-04-23 15:04:20 +02:00
parent cb693966e8
commit 7d424b7783
2 changed files with 8 additions and 0 deletions

View File

@ -121,6 +121,11 @@ minetest.register_globalstep(function(dtime)
-- Print description
if desc then
-- Optionally append the 'technical' itemname
local tech = minetest.settings:get_bool("show_wielded_item_itemname", false)
if tech and desc ~= "" then
desc = desc .. " ["..wname.."]"
end
player:hud_change(huds[player_name], 'text', desc)
end
end

View File

@ -1,3 +1,6 @@
#If true, also append the 'technical' itemname.
show_wielded_item_itemname (Show technical itemname) bool false
#Use this setting to manually set the vertical offset of the label which shows
#the name of the wielded item. The offset is in pixels from the bottom of the
#screen.