Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
-- setting player amour textures;
--[[
The first texture in the table is for 64x32 skins, the original Minecraft
format.
The second texture in the table is for 64x64 skins, introduced in
Minecraft's offical 1.8 update, not the Beta.
The thrid texture in the table is a 64x32 texture, which follows
the same scheme as Minecrafts 64x32 texture, and the same layout.
Use the head in the top left position and not the "hat layer".
The fourth texture in the table is the same texture as above.
Except, the chest has both the main body and arms. Same place
as a normal 64x32 skin.
The fifth texture in the table is the same texture as the helmet,
but uses the top half of the legs texture - note that it does not
use the last 4 pixels of the legs.
The sixth texture in the table is the same texture as the helmet,
but uses the final four pixels of the leg texture.
The seventh texture in the table is teh shield - a 16x16 image
that will cover your own or another's left arm.
Use "ptextures_transparent.png" when not using armour layers and
or the 64x64 skin socket.
--]]
-- Default player appearance
default.player_register_model("character.x", {
animation_speed = 30,
textures = {"player_singleplayer.png",
"ptextures_transparent.png",
"ptextures_transparent.png",
"ptextures_transparent.png",
"ptextures_transparent.png",
"ptextures_transparent.png",
"ptextures_transparent.png"},
animations = {
-- Standard animations.
stand = { x= 0, y= 79, },
lay = { x=162, y=166, },
walk = { x=168, y=187, },
mine = { x=189, y=198, },
walk_mine = { x=200, y=219, },
-- Extra animations (not currently used by the game).
sit = { x= 81, y=160, },
},
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment