minetest.register_on_respawnplayer(function(player)
player:setpos({x=0, y=0, z=0})
return true
end)
PilzAdam wrote:Simple mod for that:Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
minetest.register_on_respawnplayer(function(player)
player:setpos({x=0, y=0, z=0})
return true
end)
Put this in [your_world_name]/worldmods/respawn/init.lua (you can use a different modname if you want to).
KingSmarty wrote:PilzAdam wrote:Simple mod for that:Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
minetest.register_on_respawnplayer(function(player)
player:setpos({x=0, y=0, z=0})
return true
end)
Put this in [your_world_name]/worldmods/respawn/init.lua (you can use a different modname if you want to).
Does this only Works on respawn or on spawn to? Or Must i use:
minetest.register_on_spawnplayer....
KingSmarty wrote:Thx to ALL of u !
I'm currently using Traxies Mod and that is awsome.
@jordan i will try urs too ;)
@PilzAdam what worldmods Folder do you mean?
0gb.us wrote:There's no particular reason to write extra code for this. The built-in scripts have it covered. Just add a setting to your conf file.
static_spawnpoint = 7.5,7.5,7.5
PilzAdam wrote:0gb.us wrote:There's no particular reason to write extra code for this. The built-in scripts have it covered. Just add a setting to your conf file.
static_spawnpoint = 7.5,7.5,7.5
The problem with this is that its in minetest.conf, so not in a per world setting.
My simple script (see above) in worldmods/ would be only for the hungry games map.
PilzAdam wrote:0gb.us wrote:There's no particular reason to write extra code for this. The built-in scripts have it covered. Just add a setting to your conf file.
static_spawnpoint = 7.5,7.5,7.5
The problem with this is that its in minetest.conf, so not in a per world setting.
My simple script (see above) in worldmods/ would be only for the hungry games map.
KingSmarty wrote:I tired to set the static spawnpoint setting into the config but it didn't work.
# If this is set, players will always (re)spawn at the given position
#static_spawnpoint = 0, 10, 0
sfan5 wrote:Why doesn't anybody look in minetest.conf.exampleYour phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
# If this is set, players will always (re)spawn at the given position
#static_spawnpoint = 0, 10, 0
https://github.com/minetest/minetest/blob/master/minetest.conf.example#L233,L234
sfan5 wrote:Why doesn't anybody look in minetest.conf.exampleYour phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
# If this is set, players will always (re)spawn at the given position
#static_spawnpoint = 0, 10, 0
https://github.com/minetest/minetest/blob/master/minetest.conf.example#L233,L234
sfan5 wrote:Why doesn't anybody look in minetest.conf.exampleYour phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
# If this is set, players will always (re)spawn at the given position
#static_spawnpoint = 0, 10, 0
https://github.com/minetest/minetest/blob/master/minetest.conf.example#L233,L234
sfan5 wrote:Why doesn't anybody look in minetest.conf.exampleYour phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
# If this is set, players will always (re)spawn at the given position
#static_spawnpoint = 0, 10, 0
https://github.com/minetest/minetest/blob/master/minetest.conf.example#L233,L234
keyxmakerx wrote:sfan5 wrote:Why doesn't anybody look in minetest.conf.exampleYour phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
# If this is set, players will always (re)spawn at the given position
#static_spawnpoint = 0, 10, 0
https://github.com/minetest/minetest/blob/master/minetest.conf.example#L233,L234
Also I can not find this mine test.conf.example I'm using Linux. Where is it present?
Topywo wrote:This is a link to the sethome mod:
http://forum.minetest.net/viewtopic.php?id=741
When the search function generates too much results, you can use the advanced search and limit the search to only released mods and general modding.
PilzAdam wrote:Simple mod for that:Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
minetest.register_on_respawnplayer(function(player)
player:setpos({x=0, y=0, z=0})
return true
end)
Put this in [your_world_name]/worldmods/respawn/init.lua (you can use a different modname if you want to).
static_spawnpoint = X, Y, Z
kaeza wrote:You don't need a mod for that.
Add this line to `minetest.conf`:Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
static_spawnpoint = X, Y, Z
maikerumine wrote:Thank you. Will this change all worlds loaded? I wanted to have individual maps with different start points e.g. space station map, skybox map, underground cavern map.
minetest.setting_set("static_spawnpoint", "X, Y, Z")
Users browsing this forum: No registered users and 6 guests