Mods / Local Respawn

Category: #Other #QoL #Tweak
Author: DoodleGarbage
Side: Server
Created: Sep 8th at 11:02 PM
Last modified: Sep 20th at 5:33 AM
Downloads: 787
Follow Unfollow 13

Latest file for v1.20.0-pre:
localrespawns_1.0.7.zip 1-click install


Many people hate dying in this game. You explore far, locate that precious bauxite you need for a steel and then- you die. You now must travel 10,000 blocks, just because the bauxite was far away.

No more! With this mod, this distance you need to travel will be consistent. No matter where you are in the world, it'll take the same amount of time to travel back to your body, and you can decide how hard you want that to be.

Temporal Gears will no longer cause you to respawn at the location you use them when you use one to set your spawn point.  However, if you set your spawn point using a Temporal Gear, the Base Return Teleporter will return to that point.

- Rage Quitting and not respawning before the server restarts can delete your spawn point set with a temporal gear

Warning: This is my first mod, the code is messy. While it is very simple and touches very few parts of the game, there's certainly bound to be edge cases, bugs, or unintended behavior. Be cautious when using this mod.

Configuration

This mod is easily configured: Just set your world's Spawn Radius, and the mod will use that value (provided a restart, if changed mid game)


Needs Opinions/TBD:

- Add an alternative spawn selection. Instead of picking a random block within the spawn radius, pick one at the edge of the spawn radius, for even more consistent respawning.

Version For Game version Downloads Release date Changelog Download 1-click mod install*
v1.0.7 383 Sep 20th at 5:33 AM Show localrespawns_1.0.7.zip Install now
v1.0.6 51 Sep 19th at 11:55 PM Show localrespawns_1.0.6.zip Install now
v1.0.5 39 Sep 19th at 9:54 PM Show LocalRespawns_v1.0.5.zip Install now
v1.0.4 88 Sep 15th at 3:04 AM Show LocalRespawns_v1.0.4.zip Install now
v1.0.2 87 Sep 11th at 12:18 AM Show LocalRespawns_v1.0.2.zip Install now
v1.0.1 90 Sep 9th at 12:04 AM Show LocalRespawns_v1.0.1.zip Install now
v1.0.0 49 Sep 8th at 11:23 PM Show LocalRespawns_v1.0.0.zip Install now

14 Comments (oldest first | newest first)

💬 Mackeroni, Oct 22nd at 3:05 PM

This is how I thought the respawn distance worked when I first played. Really glad to see this mod existing.

💬 DoodleGarbageAuthor, Sep 26th at 6:21 AM

Phoenicius

Yes, that is correct.

WickedSchnitzel

Good point. I'll implement that the next time I work on this mod.

💬 Phoenicius, Sep 24th at 5:16 PM

Thanks for letting me know. Also, just to make sure I'm understanding correctly, the spawnRadius value in serverconfig.json controls how far away you'll respawn from your death point? So if I set it to 100, then if I die, I should respawn within a 100 block radius of where I died?

DoodleGarbage

💬 WickedSchnitzel, Sep 21st at 9:50 PM

So if the spawn radius is 0 (like on servers people are spawning at the same place, near the info boards etc), we cannot use that mod, right? This should have it's own spawn radius.

💬 DoodleGarbageAuthor, Sep 20th at 5:34 AM

Phoenicius

Sorry for the shoddy work, but I've released a new version that actually implements compatability with higher world heights, fixed a nasty bug the old fix introduced, and as a bonus added a new feature.

💬 DoodleGarbageAuthor, Sep 20th at 5:26 AM

And so my knowledge expands. The bugs in this code are just 💀

Oh no the "world height compatability" change now means you respawn on the same y as you died

fixing immediately

💬 Phoenicius, Sep 20th at 2:14 AM

Awesome! Downloading now.

💬 DoodleGarbageAuthor, Sep 19th at 9:58 PM

Phoenicius

Wait no longer! I've offload internal work to game code and now spawning should both work worlds of any height and no longer throw you inside (or very high above) the ground!

💬 Phoenicius, Sep 15th at 3:20 PM

Following your mod in the hopes that you'll eventuallly be able to make it work with world heights bigger than 256

💬 DoodleGarbageAuthor, Sep 15th at 3:06 AM

Robik

Thanks for letting me know. Also ran into this on my end, looks like I made a mistake when publishing the version. It should be fixed now, thank you for the help!

💬 Robik, Sep 12th at 1:02 PM

Does not seem to work. I died several thousands blocks from my spawn and I still respawned very near my spawn point where my base also is. Happened twice, so I don't think it was unlucky coincidence.

💬 DoodleGarbageAuthor, Sep 11th at 12:25 AM

Hexis

Hey, I've released an update that makes the use of Base Return Teleporters possible. Thanks for bringing this issue to my attention!

💬 DoodleGarbageAuthor, Sep 10th at 3:48 AM

Hexis

Thanks for pointing that out. I'll have to think about how to account for that (and other items, modded or otherwise, that use your respawn point). I do have an idea of how I could get that to work.

💬 Hexis, Sep 9th at 2:33 PM

What a clever idea! 
quick edit to add, though, what about the use of base return teleporters? if your base is at spawn, and the biome youre in is many MANY thousands of blocks away... you have to walk back home if you cant set a temporal gear spawnpoint.

(edit comment delete)