Quick Refill

  • check_circle Advancements
  • check_circle Functions
  • check_circle Loot Tables
avatar dthigpen
Level 14 : Journeyman Miner
1
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. Download the attached .zip from here or the latest refill-bundle.zip from the Releases section of the Github page
    2. Unzip this file and copy all .zip files inside to your world's datapack folder at %APPDATA%\.minecraft\saves\<world>\datapacks (There should be multiple datapacks to paste in)
    3. Launch the world, type/reload
    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.16
    toMinecraft 1.17 Snapshot
    Tags

    1 Update Logs

    Update v1.2.0 : 10/04/2020 11:48:22 amOct 4th

    Mostly rewritten to use another util datapack I made called call-stack, which should make it easier to maintain and add features.

    2
    09/28/2020 7:04 pm
    Level 11 : Journeyman Crafter
    LordQwerty
    does it work in multiplayer vannila?
    1
    09/29/2020 9:09 am
    Level 14 : Journeyman Miner
    dthigpen
    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 11 : Journeyman Crafter
    LordQwerty
    thanks
    1
    10/04/2020 11:51 am
    Level 14 : Journeyman Miner
    dthigpen
    I was not able to test it fully, but with armor stands (which have uuid) mimicking players it seems to work. I did encounter an issue where only the last players data would persist but I am not sure if it was because I rewrote much of the datapack or if it existed prior.

    I created/linked the new release v1.2.0.
    1
    10/04/2020 4:08 pm
    Level 11 : Journeyman Crafter
    LordQwerty
    thanks
    Planet Minecraft Logo

    Website

    © 2010 - 2020
    www.planetminecraft.com

    Welcome