▶️ ЗАБЕРИ СВОИ 8 ПОДАРКОВ 🎁 ПРИ СОЗДАНИИ СВОЕГО МАЙНКРАФТ СЕРВЕРА
Моды/Hibernate MC (Formerly Hibernate Fabric)
Hibernate MC (Formerly Hibernate Fabric)

Hibernate MC (Formerly Hibernate Fabric)

Lets your Minecraft Fabric or NeoForge server snooze when idle, slashing CPU usage without missing a block!

Оцените первым
2.8K
14

Hibernate MC

Lets your Minecraft Fabric or NeoForge server snooze when idle, slashing CPU usage without missing a block!


Download from:

Modrinth

Supported loaders:

📖 About

Hibernate MC is a lightweight tool that automatically puts your Minecraft Fabric or NeoForge server to sleep when no players are online. By reducing CPU usage during idle times, it helps save server resources, lowers your electricity bill, and makes your server more eco-friendly. It's a simple way to keep your Minecraft world running smoothly without wasting power when it's not needed.

Hibernate MC can also be used in singleplayer. When used in singleplayer, you can use the /hibernate commands (Ops only) and the entity removal feature works if enableMemoryOptimization is enabled in the config. No other features work in singleplayer as they only function when no players are online which can't happen in singleplayer.

📦 Dependencies

For Fabric:

Fabric API

For NeoForge:

N/A

🎮 Install & Play

Installing Hibernate MC is easy:

  1. Download the latest version for your loader and Minecraft version here.
  2. Put the downloaded jar file in to your mods folder.
  3. Launch Minecraft and play with the mod.

If installing on a server, don't forget to set pause-when-empty-seconds to 0 in your server.properties file to disable the vanilla hibernation system.

📜 Support Policy

The project supports the Minecraft version for which the mod is initially developed for, along with the next two major Minecraft versions. Versions released prior to the initial supported version are not supported.

Once a Minecraft version falls outside the three-version active support window, it enters Bug-Fixes-Only support for the duration of the following major version. During this period, only critical or game-breaking issues directly related to the project will be addressed. New features, enhancements, and non-critical changes will not be backported to versions in this stage.

Once a version leaves Bug-Fixes-Only support, it becomes Unsupported. Unsupported versions will receive no further updates, fixes, or compatibility changes.

Minecraft versionSupported status
26.3Supported
26.2Supported
26.1Supported
1.21.11Bugs Only
1.21.9Unsupported

📝 Config

The config file can be found at /config/hibernate_mc.json from the root of the .minecraft folder or your server folder.

⚙️ Options

See options

Basic Settings

SettingDefaultDescription
startEnabledtrueWhether hibernation activates automatically when server starts with no players
ticksToSkip400Number of ticks to process before applying sleep during hibernation
permissionLevel2Required permission level to use hibernation commands (0=all, 4=owner)
sleepTimeMs75Milliseconds to sleep between tick processing cycles

Memory Optimization

SettingDefaultDescription
enableMemoryOptimizationtrueEnable memory cleanup during hibernation
memoryCleanupIntervalSeconds30How often to run memory cleanup routines
memoryThresholdPercent80.0Memory usage percentage that triggers cleanup
forceGarbageCollectiontrueForce Java garbage collection during hibernation
gcIntervalSeconds30Minimum time between garbage collection runs
saveBeforeHibernationtrueSave world data before entering hibernation
removeEntitiesitem, firework_rocket, arrow, experience_orbList of entities to remove during hibernation (ignores entities with custom names)
droppedItemMaxAgeSeconds300Age in seconds after which items are removed (5 minutes)
logMemoryInfofalseLog memory usage and garbage collector information to console

CPU Optimization

SettingDefaultDescription
aggressiveCpuSavingtrueEnable more aggressive CPU saving measures
minSleepInterval1500Minimum time in milliseconds between sleep cycles
highLoadSleepMultiplier1.5Multiplier for sleep time when system load is high
yieldInterval8How often to yield CPU to other threads (every N ticks)

Gamerule Values When The Servers Awake

SettingDefaultDescription
advance_timetrueThe value to set the gamerule advance_time to when coming out of hibernation
advance_weathertrueThe value to set the gamerule advance_weather to when coming out of hibernation
random_tick_speed3The value to set the gamerule random_tick_speed to when coming out of hibernation
spawn_mobstrueThe value to set the gamerule spawn_mobs to when coming out of hibernation
fire_spread_radius_around_player128The value to set the gamerule fire_spread_radius_around_player to when coming out of hibernation

Gamerule Values When The Servers Hibernating

SettingDefaultDescription
advance_timefalseThe value to set the gamerule advance_time to when going into hibernation
advance_weatherfalseThe value to set the gamerule advance_weather to when going into hibernation
random_tick_speed0The value to set the gamerule random_tick_speed to when going into hibernation
spawn_mobsfalseThe value to set the gamerule spawn_mobs to when going into hibernation
fire_spread_radius_around_player0The value to set the gamerule fire_spread_radius_around_player to when going into hibernation

👨‍💻 Developing

Are you a developer and want to develop for this mod?

Click to get started.
To get a local copy up and running, follow these simple steps.

🧰 Prerequisites

Ensure you have the following installed on your machine:

  • Java Development Kit (JDK): Version 25 or higher.
    • Download JDK
  • Gradle: Version 9.7.1 or higher.
    • Install Gradle
  • Minecraft: Version 26.3

🛠️ Build

  1. Clone the repository
git clone https://codeberg.org/VoxelBill/hibernate-mc.git
  1. Navigate to the project directory
cd hibernate-mc
  1. Build the project with Gradle
./gradlew clean build

You can find the built mod at hibernate-mc/<loader>/build/libs/hibernate_mc-<loader>-x.x.x+mc2x.x.jar.

⚖️ License

Distributed under the GNU Lesser General Public License v3.0 only (LGPL-3.0-only).

This project is a fork of Hibernateforge which was distributed under the European Union Public License v1.2 (EUPL-1.2). Relicensing has been done in accordance with the compatibility clause of the EUPL (Article 5).

See LICENSE for more information.

Партнёрский материал

Как поиграть с друзьями с модом Hibernate MC (Formerly Hibernate Fabric)?

Мод Hibernate MC (Formerly Hibernate Fabric) куда интереснее в компании: поднимите сервер Майнкрафт с уже установленным модом, позовите друзей и играйте по своим правилам. Хостинг Майнкрафт для мода Hibernate MC (Formerly Hibernate Fabric) будет готов за пару минут - BungeeHost сделает всё за вас.

Часто задаваемые вопросы

Совместимость

Minecraft: Java Edition

26.3.x26.2.x26.1.x1.21.x

Платформы

Поддерживаемые окружения

Сервер

Зависимости

Ссылки

Создатели

Детали

Лицензия:
Опубликован:11 месяцев назад
Обновлён:3 недели назад
Главная