mirror of
https://github.com/a-bad-dev/simple-shooter-game.git
synced 2026-06-09 20:36:15 +00:00
Add a spawnpoint
no more falling into the void
This commit is contained in:
parent
33a9496b05
commit
3a5b49a66b
2 changed files with 3 additions and 2 deletions
|
|
@ -124,8 +124,9 @@ core.register_on_mods_loaded(function()
|
|||
end
|
||||
end)
|
||||
|
||||
core.register_on_joinplayer(function(player)
|
||||
player:set_pos({x=0, y=0, z=0})
|
||||
core.register_on_joinplayer(function(player)
|
||||
core.place_schematic({x=0, y=1000, z=0}, core.get_modpath("main") .. "/schems/spawn.mts", 0, nil, false)
|
||||
player:set_pos({x=5, y=1000.6, z=8})
|
||||
player:get_inventory():set_list("main", {})
|
||||
|
||||
local player_name = player:get_player_name()
|
||||
|
|
|
|||
BIN
mods/main/schems/spawn.mts
Normal file
BIN
mods/main/schems/spawn.mts
Normal file
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue