command /bank [] []: trigger: if arg 1 is not set: open chest with 3 rows named "&9Bank" to player wait 1 tick set {_d} to 0 set {antal::%player%} to 0 loop 31 times: if loop-number is not 4, 11 or 15: format slot {_d} of player with gray glass named "" with lore "" to be unstealable add 1 to {_d} format slot 4 of player with diamond named "&2Bank account:" with lore "&cBalance: &a$ %{Bank::%player%}%" to be unstealable format slot 15 of player with name_tag named "&CDeposit money" with lore "Add money to your bank account" to run [execute player command "/bank input"] format slot 11 of player with paper named "&CWithdraw money" with lore "Remove money from your bank account" to run [execute player command "/bank output"] if arg 1 is "output": if arg 2 is set: set {_negativt} to "%arg 2%" if {_negativt} contains "-": send "&cCan't be a negative number!" stop if {Bank::%player%} >= {antal::%player%}: add {antal::%player%} to player's balance remove {antal::%player%} from {Bank::%player%} send "&2You withdraw &a$ %{antal::%player%}% &2from your bank account." send "&2Your balance&7: &a $ %player's balance%" delete {antal::%player%} stop else: send "&2Not enaught money at your bank account" delete {antal::%player%} else: open chest with 3 rows named "&2Withdraw money" to player wait 1 tick set {_d} to 0 set {antal::%player%} to 0 loop 33 times: if loop-number is not 2, 4, 6, 11, 13, 15 or 26: format slot {_d} of player with gray glass named "" with lore "" to be unstealable add 1 to {_d} format slot 2 of player with iron ingot named "&2Add 1000" to run [add 1000 to {antal::%player%}] format slot 4 of player with gold ingot named "&2Add 10000" to run [add 10000 to {antal::%player%}] format slot 6 of player with diamond named "&2Add 100000" to run [add 100000 to {antal::%player%}] format slot 11 of player with iron ingot named "&4Remove 1000" to run [remove 1000 from {antal::%player%}] format slot 13 of player with gold ingot named "&4Remove 10000" to run [remove 10 from {antal::%player%}] format slot 15 of player with diamond named "&4Remove 100000" to run [remove 100000 from {antal::%player%}] format slot 18 of player with Emerald named "&2Accept" to close then run [execute player command "/bank output %{antal::%player%}%"] format slot 26 of player with redstone named "&4Voltar" to close then run [delete {antal::%player%}] while inventory name of player's current inventory is "&2Withdraw money": format slot 22 of player with paper named "&2Total to withdraw:" with lore "%{antal::%player%}%" to be unstealable wait 1 tick if arg 1 is "input": if arg 2 is set: set {_negativt} to "%arg 2%" if {_negativt} contains "-": send "&cCan't be a negative number!" stop if player's balance >= {antal::%player%}: remove {antal::%player%} from player's balance add {antal::%player%} to {Bank::%player%} send "&2You deposited &a $ %{antal::%player%}% &2 in you bank account." send "&2Bank balance&7: &a$ %{Bank::%player%}%" delete {antal::%player%} stop else: send "&2You don't have enaugh money to deposit." delete {antal::%player%} else: open chest with 3 rows named "&2Deposit money" to player wait 1 tick set {_d} to 0 set {antal::%player%} to 0 loop 33 times: if loop-number is not 2, 4, 6, 11, 13, 15 or 26: format slot {_d} of player with gray glass named "" with lore "" to be unstealable add 1 to {_d} format slot 2 of player with iron ingot named "&2Add 1000" to run [add 1000 to {antal::%player%}] format slot 4 of player with gold ingot named "&2Add 10000" to run [add 10000 to {antal::%player%}] format slot 6 of player with diamond named "&2Add 100000" to run [add 100000 to {antal::%player%}] format slot 11 of player with iron ingot named "&4Remove 1000" to run [remove 1000 from {antal::%player%}] format slot 13 of player with gold ingot named "&4Remove 10000" to run [remove 10000 from {antal::%player%}] format slot 15 of player with diamond named "&4Remove 100000" to run [remove 100000 from {antal::%player%}] format slot 18 of player with Emerald named "&2Accept" to close then run [execute player command "/bank input %{antal::%player%}%"] format slot 26 of player with redstone named "&4Voltar" to close then run [delete {antal::%player%}] while inventory name of player's current inventory is "&2Deposit money": format slot 22 of player with paper named "&2Total to deposit:" with lore "%{antal::%player%}%" to be unstealable wait 1 tick every 30 minutes: loop all players: message "&f&l[&9&lB&2&lA&3&lN&6&lK&f&l] &fYou got &2%0.03 * {Bank::%loop-player%}% &2$ &finsterest for having money on bank!" to loop-player add 0.03 * {Bank::%loop-player%} to {Bank::%loop-player%}