Tags
Creators
Details
1.2.0
Compatibility
Changes
SinglePlayerSleep v1.2.0 - Smooth Sleep & Logic Fixes πβ¨
This update brings significant improvements to the sleeping experience, visual feedback, and core logic stability.
π Highlights
β‘ Smooth Sleep (Time Acceleration)
Gone are the days of the sun instantly snapping to the horizon! The transition to morning is now smooth and animated, with time accelerating rapidly until daybreak. This provides a much more immersive experience.
- Configurable via
smooth-sleep.enabledandspeed.
π Sleep Cancellation ("Sleep Scam" Fix)
We've fixed a major logic loop where night would still skip even if a player left their bed.
- New Logic: If you leave your bed before the night skip timer completes (or if the percentage drops below requirement), the skip is cancelled immediately.
- Added a "Player woke up" message to notify the server.
π BossBar Progress
Players now get clear visual feedback when someone is sleeping.
- A BossBar appears at the top of the screen showing: "Sleeping... (X%)".
- Fully customizable title, color, and style.
π§ 1.21 Support
- Updated internal API usage to fully support Minecraft 1.21 - 1.21.11.
- Fixed particle names to match modern API standards (
ENCHANT,HAPPY_VILLAGER, etc.).
π Changelog
- [Feature] Added Smooth Sleep time acceleration.
- [Feature] Added BossBar for sleep progress.
- [Fix] Fixed night skipping even if player leaves bed.
- [Fix] Updated particle names for 1.21 compatibility.
- [Config] Added
bossbarandsmooth-sleepconfiguration sections. - [Config] Added
player-woke-upmessage. - [Tech] Updated project to Java 21 and Paper API 1.21.
βοΈ Configuration Changes
Add these to your [config.yml](file:///c:/Users/mrsuf/IdeaProjects/singleplayersleep/src/main/resources/config.yml) to use the new features:
bossbar:
enabled: true
title: "&e&lSleeping... &f({percentage}%)"
color: BLUE
style: SOLID
smooth-sleep:
enabled: true
speed: 100
messages:
player-woke-up: "&e{player} woke up! Night skip cancelled."
Full Changelog: https://github.com/MRsuffixx/SinglePlayerSleep/compare/v1.1.0...v1.2.0
Projects on Modrinth are automatically available through a Maven repository for use with JVM build tools such as Gradle. To learn more about the Modrinth Maven API, click here.
Note: When available, you should use the creator's maven repo instead as it will have transitive dependency information that the Modrinth Maven API does not. You may also end up with duplicate dependencies if you use a mix of Modrinth and non-Modrinth Maven repositories for your dependencies, because the group identifier will be different when served through the Modrinth Maven API.
Maven coordinates:
Version ID:
build.gradle:
repositories {
exclusiveContent {
forRepository {
maven {
name = "Modrinth"
url = "https://api.modrinth.com/maven"
}
}
// forRepositories(fg.repository) // Uncomment when using ForgeGradle
filter {
includeGroup "maven.modrinth"
}
}
}
// Standard Gradle dependency
dependencies {
implementation "maven.modrinth:piy7OZtR:wtYvopBI"
}
// Legacy Loom dependency
dependencies {
modImplementation "maven.modrinth:piy7OZtR:wtYvopBI"
}