Minecraft Data Packs / Quality of Life

Better Bundle [2.5] [MC Java 1.21.4-6]

    • 6,224 views, 71 today
    • 762 downloads, 8 today
    • 19
    • 23
    • 20
    RedWay
    Level 20 : Expert Explorer
    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:
    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.

    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 !!!
    CompatibilityMinecraft 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 ^
    LOAD MORE LOGS

    Create an account or sign in to comment.

    LandM1ne
    02/17/2025 9:00 pm
    They/Them • Level 1 : New Explorer
    not sure if im doing something wrong but when i put a book and quill into a bundle it fills the bundle completely, although i had the same problem with the shield for a moment testing the datapack out after having just installed it, but when i took the shield out and put it back into the bundle a few times it fixed itself but the book and quill still just fully fill it
    2
    RedWay
    02/18/2025 12:54 pm
    Level 20 : Expert Explorer
    Yep, my bad I forgot all books related stuff. I fixed it.
    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.
    2
    tollcraft
    02/11/2025 2:28 pm
    He/Him • Level 48 : Master Scribe Botanist
    Hey there its good
    Btw example is written with a
    3
    RedWay
    02/11/2025 4:42 pm
    Level 20 : Expert Explorer
    Corrected, thanks a lot. It took me some time to find were the "exemple" was tbh XD
    2
    paulrmortal
    01/31/2025 11:47 am
    Level 4 : Apprentice Miner
    Can you make it work for brushes and spyglasses?
    2
    RedWay
    02/06/2025 12:37 pm
    Level 20 : Expert Explorer
    Done ;)
    2
    Random_Undertale_Fan
    01/07/2025 7:40 pm
    Level 5 : Apprentice Miner
    Do you plan on porting it to 1.21.1?
    1
    RedWay
    01/08/2025 1:59 am
    Level 20 : Expert Explorer
    Unfortunately no, I mainly make these datapack for my personal use so I don't need these to support multiple version.
    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
    2
    Random_Undertale_Fan
    01/10/2025 12:20 am
    Level 5 : Apprentice Miner
    Update,



    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 :(
    1
    RedWay
    01/13/2025 9:12 am
    Level 20 : Expert Explorer
    Yes sorry my bad. I forgot to tell you to remove all colored bundles in the t_bundles.json file and only leave the line "minecraft:bundle" (don't forgot to remove the "," at the end).
    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
    1

    Welcome