NoBadBooms

Quick rating

NoBadBooms

No reviews yet

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

Mod Loaders
NeoForge
Minecraft

Community voices

Reviews

Versions
Loading versions…
Match includes

Click once to include, again to exclude, again to clear

Rating Any
Any 0.5 1.0 1.5 2.0 2.5 3.0 3.5 4.0 4.5 5.0
Min
Max
Play Status
Reviews
Time Played
hrs+
Verified developers only
Has developer response
List view
Grid view
Compact view
Sort by
Date
Rating
Helpful
Unhelpful
Edited
Sort ascending
Delete this review?

This removes your review from the project. You can write a new review after.

Review submitted for moderation

Your review has been sent to moderators, who will check that it meets our guidelines before it appears publicly.

No reviews yet. Be the first to review this project!

Get it on

Available Platforms

Compatibility

Supported Environments

Dev Environment
Client Unsupported
Server Required

About

Project Details

Type
Mod
License
MIT License
Latest Version
1.0.0
Authors

For authors

Embed Badge

If you're the author of this project, you can embed a live badge anywhere that supports HTML or Markdown. It updates automatically whenever ratings change.

Custom banner text
ModDex rating badge preview

Use HTML for any page that supports it, or Markdown for README files and Markdown-based descriptions.

Identifiers

Platform IDs

Modrinth ID

Resources

External Links

Source Issues Wiki Discord

About

Description

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.

Screenshots

Gallery

This project has no gallery images yet.

Versions

Files

Relations

Project Relations

More like this

Similar Mods

Suggestions use data such as tags, dependencies, dependents, descriptions, titles, and more to rank how much they overlap with this mod.

On ModDex

Community snapshot

0
Ratings
0
Followers
0
In stacks

By the numbers

Statistics

<1,000
Downloads
Last Updated
CurseForge
Modrinth
Created
Last synced
When ModDex last fetched this project from CurseForge or Modrinth. Every project is re-checked on a schedule, and any project that ships a new file is synced automatically within hours of the release.
New file updates sync automatically
How syncing works