i've tried to write a little mod which changes the playertexture for each player related to his/her name.
So i looked how it is done in the default mod and how some skinmods handle this.
My current test-code looks like:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
minetest.register_on_joinplayer(function(player)
player:set_properties({
visual = "mesh",
mesh = "character.b3d",
visual_size = {x=1, y=1},
textures = "singleplayer.png",
})
end)
I am able to change the model and the size but the texture stays on the default one.