mirror of
https://github.com/a-bad-dev/simple-shooter-game.git
synced 2026-06-08 20:12:11 +00:00
i pushed to the wrong repo ._. (#5)
* Hide crafting grid in player inventory * Put all the MTG stuff in a modpack --------- Co-authored-by: CrazyladMT <crazyladttd@outlook.com>
This commit is contained in:
parent
8ff3299dcc
commit
3728e0d29e
736 changed files with 1 additions and 0 deletions
26
mods/mtg/player_api/init.lua
Normal file
26
mods/mtg/player_api/init.lua
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
dofile(minetest.get_modpath("player_api") .. "/api.lua")
|
||||
|
||||
-- Default player appearance
|
||||
player_api.register_model("character.b3d", {
|
||||
animation_speed = 30,
|
||||
textures = {"character.png"},
|
||||
animations = {
|
||||
-- Standard animations.
|
||||
stand = {x = 0, y = 79},
|
||||
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}},
|
||||
walk = {x = 168, y = 187},
|
||||
mine = {x = 189, y = 198},
|
||||
walk_mine = {x = 200, y = 219},
|
||||
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}}
|
||||
},
|
||||
collisionbox = {-0.3, 0.0, -0.3, 0.3, 1.7, 0.3},
|
||||
stepheight = 0.6,
|
||||
eye_height = 1.47,
|
||||
})
|
||||
|
||||
-- Update appearance when the player joins
|
||||
minetest.register_on_joinplayer(function(player)
|
||||
player_api.set_model(player, "character.b3d")
|
||||
end)
|
||||
Loading…
Add table
Add a link
Reference in a new issue