HomeJavaModsBedBackBetter
BedBackBetter
ModsJava

BedBackBetter

by Mizuhara · on Modrinth

Never worry about a broken bed again - fallback to your last 5 (configurable) beds/respawn anchor spawn points!

⬇ Download on Modrinth

Bed Back Better

Never worry about your friend breaking your bed! Your last 5 valid spawn points (configurable) are now recorded so that, even if your bed breaks, you've always got a (hopefully) nearby bed to fallback to.

A set-it-and-forget-it, vanilla-ish Paper plugin for Minecraft 1.21.5+ that lets you fallback to previous beds and respawn anchors.

Tested to work on Paper 1.21.5 and 26.1.2.

Idea stolen from this Reddit post.

See also:

Features

FAQ

Configuration options

# How many previous spawn points to consider when finding a fallback respawn.
fallback-candidates: 5

# Maximum spawn points to store per player. Oldest are dropped when exceeded.
# Set to 0 for unlimited.
max-stored-spawns: 100

# Behavior on fallback:
# - LAST_N: Consider only the N most recent spawn points (incl. invalid)
# - LAST_N_VALID: Consider only the N most recent *valid* spawn points
# - LAST_N_IN_DIMENSION: Consider only the N most recent spawn points in that dimension (incl. invalid)
# - LAST_N_VALID_IN_DIMENSION: Consider only the N most recent *valid* spawn points in that dimension
# Note: this policy affects what records are safe to clean up at respawn time, independent of max-stored-spawns.
# For example, LAST_N_VALID will drop all records, both valid and invalid past the Nth valid spawn point it finds.
fallback-policy: LAST_N_VALID

# How often to autosave spawn records (in minutes). Set to 0 to never autosave.
autosave-interval: 5

# What to say to players when they fall back to a new location. Set to "" to omit a message.
fallback-respawn-message: "Your respawn was updated to a new location"

# Enable debug functionality (server logs when spawn changes, record changes, etc.)
debug-mode: false

Command usage

This plugin does not use any commands.

How do I tell you that your plugin is broken?

Report issues with my spaghetti code through the issue tracker on the plugin's GitHub repository.

How do I build this plugin myself?

  1. Clone this repository: git clone https://github.com/ganyuke/BedBackBetter.git
  2. Change directory: cd BedBackBetter
  3. Build the .jar: ./gradlew build
  4. Find the built .jar in build/libs/

How do I submit features for this plugin?

If you wrote the code for it, I'll happily accept a pull request if I feel like it doesn't bloat the scope of this plugin. Ensure that you use the pull request template.

By submitting a contribution to this repository, you agree that your contribution is licensed under the same license as this repository, as published in the LICENSE file.

License

Unless otherwise noted, all source code in this repository is licensed under the Mozilla Public License 2.0 (SPDX: MPL-2.0). Please view the LICENSE file for the terms you are afforded under the MPL-2.0.

Verified by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more