Skip to content

Commit

Permalink
Document how to make nametags background disappear on players' head (m…
Browse files Browse the repository at this point in the history
…inetest#10783)

Co-authored-by: Zughy <[email protected]>
  • Loading branch information
Zughy and Zughy committed Jan 11, 2021
1 parent 08ee979 commit 1946835
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion doc/lua_api.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6938,7 +6938,11 @@ Player properties need to be saved manually.
-- in mods.

nametag = "",
-- By default empty, for players their name is shown if empty
-- The name to display on the head of the object. By default empty.
-- If the object is a player, a nil or empty nametag is replaced by the player's name.
-- For all other objects, a nil or empty string removes the nametag.
-- To hide a nametag, set its color alpha to zero. That will disable it entirely.


nametag_color = <ColorSpec>,
-- Sets color of nametag
Expand Down

0 comments on commit 1946835

Please sign in to comment.