MonitoringMinecraft MonitoringMinecraft

NoBadBooms

Мод NeoForge

NoBadBooms — серверный мод для Майнкрафт на NeoForge, добавляет игровое правило tntExplodes как в Bedrock Edition: TNT перестаёт разрушать блоки

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

NoBadBooms!

A server-side NeoForge 1.21.1 mod that adds a tntExplodes gamerule, similar to Bedrock Edition, letting you stop TNT from destroying blocks.

Usage

/gamerule tntExplodes false

When false, TNT blocks and TNT minecarts still ignite and detonate (fuse, sound, particles, knockback, and entity damage all still happen), but no blocks are destroyed. Default is true (vanilla behavior).

The rule is per-world and saved like any vanilla gamerule.

Note: this differs slightly from Bedrock, where tntExplodes false prevents TNT from igniting at all. Here the explosion still occurs - only terrain damage is disabled. Other explosion sources (creepers, ghasts, beds, end crystals) are unaffected; creepers are already covered by vanilla's mobGriefing.

Server-side only

Install the jar in the server's mods folder. Vanilla / unmodded clients can join normally. It also works in single-player if installed on a client.

How it works

  • Registers the gamerule with GameRules.register("tntExplodes", Category.MISC, BooleanValue.create(true)) during mod class initialization (NeoForge's access transformers make these public).
  • Listens to ExplosionEvent.Detonate, which fires after the explosion has computed its affected blocks but before anything is destroyed. If the explosion's direct source entity is a PrimedTnt or MinecartTNT and the gamerule is false, the affected-block list is cleared.

Note: This was to solve an issue with a minigame on my server. I don't know if I will ever update it. I don't imagine it will be hard to update, so, feel free to compile from source and change however you want. It's a tool, use it if you need.

Смотри также

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

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

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

SkyBars
SkyBars Java + BE
1899 онлайн
1.8 — 26.2 версия
🎮 ВЫЖИВАНИЕ ⚔️ АНАРХИЯ 🚗 ГТА РП 🎤 ГОЛОСОВОЙ ЧАТ 🎁 БЕСПЛАТНЫЙ ДОНАТ 🌟 СМП 💻 ПК+ТЕЛЕФОН
Minestory
12 онлайн
1.21 — 26.2 версия
Выживание • Экономика • Кланы • Приваты • Ивенты • PVP • Работа
BULLCRAFT
BULLCRAFT Java + BE
182 онлайн
26.2 версия
Анархия! PvP | Работают поршни и вагонетки
Battle Mine
Battle Mine Java + BE
2 онлайн
1.21.4 — 26.2 версия
ОТКРЫТИЕ! 20 + различных ивентов, 10+ различных боссов, много интересных механник
MineLauncher
Лаунчер Майнкрафт без лицензии — все версии
Бесплатный лаунчер для ПК и Андроид — все версии 26.2, 1.21.11, 26.1.2, 1.21.4. Fabric, NeoForge, Forge, шейдеры, моды и скины в один клик.
Без лицензии Fabric, NeoForge, Forge Моды, шейдеры, скины Все версии Майнкрафта ПК и Андроид Для слабых ПК Сервера в лаунчере
Скачать бесплатно
Windows и Андроид · Бесплатно · Без лицензии
Наш чат