forked from VoxeLibre/VoxeLibre
some work on colored leathered armors
This commit is contained in:
parent
c49c5dec67
commit
3312aa3201
|
@ -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 |
Loading…
Reference in New Issue