• check_circle Functions
  • check_circle Structures
  • 1,627 views, 1 today
  • 47 downloads, 0 today
  • 5
  • 2
  • 2
Guilherme Cassel's Avatar Guilherme Cassel
Level 27 : Expert Miner
3
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
Tags

Create an account or sign in to comment.

Lordphenex
01/28/2023 10:11 am
Level 40 : Master Miner
Lordphenex's 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 !
1
Guilherme Cassel
01/28/2023 8:29 pm
Level 27 : Expert Miner
Guilherme Cassel's 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
1
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome