Movable Chests and Barrels

  • check_circle Functions
  • check_circle Loot Tables
                    • 14
                    • 10
                    • 3
                    avatar Chandler - VE
                    Level 31 : Artisan Mage
                    Crouch on top of a chest or barrel with an empty hand to put the chest/barrel in your hand with all of the items inside of it.

                    Talk to the Vanilla Extract team on discord!
                    CompatibilityMinecraft 1.16

                    1 Update Logs

                    Update #1 : 10/31/2020 6:45:51 pmOct 31st

                    Fixed a bug that caused chests and barrels not to properly go into the player's inventory

                    11/06/2020 3:17 pmhistory
                    Level 48 : Master Demolitionist
                    Hey, i was interested about your datapack and downloaded it to check.

                    There are 3 different tick commands, you use scoreboards to test if players hand is empty and sneaking.
                    I want to make it more optimized because you can do all of this in 1 command via predicates

                    Predicates can be named as "if condition but file form". You can create as many as predicates you want, you can also combine them. In predicates, you can check if player is in fire, is sneaking and much more. You don't need to make a scoreboard and set it to 0 again. You can also check player inventory with it.

                    Here is the generator i use. It is very simple and efficient. Just make it multiple, then make first one flags/sneaking:true and make second one if players hand is minecraft:air. This way there will be only 1 command running every tick which 3 times more optimized. Then you need to make a folder named "predicates" in your namespace folder. In game, you can use it with this command "execute if predicate namespace:predicate_name"

                    It may look not important but tick functions make so much difference in multiplayer worlds. I hope i was helpful.
                    11/03/2020 1:01 am
                    Level 6 : Apprentice Crafter
                    Doesn't seem to work with double chests
                    11/03/2020 12:37 pm
                    Level 31 : Artisan Mage
                    Chandler - VE
                    Correct, there is no Double Chest item so you are not able to pick up double chests
                    Planet Minecraft Logo


                    © 2010 - 2020