Skip to content

Split disable sleeping and setting spawn point tweak#793

Merged
ACGaming merged 1 commit intoACGaming:mainfrom
Apis035:bedspawn
Jan 30, 2026
Merged

Split disable sleeping and setting spawn point tweak#793
ACGaming merged 1 commit intoACGaming:mainfrom
Apis035:bedspawn

Conversation

@Apis035
Copy link
Contributor

@Apis035 Apis035 commented Jan 25, 2026

  • Split the tweak to be more flexible, so you can:
    • disable sleeping, disable set spawn point
    • disable sleeping, set spawn point anytime
    • enable sleeping, disable set spawn point
    • enable sleeping and can set spawn point anytime
  • Remove the logic for manually calculating if it is possible to sleep (bed too far, monsters nearby). Use the result calculated by Minecraft instead.
  • Message for disabled sleeping

Related to #783

@what-the-diff
Copy link

what-the-diff bot commented Jan 25, 2026

PR Summary

  • Upgraded Sleep-Related Functionality
    The previous functionality related to sleep has been updated. We replaced the old system (UTDisableSleeping class) with a newer, optimized one (UTSleepingTweak class).

  • Added a New Way to Determine Bed Spawn Behavior
    A new enumeration known as BedSetSpawnMode has been added. This determines how the spawn points related to beds will react under different circumstances.

  • Renamed Configuration Toggle for Clarity
    The previously named utDisableSleepingToggle has been renamed to utEnableSleepingTweak to make its purpose more apparent.

  • Added a Setting to Control Bed Spawn Points
    We now have a setting that allows users to control the conditions under which the bed spawn point is set. The options are DEFAULT, DISABLED, or ANYTIME.

  • Updated Game Logic Based on New Configuration
    The game's internal logic has been updated to match the new sleeping behavior configuration.

  • Added Messages Informing Players About Disabled Sleeping
    New messages have been added in the game that inform players when sleeping has been disabled.

  • Removed Outdated Sleeping Class
    As we have now implemented a new system, the old UTDisableSleeping class was removed.

  • Minor Changes for Support
    Some minor changes were made in the Java files to support the newly structured sleeping tweaks.

@ACGaming ACGaming merged commit fc873e1 into ACGaming:main Jan 30, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants