Jump to content

Custom Bank System


Furretzu

Recommended Posts

command (Minecraft command):
    trigger:
        player is holding a (Item/Items of your choice)
            set {bank::%uuid of player%} to sum({bank::%uuid of player%}, 1)
            send "stored emeralds are now at: &a%{bank::%uuid of player%}% &aItems"
            remove 1 of player's tool from player's tool
command (Minecraft command):
    trigger:
        send "&bStored item count: &a{Bank::%uuid of player%} &aItems&6."
command (Minecraft command):
    trigger:
        send "&6attempting to withdraw Item..."
        if {emebank::%uuid of player%} <= 0:
            send "&6Event failed, Too little of Item in bank."
        else:
            give 1 Item to player
            set {bank::%uuid of player%} to sum({bank::%uuid of player%}, -1)
            send "&6Event succeeded, you now have: &a%{bank::%uuid of player%}% &aItems&6."


This is code to enable for your currency system, it works for items.

To use, use skript.

(MAY NEED ANOTHER UTILITY IF IT DOESN'T WORK)

Edited by Furretzu
To update a potential error.
Link to comment
Share on other sites

  • 1 year later...

Thank you, this can be useful in building a banking system. In these matters, the most important thing is reliability and safety. Especially for large businesses, this is critical. I recently encountered this when opening bank accounts and creating offshore structures  https://astra-trust.com/ And I found a source that proved to be quite helpful in this. Thanks to this, I can achieve the desired results and increase my business over the next year.

Edited by patriciafischer
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...