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.

A simple and small mod that removes the empty NBT tag that prevents items from stacking.

Originally made for personal use in 1.19.2 due to the bug being present in the mod Tensura: Nightmares so compatiability may be questionable, but worked with no issues in a 300+ mod modpack that included mods such as Apotheosis, Botania, Occultism, AE2 w/ addons, etc. Released on curseforge due to discord requests.

Commands

Command What it does
/emptynbtfix or /emptynbtfix list Shows the empty-tag setting, exclusions and rules
/emptynbtfix reload Re-reads the config file after manual 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 <#> Removes a rule
/emptynbtfix exclude add <filter> Never removes empty NBT from matching items
/emptynbtfix exclude remove <#> Removes an exclusion

Tested on a server. The commands require level 4 permission (Server Owner, configurable in the config), and is only required on the server/host to function.

 

Feel free to leave bugs in the comments.

Empty NBT Tag Fix (Item Stack Fix) Team

profile avatar
Owner
Forgeborn tier icon
  • 1
    Followers
  • 2
    Projects
  • 176.1K
    Downloads