MonitoringMinecraft MonitoringMinecraft

Nerflytra - Nerf elytra boosting

Датапак Datapack

Датапак для Майнкрафт отключает или ограничивает фейерверки при полёте на элитрах, с настройками.

257 скачиваний 2 подписчика
Оцените первым

Nerflytra - Make rockets burn elytras

This performant datapack stops/discourages players from using rockets to fly long distances by breaking their elytra or reducing its durability by 10% every time they do.

This pack is configurable, you can configure whether players elytras are damaged or entirely broken when they rocket, how often the pack checks (for the performance paranoid out there), and whether to allow some players to be excluded from this datapack's elytra-burning proclivities. See the How to section for guidance.

How to

Damage instead of destroy the elytra

Run /function nerflytra:toggle_damaging_instead_of_destroying_elytra. When toggled on, this will make the datapack reduce the durability by 10% (instead of setting it directly to 1%) every time they use a rocket. Since this only occurs once per rocket-usage, players can use longer-lasting rockets to fly for longer.

If you want this to do even less damage, you can make the datapack check less frequently as described below. Note that this will make fireworks do far less damage. To change this manually, you can edit the damage number in the file /data/item_modifier/lower_durability.json, this is a percentage between 1.00 and 0.00.

Allow certain players to use rockets

You can exclude players from this datapack by giving them the scoreboard objective nerflytra.can_rocket with the value 1. Setting this to the value 0 will stop them from using rockets again. The command to do this will look like /scoreboard players set PLAYERNAME nerflytra.can_rocket 1.

Make the datapack check less frequently

By default the datapack checks for flying players twice per second, and is very perfomant. If you don't need that precision or are extra cautious about performance, you can make this datapack check even less frequently with the function /function nerflytra:toggle_frequency. Note that if you've also configured this pack to only damage elytras instead of destroy them, this will make the elytra take significantly slower damage.

How it works

If a player is flying with an elytra in their chest slot when the datapack checks, and they have used firework rockets since the last check, their chest slot is damaged. The datapack checks twice per second by default, but you can change this like described in the How to section. If you set the option to not break the elytra but instead damage it, the elytras durability is reduced instead of destroyed, only half the sound effects play, and no message is shown. If you've set this option but want it to do even less damage than usual, you can make the datapack check less frequently as described in the How to section.

License

This work is licensed under GPLv3. You can think of it as allowing you to do anything with this code, as long as what you do with it also uses the GPLv3 license, and is shared for free. If you have code suggestions you can reach out via bio and I can update the datapack, or potentially open a git repository for collaboration.

Смотри также

Похожие подборки датапаки — по версиям Майнкрафта, загрузчикам и жанрам.

Сервера Майнкрафт

Играть интереснее на сервере — выбирай в рейтинге серверов Майнкрафт и заходи прямо сейчас.

SkyBars
SkyBars Java + BE
1701 онлайн
1.8 — 26.2 версия
🎮 ВЫЖИВАНИЕ ⚔️ АНАРХИЯ 🚗 ГТА РП 🎤 ГОЛОСОВОЙ ЧАТ 🎁 БЕСПЛАТНЫЙ ДОНАТ 🌟 СМП 💻 ПК+ТЕЛЕФОН
MineLandy
MineLandy Java + BE
163 онлайн
1.12.2 — 26.1.2 версия
Ванила и анархия без приватов — полная свобода действий и честное выживание
WahaCraft
WahaCraft Лаунчер
2 онлайн
Кланы | Боссы | RPG | Уникальная карта | PVP | Захват территорий | ВАРХАММЕР
MigosMc
MigosMc Java + BE
2172 онлайн
1.8 — 26.2 версия
🌿 MigosMc.net | Гриферский сервер с войс-чатом | Награды за онлайн ⭐ ВЫЖИВАНИЕ⭐ ОДИНБЛОК⭐ МИНИ-ИГРЫ
MineLauncher
Лаунчер Майнкрафт без лицензии — все версии
Бесплатный лаунчер для ПК и Андроид — все версии 26.2, 1.21.11, 26.1.2, 1.16.5. Fabric, NeoForge, Forge, шейдеры, моды и скины в один клик.
Без лицензии Fabric, NeoForge, Forge Моды, шейдеры, скины Все версии Майнкрафта ПК и Андроид Для слабых ПК Сервера в лаунчере
Скачать бесплатно
Windows и Андроид · Бесплатно · Без лицензии
Наш чат