Skip to content

KROIA/BankSystem

Repository files navigation

Bank System Mod

About

BankSystem is a Minecraft mod that brings money in to the game. Players can have a bankacount that can not only hold money but items too. Admins can define which items can be stored in the bank in order to prevent players from using the bank as infinite storage.


Chapters


Features

  • Adds a banking system to the game for money and items.
  • Adds new blocks to interact with the bank account.

Dependencies


Downloads

CurseForge

Minecraft Fabric Forge Quilt Neoforge
Minecraft Version Version Version
Minecraft Version Version Version
Minecraft Version Version Version
Minecraft Version Version Version Version
Minecraft Version Version Version Version
Minecraft Version Version Version Version
Minecraft Version Version Version
Minecraft Version Version Version Version
Minecraft Version Version Version Version

Blocks

Metal Case Block
Casing for the Terminal block.
8 Iron ingots
Terminal Block
Unprogrammed terminal.
Can be programmed using a software item.
4 Iron nuggets
1 Metal Case Block
1 Display
1 Circuit Board
2 Redstone
Bank Terminal Block
Used to get access to the bank account.
Interaction using right click.
Right click on a Terminal Block using a Banking Software to create this block.
Bank Upload Block
Used to send items to a specified bank account.
Change its settings by right clicking on it
Once the block is connected to a bankaccount, other players can't access it any more.
Can be connected to Pipes and hoppers.
Needs to be powered by redstone to send items to the bank.
6 Iron nuggets
1 Metal Case Block
1 Comparator
1 Bank Transmitter Module
Bank Download Block
Used to receive items from a specified bank account.
Change its settings by right clicking on it
Once the block is connected to a bankaccount, other players can't access it any more.
Can be connected to Pipes and hoppers.
Needs to be powered by redstone to receive items to the bank.
6 Iron nuggets
1 Metal Case Block
1 Comparator
1 Bank Receiver Module

Items

Circuit Board
Electronics for other Items.
1 Nether Quartz
3 Copper Ingots
3 Paper
Display
Display for the Terminal Block
6 Glass Planes
2 Iron Ingots
1 Ciruit Board
Empty Software
Used to create a specific software
4 Iron nuggets
2 Ink Sacs
3 Paper
Banking Software
Used to programm the Terminal Block to be a Bank Terminal Block
1 Empty Software
1 Gold Ingot
Bank Transmitter Module
Used to craft the Bank Upload Block.
1 Iron ingot
1 circuit Board
Bank Receiver Module
Used to craft the Bank Download Block.
1 Iron ingot
1 circuit Board
1 Dollar
A 1 Dollar coin can only be crafted, using other type of money items such as the 5 Dollar bank note.
This puts control over inflation in the hands of the server administrator.
The admin is responsible to bring money in to circulation.

How to use

For server player / single player


Now open the Bank Terminal Block using right click.
This opens a menu which lets you send and receive items/money to your bank account.
Each player has its own bank terminal inventory, other player can not access your items, contained in this block.
If the block gets destroyed, all items which are not transfered to the bank will drop.
It drops all items from all players which let some items in it.

Send items to the bank

Put your items you want to send to the bank inside the bank terminal inventory and click the Send items to bank button.
It takes some time for all items to arrive on your bank acoount.

Receive items from the bank

Put the amount you want to withdraw in to the textfield next to the item.
Press the Receive items from bank button to start the transaction.
It also takes some time for the items to arrive in the bank terminal block.


For Admins / Single Player

Managing items for banking

By default only some items can be stored in a bank. To change which items can be used for banking, a Admin can type the following command:

/bank settingsGUI

In this window you can add/remove items which can be used for banking.
On the left side is a list of all items that can be stored inside a bank.
Click on a item to get more informations about that item.
On the right side is a overview over the item you have currently selected using the list on the left side.
It shows the total suply, this is the sum of all players bank accounts for that item.
You can also see the sum of locked amount over all players.
Using the Manage button on each players display, the bank account window for that player will be opened.

Managing players bank account

Manage players bank account using the GUI. To open the gui, type the following command:

/bank <player_name> bankManagementGUI

Other ways to open this window:


The window shows all items which are currently stored on the players bank account.

Add new item Click on the Create new bank button and select the item you want to add to the players account.
The item bank will be created instantly, no need to press the save button.
Remove a item If you want to delete a item from the users bank, click on Close account. A deleted account is marked red
Click the Save changes button to apply your changes.
Change balance Change the balance of a specific item using the text field.
Click the Save changes button to apply your changes.
Release locked amount Check the check box if you want to release the locked amount for a specific item. This may affect other mods which have locked the money/item in the first place.
Click the Save changes button to apply your changes.

Commands

Command Description Admin only
/money Show balance
/money add [amount] Add money to self ✔️
/money add [user] [amount] Add money to another player ✔️
/money set [amount] Set money to self ✔️
/money set [user] [amount] Set money to another player ✔️
/money remove [amount] Remove money from self ✔️
/money remove [user] [amount] Remove money from another player ✔️
/money send [user] [amount] Send money to another player
/money circulation Show money circulation of all players + bot
/bank Show bank balance (money and items)
/bank enableNotifications Enables bank notifications on transactions
/bank disableNotifications Disables bank notifications on transactions
/bank [username] bankManagementGUI Open the bank management window for the specific player ✔️
/bank [username] show Show bank balance of another player ✔️
/bank [username] create [itemID] [amount] Create a bank for another player ✔️
/bank [username] setBalance [itemID] [amount] Set balance of a bank for another player ✔️
/bank [username] delete [itemID] Delete a bank for another player ✔️
/bank allowItem [itemID] Adds the item to the list of bankable items ✔️
/bank settingsGUI Opens the items management window ✔️
/bank setStartingBalance Set the starting money balance for new players when they join the server as a new player ✔️
/bank setItemTransferTickInterval Set the amount of ticks it uses for a item to be transfered in the bank terminal block. If set to 0, it will be instant. ✔️
/bank save Saves all bank data ✔️
/bank load Loads all bank data ✔️

Interaction for automation systems

Bank Upload Block

To use the Bank Upload Block, it has to be connected to your bank account.
Open the block and press on the Connect to Bank button.
- Drop items if not bankable:
This setting specifies if the block drops iteps that can not be stored in the bank or not.

Once the block is connected to your bank account, items can be placed in it.
To send the items to the bank account, the block must be powered by a redstone signal.

Bank Download Block

To use the Bank Download Block, it has to be connected to your bank account.
Open the block and press on the Connect to Bank button.
- Select item:
Click that button to select, which item you want to receive from your bank account.

- Amount:
Define how many items the block should try to hold in its inventory.
If items get removed from the inventory, the block try's to download new items until the specified amount is reached.

Press the Apply button to save the changes.
Once the block is configured, a redstone signal triggers the block to work

Locked amount

Other mods which access a players bank account may want to reserve some amount for later use.
The Stock Market Mod for example uses this feature to reserve the amount (money/items) you want to trade. If a trade is not executed immediately the player must wait until the transaction is processed.
To prevent double spending for the time that trade is not executed, the amount gets reserved.
If you release the locked amount without knowing what mod reserved the amount, may cause problems.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages