From 6086e888b19e6eff250d48959ef77d26f11af088 Mon Sep 17 00:00:00 2001 From: kaadmy Date: Sat, 3 Oct 2015 16:19:05 -0700 Subject: [PATCH] fade nametags while sneaking --- mods/default/model.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mods/default/model.lua b/mods/default/model.lua index f89fef2..f49d29a 100644 --- a/mods/default/model.lua +++ b/mods/default/model.lua @@ -127,11 +127,11 @@ minetest.register_globalstep( local model=model_name and models[model_name] local controls=player:get_player_control() ---[[ if controls.sneak then --- setting makes_footstep_sound apperantly does nothing :( - player:set_properties({makes_footstep_sound = false}) + if controls.sneak then + player:set_nametag_attributes({color = {a = 30, r = 255, g = 255, b = 255}}) else - player:set_properties({makes_footstep_sound = true}) - end--]] + player:set_nametag_attributes({color = {a = 255, r = 255, g = 255, b = 255}}) + end if model and not player_attached[name] then local walking=false