• check_circle Functions
  • check_circle Structures
  • 1,256 views, 9 today
  • 37 downloads, 0 today
  • 4
  • 1
  • 2
Guilherme Cassel avatar Guilherme Cassel
Level 20 : Expert Miner
You just have to make 2 command blocks with the commands:

one with: functions bank:withdraw to make withdraws;

and one with function bank:deposit to make deposits;

I recommend setting them both to repeat and putting a stone button, this way every time you click it will withdraw/deposit exact 20 emeralds per time.

Only works 1 player per time :D. its perfect for your little server with friends.

The balance will be shown at the TAB players list.

This is an older version!! I Remade this datapack: PLEASE ACCESS:
Emeralds Bank 3.0 !! Minecraft Data Pack (planetminecraft.com)
CompatibilityMinecraft 1.15
toMinecraft 1.19

Create an account or sign in to comment.

01/28/2023 10:11 am
Level 33 : Artisan Miner
Lordphenex avatar
The main point of datapack is to get rid of command block in your world. It would be better not to have to place some in the world.
Easiest way is to use either a trigger command for when player want to deposit or withdraw emeralds. With this you don't need any "shop" put in the world.

Another way is to use a sign to detect when player want to deposit/withdraw. When player right click on a sign with empty hand, this action can be detected with an advancement.

Hope that helps you improving in datapacks !
01/28/2023 8:29 pm
Level 20 : Expert Miner
Guilherme Cassel
Guilherme Cassel avatar
I just shorted the system. If you do this bank without datapack, you need more than 9 command blocks in your world, at least this way you just need 2 simple commands. But I will try to make it work via command trigger
Planet Minecraft


© 2010 - 2023