Mods / Amulet Bed Spawn
- Tags:
- Author:
- DetachableMonkey
- Side:
- Both
- Created:
- Feb 27th at 8:08 PM
- Last modified:
- May 3rd at 11:01 AM
- Downloads:
- 12475
-
Latest release (for Vintage Story 1.22.0-pre.1 - 1.22.2, potentially outdated):
AmuletBedSpawn_v1.0.7.zip 1-click install
QUICK DESCRIPTION
This mod will allow the player to set their spawn point by sleeping in a bed, but only if they are wearing a Temporal Gear Amulet or a Rusty Gear Amulet. I've also included a user-editable config file that allows players to set whether they would like their worn amulet to have a percentage chance to break upon every respawn along with a few other options to further define balance. See below...
WHY?
I installed some of the other bed spawn mods and enjoyed them, but it was just a little TOO easy in the very early game. All you had to do was gather some grass to make a Hay Bed and boom, you set your spawn. This mod makes sure that you still keep a little bit of tension in the very early game. If you want the comfort of a nice spawn point to come back to, you've got to do a bit of hunting for a rusty gear at the minimum. Maybe you'll get lucky and find one laying on the ground or in a cave, but often times it could be an hour or two (or 6 if you play like me) before the first one is organically found. And to me, that tiny bit of exploration tension is fun.
DETAILS
- If a Rusty or Temporal Gear Amulet is not worn, the bed functions normally -- you just sleep.
- If the bed is destroyed or moved, any player that has set their spawn point on that bed will have their spawn point reset to the default world location.
- A message will be displayed within the chat window if the spawn is successfully set and also if the spawn gets reset due to a bed being broken.
- There are a few options that can be changed via config file. See below.
CONFIG FILE (compatible with the ConfigLib mod for easy setting changes)
There is a config file (created after the mod is first run) called AmuletBedSpawn.json and it is located in the .../VintagestoryData/ModConfig/ folder.
On creation, it looks like the following:
{
"AllowHayBeds": true,
"AllowRustyGearAmulets": true,
"AmuletsCanBreakAfterRespawn": false,
"BreakingBedRemovesSpawnPoint": true,
"RustyGearAmuletBreakChancePct": 30,
"TemporalGearAmuletBreakChancePct": 5
}
- "AllowHayBeds" is defaulted to "true". If set to false, hay beds cannot be used to set a player's spawn (regardless of the type of amulet being worn).
- "AllowRustyGearAmulets" is defaulted to "true". If set to false, rusty gear amulets cannot be used to set a player's spawn (only temporal gear amulets can be used).
- "AmuletsCanBreakAfterRespawn" is defaulted to "false". If set to true, the following game rules go into effect:
- After you've set your spawn with a Rusty Gear Amulet or a Temporal Gear Amulet, you must be wearing that amulet when you die to be respawned back to your bed.
- If you aren't wearing one of the approved amulets when you die, your spawn point will be removed, and you will be respawned at the default world location.
- If you set your spawn with a Rusty Gear Amulet, but then later on replace it with a Temporal Gear Amulet, you are not penalized. That works, and it's a good thing.
- When you respawn back at your bed, your amulet will now have a chance to break and be destroyed completely. If the amulet is destroyed, so is the spawn setting. So, you'll need to find/make a new amulet and reset your spawn. The percentage chance of that happening is defined by modifying the other options in the config file.
- "BreakingBedRemovesSpawnPoint" has a default value of true. If set to false, when a player breaks the bed, the spawn point will not be removed. There isn't a visual indication any more that the spawn is set to that position, but the player will respawn where the bed was.
- "RustyGearAmuletBreakChancePct" has a default value of 30. It can be set to an integer value between 0 and 100. The default value of 30 means that a Rusty Gear Amulet has a 30% chance of breaking after respawning at your bed.
- "TemporalGearAmuletBreakChancePct" has a default value of 5. It can be set to an integer value between 0 and 100. The default value of 5 means that a Temporal Gear Amulet has a 5% chance of breaking after respawning at your bed. This means, you will eventually want to craft one of these to lessen your breakage chance!
HANDY VANILLA RECIPES
Rusty Gear Amulet : Made by placing 1 coil of rope above 1 rusty gear in the crafting window. It must then be worn by pressing 'C' to bring up the Character UI and then placed into the top right necklace slot.
Temporal Gear Amulet : Made by placing 1 coil of rope above 1 temporal gear in the crafting window. It must then be worn by pressing 'C' to bring up the Character UI and then placed into the top right necklace slot.
| Mod Version | Mod Identifier | For Game version | Downloads | Released | Changelog | Download | 1-click mod install* |
|---|---|---|---|---|---|---|---|
| 1.0.7 | amuletbedspawn | 8113 | Apr 12th at 12:47 PM | AmuletBedSpawn_v1.0.7.zip | 1-click install | ||
|
[New] Added support for the ConfigLib mod to enable easy setting changes (Single Player). | |||||||
| 1.0.6 | amuletbedspawn | 284 | Apr 4th at 11:26 PM | AmuletBedSpawn_v1.0.6.zip | 1-click install | ||
|
[New] Added a new config option called "BreakingBedRemovesSpawnPoint" and it is set to true by default. If set to false, when a player breaks the bed, the spawn point will not be removed. There isn't a visual indication any more that the spawn is set to that position, but the player will respawn where the bed was. | |||||||
| 1.0.5 | amuletbedspawn | 778 | Mar 20th at 7:21 PM | AmuletBedSpawn_v1.0.5.zip | 1-click install | ||
|
[Fixed] Fixed a fatal error when falling and placing a bed at the same time. | |||||||
| 1.0.4 | amuletbedspawn | 152 | Mar 17th at 12:03 PM | AmuletBedSpawn_v1.0.4.zip | 1-click install | ||
|
[New] Added helpful text that displays when the player's cursor hovers over a bed. It will show if a bed is currently the spawn point, and if not, it will let the user know they can set their spawn point (if an appropriate amulet is worn). | |||||||
| 1.0.3 | amuletbedspawn | 332 | Mar 2nd at 12:37 PM | AmuletBedSpawn_v1.0.3.zip | 1-click install | ||
|
[New] Added a new config file option called "AllowHayBeds" and it is defaulted to "true". If set to false, hay beds cannot be used to set a spawn point. [New] Added a new config file option called "AllowRustyGearAmulets" and it is defaulted to "true". If set to false, rusty gear amulets cannot be used to set a spawn point (only temporal gear amuletes will work). | |||||||
| 1.0.2 | amuletbedspawn | 105 | Mar 1st at 1:39 AM | AmuletBedSpawn_v1.0.2.zip | 1-click install | ||
| |||||||
| 1.0.1 | amuletbedspawn | 125 | Feb 27th at 8:22 PM | AmuletBedSpawn_v1.0.1.zip | 1-click install | ||
|
Initial release | |||||||
| 0.5.7 | amuletbedspawn | 647 | Apr 12th at 12:47 PM | AmuletBedSpawn_v0.5.7.zip | 1-click install | ||
|
[New] Added support for the ConfigLib mod to enable easy setting changes (Single Player). | |||||||
| 0.5.6 | amuletbedspawn | 370 | Apr 4th at 11:27 PM | AmuletBedSpawn_v0.5.6.zip | 1-click install | ||
|
[New] Added a new config option called "BreakingBedRemovesSpawnPoint" and it is set to true by default. If set to false, when a player breaks the bed, the spawn point will not be removed. There isn't a visual indication any more that the spawn is set to that position, but the player will respawn where the bed was. | |||||||
| 0.5.5 | amuletbedspawn | 494 | Mar 20th at 7:22 PM | AmuletBedSpawn_v0.5.5.zip | 1-click install | ||
|
[Fixed] Fixed a fatal error when falling and placing a bed at the same time. | |||||||
| 0.5.4 | amuletbedspawn | 312 | Mar 17th at 12:37 PM | AmuletBedSpawn_v0.5.4.zip | 1-click install | ||
|
[New] Added helpful text that displays when the player's cursor hovers over a bed. It will show if a bed is currently the spawn point, and if not, it will let the user know they can set their spawn point (if an appropriate amulet is worn). | |||||||
| 0.5.3 | amuletbedspawn | 621 | Mar 2nd at 12:36 PM | AmuletBedSpawn_v0.5.3.zip | 1-click install | ||
|
[New] Added a new config file option called "AllowHayBeds" and it is defaulted to "true". If set to false, hay beds cannot be used to set a spawn point. [New] Added a new config file option called "AllowRustyGearAmulets" and it is defaulted to "true". If set to false, rusty gear amulets cannot be used to set a spawn point (only temporal gear amuletes will work). | |||||||
| 0.5.2 | amuletbedspawn | 142 | Mar 1st at 11:26 AM | AmuletBedSpawn_v0.5.2.zip | 1-click install | ||
|
Initial Release for Vintage Story 1.21.6. This mod version has exactly the same features and the same code as v1.0.2 but it targets the required Windows .NET 8 libraries instead of .NET 10. | |||||||
i think a mechanic (with a config) that would be cool is making it so the temporal gear amulet is only affected by the break chance after the 20 (or whatever number you've put in the world creation for the amount of times a temporal geat respawn point lasts) so the amulet can't break after one respawn if you're really unlucky
Hey there, cool idea for a mod between just bed spawning and using temporal gears all the time like in vanilla.
I just wanted to ask: does this mean I could set my spawn to a bed, then take off the amulet before sleeping in another bed, put it back on and my spawn would be the first bed I slept in still? Because that would actually be pretty neat imo ^^
by how i think the mod is coded it sets your spawn in a bed if you have an amulet equipped and it isn't already set in that bed, so if you sleep in another bed without the amulet equipped logically it shouldn't set your spawn because one of the conditions isn't met
Vivi001 This mod does still work for 1.21.6. If you need to download it for that specific version of the game, you can click on the Files tab and grab it.
I'm considering your config option. I'll tinker around the idea in my head for a couple of days, but at the moment it doesn't seem like it is terrible, lol. If you want it and it helps your gameplay, then why not? :)
Does it still work for 1.21.6?
Oh yeah, I would like to see if config can also add the following to be toggled >0<
I mean it may kinda defeat the purpose of the mod maybe, but er I happen to be using rustbound and like the necklace accessory slot has contention :(
Up to you, author~!
Love this mod idea, instant download. c:
I like this mod because it let's me use beds as spawnpoints but have the option to not set my spawnpoint every time I sleep, because sometimes I want to sleep while out exploring without overriting my home spawn
alumpof I just set the properties of the mod (1.0.7) to be compatible with 1.22 stable. There shouldn't be a reason to redownload it if you downloaded this version when the release candidates were out. Tested and works great.
Thank you!
Will this be updated to 1.22 Stable? I really like this mod on my server.
[New] Added support for the ConfigLib mod to enable easy setting changes (Single Player).
DetachableMonkey
Wow! its great~! It also works with modded beds(While disabling hay bed still), which didn't work on another bed respawn mod(A wish come true T^T)
One last suggestion; add your mod configuration using configlib. Thank you for your work!
Vivi001 I've added the following to the config file:
If you set it to false, your spawn point will not be removed when you break your bed. Thank you for the suggestion. :)
Vivi001 Sounds like a great idea. I'll add it to the next update.
Can there be a config for not removing the spawn point when the bed is broken?
I tried both amulets and it doesnt appear new save when i sleep
Sodamkho When you say "the best bed", what exact bed are you using? Do you have another mod that adds beds or modifies them in any way? Are you wearing a rusty gear or temporal gear amulet?
The beds that should always work would be : "Hay bed", "Wooden bed", and "Aged wooden bed".
I dont know why it doesnt work i use the best bed maybe its that the problem?
Added version 1.0.5 (and 0.5.5) today. No new features, just fixed an extremely rare bug. It occurred while I was playing, so if it happens to me, well ... :)
[Fixed] Fixed a fatal error when falling and placing a bed at the same time.
Really appreciate you updating both versions. Thanks a ton.
Added version 1.0.4 (and 0.5.4) today.
[New] Added helpful text that displays when the player's cursor hovers over a bed. It will show if a bed is currently the spawn point, and if not, it will let the user know they can set their spawn point (if an appropriate amulet is worn).
For players that have already set their spawn using this mod, you will most likely need to sleep in that bed again to see the new hover text properly -- even though your spawn was set previously.
Runovaris and Josselin17, I've pushed a new release with your suggested changes. The config file now has two new lines.
Runovaris Absolutely. I'll try and get an update out with that tomorrow. 03/02/2026
Could you add a config to disable the use of rusty gears altogether?
Thanks so much!
Josselin17
Suggestion #1 (to require at minimum a wood bed via a config option) is a great idea and something I'll add for the next update. I'll default it to false to not affect current users.
Suggestion #2, (to track up to 2 spawn points with 2 different types of amulets) could be coded and I do see the benefit of it, but it may distract from the simplicity of the mod that I'm going for. I will think about it though and I appreciate your feedback. :)
that looks cool, I just have two suggestions, 1 a config so you need a wooden bed in order to set a spawn and 2 if it's possible, could you wear one amulet, sleep in a bed, then wear a second amulet and sleep in another, and depending on the amulet you're wearing when you die you respawn in either of the two spawn points
NecrosxYT There is now a download for this mod that is compatible with Vintage Story 1.21.6.
artemax44 and ShiroTheOkami, I've updated this mod to put in some features that may be to your liking. See the new mod description for details.
That will be fantastic, thank you DetachableMonkey!
NecrosxYT Just finishing up a bit of coding for the next version of this mod (1.0.2), and then I'll go ahead and make it compatible with 1.21.
Any chance you'll make this compatible with 1.21.6? Or will you only be working on it for the latest Beta?
ShiroTheOkami This sounds like a fantastic alternative to tracking number of uses on the amulet. I'd make it configurable (off/on), and enabled off. I think the default odds could be something like a 30% chance a Rusty Gear Amulet disintegrates upon respawn in the bed, and maybe a 5% chance for a Temporal Gear Amulet. It'd make finding a temporal gear much more important.
DetachableMonkeyIt could instead require you to be wearing the amulet when you die, and when you respawn it consumes the entire amulet. A benefit of using a temporal amulet is that it could have a configurable, default 50% chance, to NOT consume the amulet on death.
This would prevent you from having to track the individual amulets as the check would be performed on the player entity at death, and the penalty could be applied. I don't mod vintage story, I don't know how difficult or easy that would be just my suggestion. I believe there should be a death event you can look for to trigger this, but Im not sure where in the game files you'd need to look to find what its named. Theres another mod called value your life, it makes you pay for respawn tokens it tracks per player, and consumes them on respawn, you could maybe ask them for info on the death event.
I hope this helps, either way this is a great alternative to the bed spawn and I am definitely adding this, thank you!
artemax44 The mod would need to track every temporal or rusty gear amulet you ever make and keep a lifespan value for each one. So, it's not an easy addition, but I'll for sure think on it a bit and see if I'm not thinking everything through just yet...
DetachableMonkey
Is it possible to limit the number of uses on the necklace? Like in vanilla, where the respawn time is 20, could the limit be reduced by 1 each time you die while wearing the necklace?This would force players to craft a new necklace instead of having an infinite one. This could be done with a modconfig file so everyone can customize it to their liking.