promotional bannermobile promotional banner

Empty NBT Tag Fix (Item Stack Fix)

A simple mod that removes the empty NBT tag {} which causes items to not stack.
Back to Files

EmptyNbtFix-1.20.1-2.0.0.jar

File nameEmptyNbtFix-1.20.1-2.0.0.jar
Uploader
folticfoltic
Uploaded
Nov 5, 2026
Downloads
23.7K
Size
25.1 KB
Mod Loaders
Forge
File ID
9448308
Type
R
Release
Supported game versions
  • 1.20.1

Curse Maven Snippet

Forge

implementation fg.deobf("curse.maven:empty-nbt-tag-fix-1327575:9448308")

Learn more about Curse Maven

What's new

Empty NBT Fix 2.0.0

Your old rules from 1.0.0 should be moved into the new config automatically the first time you load your world. Additionally, the mod is only required on the server to function.

- New

  • Config file: config/emptynbtfix-common.toml. Commands edit the same file, so modpacks can have it pre-configured.
  • Exclusions: items whose empty NBT is left alone. An item is skipped if it matches any entry. Create's items are excluded by default, which fixes the Attribute Filter closing as soon as it opens.
  • Better filters: ! (not), mods (@modid), item tags (#minecraft:logs), *, and several filters per rule.
    • e.g. /emptynbtfix rule add AnnoyingNBT minecraft:bundle @create removes AnnoyingNBT from Minecraft bundles, as well as all Create mod items.
  • /emptynbtfix inspect shows the held item's NBT and which rules/exclusions apply to it.
  • /emptynbtfix reload re-reads the config file after you edit it by hand.

- Quality of Life

  • A warning when several rules remove the same NBT key, because their filters don't protect items from each other.
  • Colored command output for easier reading.
  • The list now has clickable X buttons that fill in the command to remove a rule or exclusion.
  • Tab auto-completion for NBT keys (from the held item) and filters (its id, tags and mod).

- Other

  • Bug fixes and optimization.

- Commands

By default, only server owners (op level 4) can use these, or the host in singleplayer with cheats on. You can change this with the commandPermissionLevel setting in the config.

Words in CAPITALS are what you fill in. Anything in [brackets] is optional.

  • /emptynbtfix or /emptynbtfix list: shows the empty-tag setting, exclusions and rules.
  • /emptynbtfix reload - Re-reads the config file after hand edits.
  • /emptynbtfix inspect - Shows the held item's id, NBT and which rules apply.
  • /emptynbtfix toggle-empty on / off - Turns empty-NBT removal on or off.
  • /emptynbtfix rule add KEY [FILTER] - Removes KEY from matching items.
  • /emptynbtfix rule remove NUMBER - Removes a rule.
  • /emptynbtfix exclude add FILTER - Never removes empty NBT from matching items.
  • /emptynbtfix exclude remove NUMBER - Removes an exclusion.

- Filters

  • minecraft:paper - One item.
  • #minecraft:logs - An item tag (a group of items).
  • @create - Every item from a mod.
  • * - Anything (but pretty much useless, to be honest).

Put ! in front of a filter to exclude it. For example, /emptynbtfix rule add AnnoyingNBT !@create removes AnnoyingNBT from every item aside from Create's items.

This mod has no related projects