2017-07-26 20:38:11 +02:00
|
|
|
dofile(minetest.get_modpath("player_api") .. "/api.lua")
|
|
|
|
|
|
|
|
-- Default player appearance
|
|
|
|
player_api.register_model("character.b3d", {
|
|
|
|
animation_speed = 30,
|
2020-09-09 19:11:25 +02:00
|
|
|
textures = {"character.png"},
|
2017-07-26 20:38:11 +02:00
|
|
|
animations = {
|
|
|
|
-- Standard animations.
|
2017-08-07 05:27:19 +02:00
|
|
|
stand = {x = 0, y = 79},
|
2022-01-18 19:18:44 +01:00
|
|
|
lay = {x = 162, y = 166, eye_height = 0.3, override_local = true,
|
|
|
|
collisionbox = {-0.6, 0.0, -0.6, 0.6, 0.3, 0.6}},
|
2017-08-07 05:27:19 +02:00
|
|
|
walk = {x = 168, y = 187},
|
|
|
|
mine = {x = 189, y = 198},
|
|
|
|
walk_mine = {x = 200, y = 219},
|
2022-01-18 19:18:44 +01:00
|
|
|
sit = {x = 81, y = 160, eye_height = 0.8, override_local = true,
|
|
|
|
collisionbox = {-0.3, 0.0, -0.3, 0.3, 1.0, 0.3}}
|
2017-07-26 20:38:11 +02:00
|
|
|
},
|
2017-10-27 09:28:22 +02:00
|
|
|
collisionbox = {-0.3, 0.0, -0.3, 0.3, 1.7, 0.3},
|
2017-08-07 05:27:19 +02:00
|
|
|
stepheight = 0.6,
|
2017-11-05 05:28:52 +01:00
|
|
|
eye_height = 1.47,
|
2017-07-26 20:38:11 +02:00
|
|
|
})
|
|
|
|
|
|
|
|
-- Update appearance when the player joins
|
|
|
|
minetest.register_on_joinplayer(function(player)
|
|
|
|
player_api.set_model(player, "character.b3d")
|
|
|
|
end)
|