- 6,224 views, 71 today
- 762 downloads, 8 today
3
!! Does not work in creative mode !!
(for whatever reason the player.cursor slot behave strangely in creative)
This data pack make the experimental bundles a little more convenient and usable by setting unstackable items to take only 16 slots of the bundle content instead of the regular 64. Thus, allowing you to store up to 4 unstackable items in 1 bundle or any combination with other items. The only unstackable items that still take 64 are the Shulker Boxes. However bundle inside bundle still behave normally (take 4 slots + content).
So, how does this dark magic works ?
For regular players it's very easy as almost all the bundle's mechanics were preserved. When you have a bundle inside your inventory you can left click on it while holding any unstackable item in your cursor. No need for any item throwing on the ground (not that would work anyway).
For technical player who want some details, here is how it works:
Disclaimer:
The data pack was made, intended and tested for Minecraft Java Edition 1.21.4.
As items components were introduced in 1.20.5, there is high hopes that it would work when porting it, but I didn't test it. I don't mind if people edit the datapack to make it work on other versions.
There is no proper way to remove the datapack as it would need to revert back the modifier applied on all unstackable items in the world.
Please don't hesitate to give suggestions, good ideas are always welcome.
Enjoy your cubic adventure !!!
(for whatever reason the player.cursor slot behave strangely in creative)
This data pack make the experimental bundles a little more convenient and usable by setting unstackable items to take only 16 slots of the bundle content instead of the regular 64. Thus, allowing you to store up to 4 unstackable items in 1 bundle or any combination with other items. The only unstackable items that still take 64 are the Shulker Boxes. However bundle inside bundle still behave normally (take 4 slots + content).
So, how does this dark magic works ?
For regular players it's very easy as almost all the bundle's mechanics were preserved. When you have a bundle inside your inventory you can left click on it while holding any unstackable item in your cursor. No need for any item throwing on the ground (not that would work anyway).
For technical player who want some details, here is how it works:
Accidental discovery
So, I wanted to test the new item components and see if adding the bundle_contents component to a random item would make it behave like a bundle.
So I added the component while giving me an acacia boat (first item on the list), and then...
It didn't work, bruh. The acacia boat was not behaving as a bundle, what a shame.
But then, out of nowhere, I put the acacia boat in a (real) bundle, my eyes could not believe the scenery unveiling before me, it was not taking 64 slots but 4 + the stone blocks that were inside the bundle contents of the boat.
So if you try the following command the netherite_sword will take only 5 slots in a bundle:
/give @s minecraft:netherite_sword[minecraft:bundle_contents=[{id:"minecraft:stone", count:1b}]]
That sum up the how. My data pack simply apply an item modifier to an unstackable item when the player is holding it with the cursor while having a bundle in his inventory.
TL;DR:
You can control how much space an item take in a bundle by adding (to any item) the bundle_contents component with items inside.
The number of slot taken is 4 + the number of 64-stackable items inside the bundle_content.
So I added the component while giving me an acacia boat (first item on the list), and then...
It didn't work, bruh. The acacia boat was not behaving as a bundle, what a shame.
But then, out of nowhere, I put the acacia boat in a (real) bundle, my eyes could not believe the scenery unveiling before me, it was not taking 64 slots but 4 + the stone blocks that were inside the bundle contents of the boat.
So if you try the following command the netherite_sword will take only 5 slots in a bundle:
/give @s minecraft:netherite_sword[minecraft:bundle_contents=[{id:"minecraft:stone", count:1b}]]
That sum up the how. My data pack simply apply an item modifier to an unstackable item when the player is holding it with the cursor while having a bundle in his inventory.
TL;DR:
You can control how much space an item take in a bundle by adding (to any item) the bundle_contents component with items inside.
The number of slot taken is 4 + the number of 64-stackable items inside the bundle_content.
Disclaimer:
The data pack was made, intended and tested for Minecraft Java Edition 1.21.4.
As items components were introduced in 1.20.5, there is high hopes that it would work when porting it, but I didn't test it. I don't mind if people edit the datapack to make it work on other versions.
There is no proper way to remove the datapack as it would need to revert back the modifier applied on all unstackable items in the world.
Please don't hesitate to give suggestions, good ideas are always welcome.
Enjoy your cubic adventure !!!
Compatibility | Minecraft 1.21 |
Tags |
8 Update Logs
Version 2.6 : by RedWay 06/21/2025 9:52:37 amtoday
Updated for 1.21.5 and 1.21.6
Now works for all unstackable without an item tag list
Works for ghast harness by extension ^
Now works for all unstackable without an item tag list
Works for ghast harness by extension ^
LOAD MORE LOGS
6298055
119
Create an account or sign in to comment.
Not sure why you need to try a few times, it always worked first time when I test.
If you find why, let me know.
Btw example is written with a
You can easily make it work in 1.21.1 tho. Just change the datapack version number in the pack.mcmeta file using this link : minecraft.wiki/w/Data_pack#pack.mcmeta
I know you said you weren't going to port it but I changed the modpack to 1.21.1 and it is not working :(
You probably want to add a recipe if you want to craft it in survival. You can use the really great recipe generator by misode : https://misode.github.io/recipe/
Try it yourself and I will give you a working version later.
Cheers