• check_circle Advancements
  • check_circle Functions
  • check_circle Loot Tables
  • 13,273 views, 55 today
  • 3,966 downloads, 10 today
  • 26
  • 37
  • 12
dthigpen avatar dthigpen
Level 39 : Artisan Miner
10
Description

A simple datapack that will refill depleted hotbar slots with items of the same type in your inventory. For example, when you place your last cobblestone from your selected hotbar slot, the slot will be refilled by the stack in your inventory if available. This works with tools, or any other item.

Installation
  1. Visit the Releases page and download the desired datapack zip file.
  2. Copy the downloaded zip file into your world's datapacks folder at %APPDATA%\.minecraft\saves\<world>\datapacks
  3. Launch the world and type /reload
  4. Check that the datapack is installed under the "Installed Datapacks" Advancement tab with Ctrl + L

    Usage
    Enable and disable the refill with the command
    /trigger dt.refill.toggleUse blocks as normal and have stacks from the inventory replace them. Note: the slot will be reset when no items can be pulled from the inventory

    Changes for v1.2.0
    Mostly rewritten to use another util datapack I made called call-stack, which should make it easier to maintain and add features.
    CompatibilityMinecraft 1.17
    Tags

    3 Update Logs

    Update v0.0.8 : 08/17/2021 10:21:38 amAug 17th

    Fix shift-clicking items from hotbar into inventory causing items to instantly teleport back to the hotbar

    Change rule for refilling to require a decrease from one item to
    none so that entire stacks will not be replaced (eg. when moving items
    in the gui with your cursor)
    LOAD MORE LOGS

    Create an account or sign in to comment.

    1
    10/06/2021 3:54 pm
    Level 31 : Artisan Wolf
    MrPinkWolf
    MrPinkWolf avatar
    Is there a way to disable that is says "Refilled from slot X"? Were using this on a multiplayer server and it says so for everybody in the server even if its just one player that actualy refills a block.
    1
    01/06/2021 8:39 pm
    Level 1 : New Miner
    gamerfreshtv
    gamerfreshtv avatar
    Why I can't download??
    2
    11/13/2020 12:05 pm
    Level 17 : Journeyman Crafter
    Nillarie
    Nillarie avatar
    Hello! This datapack works quite well for me, however it sometimes won't let me remove blocks from my hotbar by shift-clicking or even dragging them. I was wondering if it's possible to make this datapack only replace food, torches and tools? That would avoid that issue for the most part.

    For example: If I have a wooden axe in my toolbar and I craft another wooden axe it ends up also on my toolbar. I cannot move that second wooden axe as it immediately gets replaced by the first one.

    I can't shift-click blocks from the toolbar into the full inventory after pressing E, they simply reappear in the slot I wanted them to move out of to "replace" them.

    I'm bad at explaining but I think this is an excellent datapack already, even with these minor issues!
    1
    12/03/2020 8:53 am
    Level 39 : Artisan Miner
    dthigpen
    dthigpen avatar
    Apologies for the late response, I will try to recreate those issues so that I can fix them in the next release.
    That's really interesting about the shift clicking into the inventory, never thought about that case so I can definitely see that happening.

    It would be a great idea for it to only replace specific items or types of items like you mentioned, I'll experiment with that and see if I can implement it!

    Thanks
    1
    12/04/2020 5:41 am
    Level 17 : Journeyman Crafter
    Nillarie
    Nillarie avatar
    Thank you for your consideration and no worries about being late, take your time!
    1
    10/20/2020 11:06 pm
    Level 1 : New Miner
    Squirtle Op
    Squirtle Op avatar
    Hey there, I'm running into issues trying to get this to work on a realm server. It works fine in singleplayer but as soon as I upload the world to a realm it stops working. I can use the /trigger dt.refill.toggle command but all it says is " Triggered [​dt.refill.toggle] and is then removed from the /trigger command completely. Reloading doesn't do anything.
    1
    12/03/2020 8:54 am
    Level 39 : Artisan Miner
    dthigpen
    dthigpen avatar
    Apologies for the late response, I have not tried it on a server lately. I'll see if I can recreate it and make a fix for the next release.
    2
    09/28/2020 7:04 pm
    Level 17 : Journeyman Dolphin
    LordQwerty
    LordQwerty avatar
    does it work in multiplayer vannila?
    1
    09/29/2020 9:09 am
    Level 39 : Artisan Miner
    dthigpen
    dthigpen avatar
    I have not tried it, but I did take precaution to make it compatible with multiplayer using UUIDs. I can try it within the next few days and let you know
    2
    09/29/2020 3:44 pm
    Level 17 : Journeyman Dolphin
    LordQwerty
    LordQwerty avatar
    thanks
    Planet Minecraft

    Website

    © 2010 - 2021
    www.planetminecraft.com

    Welcome