some work on colored leathered armors

This commit is contained in:
AFCMS 2021-11-14 18:28:57 +01:00
parent c49c5dec67
commit 3312aa3201
5 changed files with 8 additions and 5 deletions

View File

@ -75,11 +75,14 @@ mcl_armor.register_set({
})
minetest.register_chatcommand("colort", {
params = "<name> <privilege>", -- Short parameter description
params = "", -- Short parameter description
description = "Remove privilege from player", -- Full description
func = function(name, param)
local player = minetest.get_player_by_name(name)
if player then
local item = player:get_wielded_item()
item:get_meta():set_string("color", "#951d1d")
mcl_armor.update(player)
end
end,
})

Binary file not shown.

After

Width:  |  Height:  |  Size: 203 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 199 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 165 B