How do i change the spawnpoint?
- KingSmarty
- Member
- Posts: 85
- Joined: Wed Jan 02, 2013 12:06
- GitHub: FsxShader2012
- In-game: FsxShader2012
- Location: Germany
How do i change the spawnpoint?
Hi there,
I'm trying to make a Hungry Games Map to play with my friends and all time you spawn at 0,0,0 what's un the ground. How do i change the spawnpoint?
I'm trying to make a Hungry Games Map to play with my friends and all time you spawn at 0,0,0 what's un the ground. How do i change the spawnpoint?
My Stuff: Minecraft Sounds, [64x64] Meine Kraft Texture Pack by Honeyballlp, Rainbow Ore Mod
The one and only KingSmarty....
The one and only KingSmarty....
- PilzAdam
- Member
- Posts: 4026
- Joined: Fri Jul 20, 2012 16:19
- GitHub: PilzAdam
- IRC: PilzAdam
- Location: Germany
Simple mod for that:
Put this in [your_world_name]/worldmods/respawn/init.lua (you can use a different modname if you want to).
Code: Select all
minetest.register_on_respawnplayer(function(player)
player:setpos({x=0, y=0, z=0})
return true
end)
- KingSmarty
- Member
- Posts: 85
- Joined: Wed Jan 02, 2013 12:06
- GitHub: FsxShader2012
- In-game: FsxShader2012
- Location: Germany
Does this only Works on respawn or on spawn to? Or Must i use:PilzAdam wrote:Simple mod for that:Put this in [your_world_name]/worldmods/respawn/init.lua (you can use a different modname if you want to).Code: Select all
minetest.register_on_respawnplayer(function(player) player:setpos({x=0, y=0, z=0}) return true end)
minetest.register_on_spawnplayer....
My Stuff: Minecraft Sounds, [64x64] Meine Kraft Texture Pack by Honeyballlp, Rainbow Ore Mod
The one and only KingSmarty....
The one and only KingSmarty....
- PilzAdam
- Member
- Posts: 4026
- Joined: Fri Jul 20, 2012 16:19
- GitHub: PilzAdam
- IRC: PilzAdam
- Location: Germany
It should work for new players too.KingSmarty wrote:Does this only Works on respawn or on spawn to? Or Must i use:PilzAdam wrote:Simple mod for that:Put this in [your_world_name]/worldmods/respawn/init.lua (you can use a different modname if you want to).Code: Select all
minetest.register_on_respawnplayer(function(player) player:setpos({x=0, y=0, z=0}) return true end)
minetest.register_on_spawnplayer....
You could use my ServerExtended mod and enable the admin tools module, which contains /setspawn.
My Essential Server Modpack: ServerExtended
Maintainer of the Minitest Game
[0.4.6-git] SunriseTest Minecraft-Like Hardcore Server
My Kindle broke... Online time will drop significantly.
Maintainer of the Minitest Game
[0.4.6-git] SunriseTest Minecraft-Like Hardcore Server
My Kindle broke... Online time will drop significantly.
- jordan4ibanez
- Member
- Posts: 1923
- Joined: Tue Sep 27, 2011 18:44
- GitHub: jordan4ibanez
- IRC: jordan4ibanez
- In-game: jordan4ibanez
- KingSmarty
- Member
- Posts: 85
- Joined: Wed Jan 02, 2013 12:06
- GitHub: FsxShader2012
- In-game: FsxShader2012
- Location: Germany
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?
I'm currently using Traxies Mod and that is awsome.
@jordan i will try urs too
@PilzAdam what worldmods Folder do you mean?
Last edited by KingSmarty on Sun Feb 17, 2013 21:13, edited 1 time in total.
My Stuff: Minecraft Sounds, [64x64] Meine Kraft Texture Pack by Honeyballlp, Rainbow Ore Mod
The one and only KingSmarty....
The one and only KingSmarty....
- PilzAdam
- Member
- Posts: 4026
- Joined: Fri Jul 20, 2012 16:19
- GitHub: PilzAdam
- IRC: PilzAdam
- Location: Germany
If a worldmods/ folder is in your world mods from there are loaded too. So you can create worlds wich use some special mods (for adventure maps etc.).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?
- PilzAdam
- Member
- Posts: 4026
- Joined: Fri Jul 20, 2012 16:19
- GitHub: PilzAdam
- IRC: PilzAdam
- Location: Germany
The problem with this is that its in minetest.conf, so not in a per world setting.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
My simple script (see above) in worldmods/ would be only for the hungry games map.
- KingSmarty
- Member
- Posts: 85
- Joined: Wed Jan 02, 2013 12:06
- GitHub: FsxShader2012
- In-game: FsxShader2012
- Location: Germany
I tired to set the static spawnpoint setting into the config but it didn't work.PilzAdam wrote:The problem with this is that its in minetest.conf, so not in a per world setting.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
My simple script (see above) in worldmods/ would be only for the hungry games map.
My Stuff: Minecraft Sounds, [64x64] Meine Kraft Texture Pack by Honeyballlp, Rainbow Ore Mod
The one and only KingSmarty....
The one and only KingSmarty....
Different worlds have different setups. Why would you not use a separate conf file for each world?PilzAdam wrote:The problem with this is that its in minetest.conf, so not in a per world setting.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
My simple script (see above) in worldmods/ would be only for the hungry games map.
Like conf files, that code could be used in only one world, or in all of them, depending on how you set things up.
Maybe other code is interfering with it (such as the code above). By default though, it should work.KingSmarty wrote:I tired to set the static spawnpoint setting into the config but it didn't work.
Last edited by 0gb.us on Tue Feb 19, 2013 22:40, edited 1 time in total.
-
- Member
- Posts: 104
- Joined: Mon Apr 08, 2013 23:53
-
- Moderator
- Posts: 4095
- Joined: Wed Aug 24, 2011 09:44
- GitHub: sfan5
- IRC: sfan5
- Location: Germany
Why doesn't anybody look in minetest.conf.example
https://github.com/minetest/minetest/bl ... #L233,L234
Code: Select all
# If this is set, players will always (re)spawn at the given position
#static_spawnpoint = 0, 10, 0
- Evergreen
- Member
- Posts: 2135
- Joined: Sun Jan 06, 2013 01:22
- GitHub: 4Evergreen4
- IRC: EvergreenTree
- In-game: Evergreen
- Location: A forest in the midwest
- Contact:
I do. I wouldn't know how to do half the stuff with it that I do now if there wasn't the conf example.sfan5 wrote:Why doesn't anybody look in minetest.conf.examplehttps://github.com/minetest/minetest/bl ... #L233,L234Code: Select all
# If this is set, players will always (re)spawn at the given position #static_spawnpoint = 0, 10, 0
Back from the dead!
-
- Member
- Posts: 104
- Joined: Mon Apr 08, 2013 23:53
No, I want people to choose their own location.sfan5 wrote:Why doesn't anybody look in minetest.conf.examplehttps://github.com/minetest/minetest/bl ... #L233,L234Code: Select all
# If this is set, players will always (re)spawn at the given position #static_spawnpoint = 0, 10, 0
-
- Member
- Posts: 141
- Joined: Sat Apr 20, 2013 21:05
- Location: Austin, TX
- Contact:
Depending on someone's technical experience, conf files can be fairly difficult to decipher. Even just getting past the wall of spam they present can be intimidating for new users who are not experienced with such things.sfan5 wrote:Why doesn't anybody look in minetest.conf.examplehttps://github.com/minetest/minetest/bl ... #L233,L234Code: Select all
# If this is set, players will always (re)spawn at the given position #static_spawnpoint = 0, 10, 0
In order to change yourself, you must believe the change is possible and that there are rewards for making the change.
- Inspired by Hebrews 11:6
- Inspired by Hebrews 11:6
-
- Member
- Posts: 104
- Joined: Mon Apr 08, 2013 23:53
Also I can not find this mine test.conf.example I'm using Linux. Where is it present?sfan5 wrote:Why doesn't anybody look in minetest.conf.examplehttps://github.com/minetest/minetest/bl ... #L233,L234Code: Select all
# If this is set, players will always (re)spawn at the given position #static_spawnpoint = 0, 10, 0
- Evergreen
- Member
- Posts: 2135
- Joined: Sun Jan 06, 2013 01:22
- GitHub: 4Evergreen4
- IRC: EvergreenTree
- In-game: Evergreen
- Location: A forest in the midwest
- Contact:
You won't be able to find it unless you compiled it from github.keyxmakerx wrote:Also I can not find this mine test.conf.example I'm using Linux. Where is it present?sfan5 wrote:Why doesn't anybody look in minetest.conf.examplehttps://github.com/minetest/minetest/bl ... #L233,L234Code: Select all
# If this is set, players will always (re)spawn at the given position #static_spawnpoint = 0, 10, 0
Back from the dead!
Link to the Github minetest.conf.example. You can use copy/paste (to minetest.conf). To get a line working remove the #.
https://github.com/minetest/minetest/bl ... nf.example
https://github.com/minetest/minetest/bl ... nf.example
-
- Member
- Posts: 104
- Joined: Mon Apr 08, 2013 23:53
-
- Member
- Posts: 570
- Joined: Fri Feb 17, 2012 21:55
- Location: Canada
... Install the beds, and then they can set it by sleeping in one. Or the bookmarks mod- just use that search function up at the top.
We are what we create.
I tinker and occasionally make (lousy) mods. Currently building an MMO subgame and updating mods. Pirate Party of Canada member. Sporadic author. 21 years old.
My github:
https://github.com/tinoesroho/
I tinker and occasionally make (lousy) mods. Currently building an MMO subgame and updating mods. Pirate Party of Canada member. Sporadic author. 21 years old.
My github:
https://github.com/tinoesroho/
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.
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.
-
- Member
- Posts: 104
- Joined: Mon Apr 08, 2013 23:53
I know, but this mod isn't a spawn point, and the beds mod didn't work for me.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.
Last edited by keyxmakerx on Mon Jun 10, 2013 07:21, edited 1 time in total.
Who is online
Users browsing this forum: No registered users and 19 guests