
Data Driven Stack Sizes
Override default `max_stack_size`s using data-driven item tags (Data Not Included).Increase the maximum value of the max-stack-size data component for 99 to 2048. Dev on all my projects will be paused for the duration of the BDS boycott against Microsoft.
- Загрузки
- 3K
- Подписчики
- 15
- Обновлён
- 15 марта 2025 г.
- Лицензия
- CC-BY-NC-SA-4.0
Опубликован 13 июля 2024 г.
This mod changes the max_stack_size data component's behavior, allowing for stacks larger than 99 (upto 2048).
It also automatically changes how a stack's max_stack_size component behaves when it is checked, allowing for data-driven stack-sizes where changing how much an item stacks to is as simple as adding it to that value's .json file.
For a example of what the mod can do, see Data Driven Stacks Example Datapack
Ченджлог
0.10.7-1.21.4Бета1.21.4 · 15 марта 2025 г.
Features
New TAG: Max_Stack_Size_0
Datapack now includes item tag Max_Stack_Size_0. Unlike other max_stack_size, where overloaded stacks maintain their current count: MSS_0 reduces tagged item's stack counts to 0 automatically.
USE OF THIS FEATURE CAN, WILL, AND IS INTENDED TO RESULT IN PERMANENT LOSS OF ITEMS!!!
Any item tagged with max_stack_size_0 will be automatically emptied any-time their max_stack_size is checked. Which happens, when a stack is validated, moved, used, saved, or looked at funny. You will not see them disappear: They will simply be gone
USE OF THIS FEATURE CAN, WILL, AND IS INTENDED TO RESULT IN PERMANENT LOSS OF ITEMS!!!
This behavior can be bypassed using the previously established DDS-ignore: DDS will intentionally ignores any item which a non-empty custom_data component. That option has been reproduced here.
USE OF THIS FEATURE CAN, WILL, AND IS INTENDED TO RESULT IN PERMANENT LOSS OF ITEMS!!!
Known Issues
Forbidden Give Commands are Too Generous
Using the /give command to give X of any item tagged max_stack_size_0 gives the target a stack of that item with a count of 1 when it should give 0. These forbidden stacks do near immediately disappear, but their very existence is a bug of low priority.
0.10.6-1.21.4Бета1.21.4 · 14 марта 2025 г.
BUG FIXES
Literally everything
v0.10.5-1.12.4 was a bad rush job that didn't port from 1.21 to 1.21.4 correctly. It functioned in test-environments but not in deployment. Taking my time to do it correctly, 0.10.6 should now actually work in 1.21.4! Sorry about the inconvinence.
Click and drag rendering for differencial stacks now previews correct results.
If you used the player_stack_more or player_stack_less control tags, you may have noticed that while clicking and dragging items affected by those tags that while you got the correct end-result, the preview was incorrect. The cause of this visual error has been identified and corrected; the preview should now be accurrate to the results.
Known Issues
Reload Only Partially Functional
There are issues with /reload not correctly reloading all of the datapack's tags. I'll be investigating the cause eventually, but I just spent 5 days on figuring out why my code didn't port versions, and I don't want to burn myself out so close to up-coming 1.21.5, so I'mma go do something else for now.
0.10.5Альфа1.21.4 · 10 марта 2025 г.
Is exact same as 0.9.5, but is for 1.21.4.
MAKE BACK UP OF WORLD BEFORE LOADING IT WITH THIS VERSION OF THE MOD: IS MINIMAL TESTING.
MUCH RISK.
0.9.5Бета1.21 · 28 июля 2024 г.
Bug Fix
Fixed a compatability issue with Fabric Loader 0.16.0. (Was initially built on and for 0.15.11).
0.9.4-1.21-FL16-compatАльфа1.21 · 28 июля 2024 г.
This mod has, so far, been built for Fabric Loader 0.15.11. It has been brought to my attention that the main version is currently incompatable with FL-16.0.
For now, I'm publishing this compatability version with the problem features removed without replacement while I look into a better fix.
0.9.4-1.21Бета1.21 · 26 июля 2024 г.
Refactor
data-stacks/entity -> data-stacks/control
The directory for control tags like villagers_stack_less and players_stack_more has been renamed to control, as these tags control differencial stack_size behavior.
Bug Fixes
Dropping items no longer crashes Game.
Whoops. Hot fixed that issue. Sorry about that.
0.9.2-1.21Бета1.21 · 24 июля 2024 г.
Bug Fixes
Differetn Stack Sizes sometimes eating items
Fixed a bug where having a different stack size for players would sometimes cause that item to be eaten when put into a non-player chest. Unfortunately, this fix introduced a new bug where different stack sizes for players sometimes refuse to stack without fanegalling. I'm looking into ways to fix this new qol issue without reintroducing the item eating bug.
0.9.0-1.21Бета1.21 · 20 июля 2024 г.
Features
Player / Nonplayer Distinction.
Items(Besides Shulker Boxes) can now be configured to stack to different sizes in a player inventory vs a nonplayer inventory.
Note
If this feature is used with items that also use the Villager/ Nonvillager distinction: the item will only have have two stack sizes which will be binarily assigned to villager/players and nonvillagers/nonplayers. You cannot currently assign three or four stack sizes.
Bug Fixes
Fixed some of the (easy) causes of TPS problems when used as a server mod. The mod should be less process hungry than it was before.
Known Issues
Hoppers are bastards.
Hoppers seem to be causing the most TPS problems. I'm looking into solving the issue regarding them, but it's slow going.
Potions do not stack in brewing stand
Don't know what's up with this, I'm looking into the cause, but it's low priority because while they should be able to be configured to do so, in my opinion they should not be configured as such.
Datapack.
I've built an example datapack as a companion to this mod. It's unlisted to avoid creating cluttering the search results, but it can be found here.
Комментарии
Загружаем…