KrisCris / AllStackable

A highly customizable Minecraft Fabric Mod that makes items stackable and changes their stack size.
https://www.curseforge.com/minecraft/mc-mods/all-stackable/
GNU Lesser General Public License v3.0
13 stars 7 forks source link

[Feature Request] NBT matching for stackable item command #18

Open Decrepitdoors opened 2 years ago

Decrepitdoors commented 2 years ago

I was initially using this mod for totems of undying so I could make my sorting system a bit easier, but on my server we have some custom items that would be helpful if they stacked, I thought this mod could do it as it accepts nbt in the command, but it made all snowballs stackable to 64. example command I used: allstackable set minecraft:snowball{smoke_bomb:1b} 64

Would this be possible to implement?

KrisCris commented 2 years ago

No, it does not support NBT tags. The nbt tags show up just because Minecraft implemented the command in this way… I am not sure how to implement this, and since I directly feed the modified stack upper limit to the game, this mod currently cannot handle the custom nbt tags as the game don’t check it. It is very likely that I need to re-implement most of things in a whole different way cuz I didn’t thought about this at the very beginning.

KrisCris commented 2 years ago

Anyway, good suggestions. I will try to figure this out when I have time to play this game again.

Decrepitdoors commented 2 years ago

That's fair enough, I look forward to this being added in the future if you get time, thanks for replying!