Repository navigation
Fusion Core 1.0
Первая стабильная версия. Minecraft 1.21.1, NeoForge 21.1.250, Java 21. Плагины Bukkit/Spigot/Paper и моды NeoForge на одном сервере.
Основано на Arclight (ветка FeudalKings, коммит d27101f1), лицензия GPL-3.0.
Перед первым запуском сделайте копию мира. Ошибки присылайте в Issues: версия ядра, список модов и плагинов, весь logs/latest.log.
Файлы
FusionCore-1.0-neoforge-1.21.1.zip— сервер целиком: jar, start.bat, start.sh, server.properties, eula.txt, инструкция, лицензия.fusioncore-neoforge-1.21.1-1.0.jar— только ядро.FusionCore-1.0-source.zip— исходники этой сборки (коммит 6f8f530).SHA256SUMS.txt— контрольные суммы.
Как обновиться с 0.2.1
- Замените jar и start.bat / start.sh.
- Удалите папку
.fusioncore/class_cache. - Запустите сервер. Мир и
fusioncore.confсохраняются, новые настройки допишутся в конфиг сами.
Что работает иначе, чем в 0.2.1
- Безголовых поршней больше нет: если взрыв сносит голову поршня, ломается и сам поршень. Вернуть:
world.unsupported-settings.allow-headless-pistons = true. - Автосохранение пишет по 24 чанка за тик, а не все сразу.
/save-allи остановка сервера сохраняют всё сразу, как раньше. Отключить:world.chunks.max-auto-save-chunks-per-tick = 0. - Мобы толкают друг друга не больше 8 раз за тик (
world.collisions.max-entity-collisions, как в Paper). - Активация сущностей теперь как в Paper (Entity Activation Range 2.0), а не как в Spigot.
- Игрока, который ходит или крутит камерой, больше не кикает за бездействие.
- За спам подсказками команд (Tab) кикает, как в Paper. Операторов это не касается.
- Игрок с другой версией клиента видит текст из
messages.outdated-client/outdated-serverв spigot.yml. /giveне вызываетPlayerDropItemEvent(так же в CraftBukkit и Paper).- Строка
[EXT_LOGIC] Level class ... treated as logic worldбольше не пишется в консоль, только вlogs/debug.log.
Новое
Команда /tpsbar
Как в Purpur: боссбар с TPS, MSPT и пингом. Права purpur.command.tpsbar и purpur.command.tpsbar.other (для /tpsbar <игрок>).
Настройки в разделе tpsbar файла fusioncore.conf: интервал, текст, цвета, пороги. Бар остаётся включённым после перезахода и рестарта.
Если /tpsbar есть у вашего плагина, поставьте enabled = false.
Исправлено после беты 0.2.1
- Create Big Cannons рядом с постройками Sable ронял сервер и портил мир.
- Сиденья GSit не работали (ошибка
NoClassDefFoundError). - Сервер лагал, когда игрок махал рукой рядом с постройкой Sable.
- Сервер падал при генерации чанков с Sable и другими модами, которые держат дальние чанки.
- Взрывы рядом с большими сущностями (контрапции Create, постройки Sable) вешали сервер на секунды. Восемь взрывов раньше занимали 2,5 с, теперь 0,3 с. Настройка
optimization.explosion-exposure-samples. - Ссылки и подсказки в сообщениях плагинов с новой Adventure 4.21 не нажимались. Например, ссылка
/lp editorв LuckPerms 5.5. - Дюп через
/give, если в spigot.ymlitem-despawn-rateбольше 6000. - Луч
LEFT_CLICK_AIRпри взмахе рукой шёл не в ту сторону.
Настройки spigot.yml, которые раньше не работали
max-tnt-per-tick, hopper-amount, arrow-despawn-rate, trident-despawn-rate, hanging-tick-frequency,
zombie-aggressive-towards-villager, messages.outdated-client, messages.outdated-server.
growth.*-modifier теперь действует на все растения, а не только на посевы.
Настройки миров из Paper
Новый раздел world в fusioncore.conf, ключи как в paper-world-defaults.yml, так что настройки с Paper, Purpur или Leaf можно перенести как есть:
- лимит сущностей каждого типа на чанк (модовые тоже);
- запрет заходить в незагруженные чанки;
- автосохранение по частям;
- лимит столкновений сущностей;
hopper.ignore-occluding-blocks;- частота тиков травы, грядок, спавнеров, контейнеров, сенсоров и поведения мобов;
- безголовые поршни;
- стойки для брони: руки при установке, отключение тика, столкновения с вагонетками;
- случайные сиды структур и фич;
- частота обновления карт в рамках;
- AFK из Purpur (
idle-timeout): не кикать, мобы не трогают AFK-игроков, AFK-игроки не держат сущности активными.
Для отдельного мира значения можно задать в world.worlds.<имя>, как paper-world.yml.
Оптимизации
Всё в разделе optimization, по умолчанию выключено.
- Anti-Xray из Paper с настройками для каждого мира. Работает не в главном потоке.
- DAB из Pufferfish: мобы вдали от игроков думают реже.
throttle-mob-spawning,only-tick-items-in-hand,reduce-entity-move-packetsиз Leaf.- Из Purpur: лоботомия жителей и запрет зомби охотиться на жителей, пока сервер лагает.
- Сохранение игроков в фоне. Данные собираются в главном потоке, в фоне идёт только запись на диск.
optimize-mob-despawnиtracker-nearby-playersдля серверов с большим онлайном.
Без настроек: воронки, дыхание мобов и обновления блоков больше не создают события Bukkit, если их не слушает ни один плагин.
Ещё несколько мест стали дешевле: пакеты движения, DAB, проверка поршней при взрыве, трекер сущностей.
Исправлено по аудиту кода
- После зависшей записи фоновое сохранение могло загрузить игроку старые данные.
- Автосохранение продолжало писать после
/save-off. - Не было лимита на асинхронные подсказки команд.
- Проверка прав одной команды влияла на проверку следующей (ошибка из Arclight).
- Отложенные задачи Folia тормозили друг друга,
cancel()до первого запуска не срабатывал. BlockPlaceEventот машин модов показывал старый блок, и плагины защиты пропускали запрещённые блоки.- Утечки памяти: выгруженные миры и вышедшие игроки оставались в памяти.
- Ошибка записи файла сидов стирала уже сохранённые сиды.
- Ограничение частоты подключений пропускало быстрый перезаход.
- Мелкие ошибки в планировщике сущностей Folia и в
throttle-mob-spawning.
Полный список изменений относительно Arclight лежит в FUSIONCORE-CHANGES.md в исходниках (на английском).
Fusion Core 1.0
First stable release. Minecraft 1.21.1, NeoForge 21.1.250, Java 21. Bukkit/Spigot/Paper plugins and NeoForge mods on one server.
Based on Arclight (branch FeudalKings, commit d27101f1), GPL-3.0.
Back up your world before the first start. Report bugs in Issues with the core version, your mods and plugins, and the full logs/latest.log.
Files
FusionCore-1.0-neoforge-1.21.1.zip: the whole server (jar, start.bat, start.sh, server.properties, eula.txt, setup guide in Russian, license).fusioncore-neoforge-1.21.1-1.0.jar: the core only.FusionCore-1.0-source.zip: source of this build (commit 6f8f530).SHA256SUMS.txt: checksums.
Updating from 0.2.1
- Replace the jar and start.bat / start.sh.
- Delete
.fusioncore/class_cache. - Start the server. The world and
fusioncore.confare kept, new settings are added to the config on their own.
What behaves differently from 0.2.1
- No more headless pistons: if an explosion destroys a piston head, the piston breaks too. To restore:
world.unsupported-settings.allow-headless-pistons = true. - Autosave writes 24 chunks per tick instead of all at once.
/save-alland shutdown still save everything at once. To turn off:world.chunks.max-auto-save-chunks-per-tick = 0. - Mobs push each other at most 8 times per tick (
world.collisions.max-entity-collisions, as on Paper). - Entity activation works as on Paper (Entity Activation Range 2.0) instead of Spigot.
- Players who walk or turn the camera are no longer kicked as idle.
- Tab-completion spam gets a player kicked, as on Paper. Operators are exempt.
- A player on another client version sees
messages.outdated-client/outdated-serverfrom spigot.yml. /givedoes not firePlayerDropItemEvent(same as CraftBukkit and Paper).[EXT_LOGIC] Level class ... treated as logic worldgoes tologs/debug.logonly, not the console.
New
/tpsbar
As on Purpur: a boss bar with TPS, MSPT and ping. Permissions purpur.command.tpsbar and purpur.command.tpsbar.other (for /tpsbar <player>).
Settings are in the tpsbar section of fusioncore.conf: interval, text, colors, thresholds. The bar stays on after rejoining and restarts.
If one of your plugins has its own /tpsbar, set enabled = false.
Fixed after the 0.2.1 beta
- Create Big Cannons next to Sable constructs crashed the server and damaged the world.
- GSit seats did not work (
NoClassDefFoundError). - The server lagged when a player swung their arm near a Sable construct.
- The server crashed during chunk generation with Sable and other mods that keep far chunks loaded.
- Explosions next to large entities (Create contraptions, Sable constructs) froze the server for seconds. Eight explosions took 2.5 s, now 0.3 s. Setting:
optimization.explosion-exposure-samples. - Links and hover text in messages from plugins with Adventure 4.21 could not be clicked, for example the
/lp editorlink in LuckPerms 5.5. - Item duplication with
/givewhen spigot.ymlitem-despawn-rateis above 6000. - The
LEFT_CLICK_AIRray of an arm swing pointed the wrong way.
spigot.yml settings that did nothing before
max-tnt-per-tick, hopper-amount, arrow-despawn-rate, trident-despawn-rate, hanging-tick-frequency,
zombie-aggressive-towards-villager, messages.outdated-client, messages.outdated-server.
growth.*-modifier now applies to all plants, not only crops.
Paper world settings
New world section in fusioncore.conf. The keys match paper-world-defaults.yml, so settings from Paper, Purpur or Leaf can be copied over as they are:
- per-chunk limit for each entity type (modded ones too);
- no moving into unloaded chunks;
- autosave in parts;
- entity collision limit;
hopper.ignore-occluding-blocks;- tick rates of grass, farmland, spawners, containers, mob sensors and behaviors;
- headless pistons;
- armor stands: arms when placed, no ticking, minecart collisions;
- random seeds for structures and features;
- map update rate in item frames;
- Purpur's AFK (
idle-timeout): no kick, mobs ignore AFK players, AFK players do not keep entities active.
Values for a single world go in world.worlds.<name>, like paper-world.yml.
Optimizations
All in the optimization section, off by default.
- Paper's Anti-Xray with per-world settings. Runs off the main thread.
- Pufferfish's DAB: mobs far from players think less often.
- Leaf's
throttle-mob-spawning,only-tick-items-in-hand,reduce-entity-move-packets. - From Purpur: villager lobotomy, and zombies stop hunting villagers while the server lags.
- Player data saved in the background. The data is collected on the main thread, only the disk write runs in the background.
optimize-mob-despawnandtracker-nearby-playersfor servers with many players.
Without any setting: hoppers, mob air supply and block updates no longer create Bukkit events when no plugin listens to them.
A few other places got cheaper: movement packets, DAB, the piston check in explosions, the entity tracker.
Fixed after a code audit
- After a stalled write, background saving could load old data for a player.
- Autosave kept writing after
/save-off. - There was no limit on async tab completions.
- The permission check of one command affected the next one (a bug from Arclight).
- Delayed Folia tasks held each other up, and
cancel()before the first run did nothing. BlockPlaceEventfrom mod machines showed the old block, so protection plugins let banned blocks through.- Memory leaks: unloaded worlds and players who left stayed in memory.
- A failed write of the seeds file wiped the seeds already saved.
- The connection throttle let a quick reconnect through.
- Small bugs in the Folia entity scheduler and
throttle-mob-spawning.
The full list of changes from Arclight is in FUSIONCORE-CHANGES.md in the source.