SussyCraft/mods/player_api/init.lua
2023-05-02 18:44:15 +02:00

24 lines
498 B
Lua

dofile(minetest.get_modpath("player_api") .. "/api.lua")
-- Default player appearance
player_api.register_model("susman.obj", {
animation_speed = 30,
textures = {"susman.png"},
animations = {},
stepheight = 0.6,
eye_height = 1.47,
collisionbox = {-0.3, 0.0, -0.3, 0.3, 1.7, 0.3},
visual = "mesh",
visual_size = {x=10, y=10, z=10},
})
-- Update appearance when the player joins
minetest.register_on_joinplayer(function(player)
player_api.set_model(player, "susman.obj")
end)