Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suggestion: MineClone skins management #250

Open
nonfreegithub opened this issue Oct 10, 2023 · 2 comments
Open

Suggestion: MineClone skins management #250

nonfreegithub opened this issue Oct 10, 2023 · 2 comments
Labels

Comments

@nonfreegithub
Copy link

MineClone has an integrated skin system

in mcl_skins mod you can register simple skins with:

mcl_skins.register_simple_skin({
	    texture = "texture.png",
	    slim_arms = false,
})

so simple skins id is the png file name, that can be returned with:

local player = core.get_player_by_name(name)
return mcl_skins.player_skins[player].simple_skins_id

set a skin by:

local player = core.get_player_by_name(name)
mcl_skins.player_skins[player].simple_skins_id = texture
mcl_skins.save(player)
mcl_skins.update_player_skin(player)

its can be an optional feature if mcl_skins mod is

@BuckarooBanzay
Copy link
Member

is there a way to inject new skins into a live server? I got this to work with the skins_api mod with [png textures, might be nice if this works here too somehow 🤔

@nonfreegithub
Copy link
Author

is there a way to inject new skins into a live server?

maybe injecting a skin register

mcl_skins.register_simple_skin({
	    texture = "texture.png",
	    slim_arms = false,
})

I got this to work with the skins_api mod with [png textures, might be nice if this works here too somehow 🤔

check this project, a skins server to MTG/MCL

actually I dont know how it works

https://github.com/AFCMS/minetest-skin-server

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants