Download
For Minetest 5.5 and above

How do I install this?

Edit Skin Mod

This mod allows advanced skin customization. New players get a randomly selected male or female skin. It is compatible with sfinv, sfinv_buttons, i3, unified_inventory, inventory_plus, smart_inventory and 3d_armor. Use the /skin command to open the skin configuration screen. This mod was originally made for MineClone 5.

License

Code under MIT license

Author: MrRar

See media_credits.txt for media licensing.

API

edit_skin.register_item(item)

Register a skin item. item is a table with item properties listed below.

Item properties

type Set the item type. Valid values are: "base", "footwear", "eye", "mouth", "bottom", "top", "hair", "headwear"

texture Set to the image file that will be used. Transparent or semitransparnt parts of the texture can be colored by the mask texture. If this property is omitted "blank.png" is used.

mask Set the color mask texture. Coloring is only applied to non transparent areas of the texture. Coloring only works for "base", "bottom, "top", and "hair".

preview_rotation A table containing properties x and y. x and y represent the x and y rotation of the item preview.

alex If set to true the item will be default for female character.

steve If set to true the item will be default for male character.

restricted_to_admin This item can only be selected by players with edit_skin_admin privilege.

for_player This property is used to restrict the item to a specific player or players. If set to a string, the string is a player name. If set to a table, the table is an array of player names.

edit_skin.show_formspec(player)

Show the skin configuration screen. player is a player ObjectRef.

edit_skin.register_on_set_skin(func)

Register a function to be called whenever a player skin changes. The function will be given a player ObjectRef as a parameter.

edit_skin.save(player)

Save player skin. player is a player ObjectRef.

edit_skin.update_player_skin(player)

Update a player based on skin data in edit_skin.players. player is a player ObjectRef.

edit_skin.base_color

A table of ColorSpec integers that the player can select to color the base item. These colors are separate from edit_skin.color because some mods register two nodes per base color so the amount of base colors needs to be limited.

edit_skin.color

A table of ColorSpec integers that the player can select to color colorable skin items.

edit_skin.players

A table mapped by player ObjectRef containing tables holding the player's selected skin items and colors. Only stores skin information for logged in users.

edit_skin.player_formspecs

A table mapped by player ObjectRef containing tables holding player formspec state. The tables have the following properties:

active_tab Set to the name of the current active tab.

page_num Set to the current formspec page number.

edit_skin.compile_skin(skin)

skin is a table with skin item properties. Returns an image string.

Reviews

Review

Do you recommend this mod?

  • Highly customizable skins w/ no bloat

    If you're looking for a good skin mod without all the bloat of mods like u_skins, this is for you. A ridiculous amount of media can simply go into skin options on public servers nowadays, and this mod makes that media almost 0.

    Additionally, the customization features are pretty good: to rival u_skins textures a few more options might be needed, but this mod does all it needs to: offering a fantastic alternative to bloated skin mods! The formspec is also top notch. Recommended!

    1 comments
  • Great mod

    This is a ambitions mod. It allows the player to customize their character.

    0 comments
  • I love the setup!

    The mod's great, I love being able to customize it. If there's one suggestion I have is there could be sliders for every body part and not just specific ones like shirts and pants (being able to recolor your skin to green for example). This could be made optional with settings but I would love the option. I'd also love to have a template of the default Minetest playermodel beyond just Steve and Alex due to potential copyright concerns with Minecraft lol Beyond that the textures are consistent, the color picker works really well where it's available, I like the base variety and being able to expand it more with mods is amazing! I wanna get my dirty hands and create more textures via the API more ASAP.

    1 comments
  • Minetest's best skin mod!

    Very customizable and adaptable, in addition to consistency in texture!

    1 comments
  • A Very Nice Mod

    I really like this mod. It features many customizable skins! I think it is the best skin mod for Minetest that I have seen!

    0 comments