promotional bannermobile promotional banner
premium banner
Very simple mod that removes empty NBT tag{} that prevents items from stacking.

Description

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 I used that included mods such as Apotheosis, Botania, Occultism, AE2 w/ addons, etc.

 

I've introduced configuration commands to the 1.20.1 version of the mod for various cases, as I'm unaware of any item stacking issues that could be caused by any empty NBT tags other than "tag{}". The changelog has examples of how these are used.

  • /emptynbtfix toggle-empty on/off - Toggles the original function of removing empty "tag{}" nbt.
  • /emptynbtfix rule add [nbt] [optional filter]Add a rule for nbt removal.
  • /emptynbtfix rule list - Lists all current rules including the toggle status.
  • /emptynbtfix remove [rule id]- Removes a rule via the rule's ID that is found using the list command.

Server compatibility hasn't been tested, but the commands require level 4 permission (OP/Administrative), and would be required on both the client and server.

 

Feel free to leave bugs in the comments.