![]() So the above skins would be named "texture file name" and "other texture file name", respectively. Then a name is constructed by removing any ".png" suffix any optional "skin_" or "wardrobe_skin_" prefix, and replacing underscores with spaces. Texture_file_name.png skin_other_texture_file_name.png "My Skin") is presented to the player in-world as the name of the texture. Generally it is simply the whole file name of an image in a mod "texture" directory or texture pack. "texture_file_name.png") will be passed to the Minetest API just like any other node or item texture. Texture_file_name.png: My Skin skin_other_texture_file_name.png: Other Skin on Windows, this is %AppData%/Minetest/textures (only if built with -DRUN_IN_PLACE=FALSE flag)Ī comment line starts with two dashes (like in Lua), but must be the only thing on the line:Įxcept for empty lines and comments, each line names a texture (file) and a name, separated by optional whitespace and a colon (:):.on Linux/Unix-like systems, this is ~/.minetest/textures.textures), /textures, & textures installed to the current user's home directory: Minetest recognizes skins located in a mod's textures sub-directory (e.g. displayname: text shown to player (e.g.texture: real filename of texture (e.g.Wardrobe.registerSkin(texture, displayname) using the wardrobe.registerSkin method:.adding the filenames to skins.txt located in this mod's directory or the world path (see "Skins file syntax" below).Choosing a skin instantly changes your character's appearance, and this change is kept if you log out. character-preview.png created from player_api: ( CC BY-SA 3.0)Ĭhanging skins is done via a "wardrobe" node, which brings up a form with skin names when you right-click on it.Some skins are provided by wardrobe_outfits. There are many available on the Addis Open MT-Skin Database. New skins must be registered with the wardrobe. Note: This only provides the default skin. Provides a simple way to change skins on the default character mesh.įorked from prestidigitator's wardrobe mod.
0 Comments
Leave a Reply. |