Online Bank

Datapack that adds "online" bank to simplify the use of server's currency

34

Quick challenge

How far can you run before the mobs catch you?

Online Bank

Title

Found bug / order datapack / other - Discord.

This datapack was intended to add "online" bank to simplify the use of server's currency.

Usage explanation:

The player will need to craft a Bank Card and consume it to "register" a Bank Account, if the player already has an Account, he will not be able to consume it. After which the player will be able to use these commands:

- /trigger ob.withdraw set <value> - see your balance - /trigger ob.withdraw set <value> - replenish your account with 1 item in inventory - /trigger ob.withdraw set <value> - withdraw 1 currency item from your account - /trigger ob.withdraw set <value> - replenish your account with <value> items in inventory - /trigger ob.withdraw set <value> - withdraw <value> currency item from your account

Bank Card craft:

Bank Card craft

This datapack has many settings, _you can choose any item as currency_.

There are the following settings:

cardAnywhere (default: true)

Allows players to use their Bank Account anywhere

makeAccountAnywhere (default: true)

Allows players to register Bank Account anywhere

balanceTab (default: false)

Shows the player's balance in the tab

allowCredits (default: false)

Allows players to withdraw from their account even at 0

deathTaxPercent (default: 0)

Percentage of the account that is removed upon death

bankAreaDistance (default: 15)

Bank Area working distance (in blocks)

giveKillerPercent (default: false) WIP

Instead of removing the percentage from the account upon death, it transfers to the killer

All commands and how to configure:

How to set currency (default: diamond)

Take the item that will become the currency and write the following command:

/function online_bank:apply_currency

How to change settings

By writing the following command:

/function online_bank:settings

menu will open in the chat, hovering the cursor over gamerules will show their description and tips, clicking on them will change them. There is also a button to set default settings.

How to give yourself a set currency

/function online_bank:give_currency

How to install Bank Area

For gamerules cardAnywhere, makeAccountAnywhere and bankAreaDistance, you need Bank Area. By typing the command:

/function online_bank:give_bank_area

You will get a Bank Area spawn egg by placing it in a certain location (Example: build a bank and place it in the center), players will be able to use their Bank Account there within a set radius.

How to remove datapack

By writing the command:

/function online_bank:remove_datapack

Will be removed everything possible from the datapack created.

How to give currency to someone's account

/scoreboard players set <nickname> ob.playerBalance <value>

ADS