elibrownington21 Posted August 12, 2023 Share Posted August 12, 2023 command /bank: trigger: if {balance::%player's uuid%} is not set: set {balance::%player's uuid%} to 0 else: wait 1 tick play sound "block.note_block.hat" at volume 1 at pitch 1 to player set {bank} to chest inventory with 3 row named "&2Bank" set slot 0 of {bank} to black stained glass pane named "&0" set slot 1 of {bank} to black stained glass pane named "&0" set slot 2 of {bank} to black stained glass pane named "&0" set slot 3 of {bank} to black stained glass pane named "&0" set slot 4 of {bank} to black stained glass pane named "&0" set slot 5 of {bank} to black stained glass pane named "&0" set slot 6 of {bank} to black stained glass pane named "&0" set slot 7 of {bank} to black stained glass pane named "&0" set slot 8 of {bank} to black stained glass pane named "&0" set slot 9 of {bank} to black stained glass pane named "&0" set slot 17 of {bank} to black stained glass pane named "&0" set slot 18 of {bank} to black stained glass pane named "&0" set slot 19 of {bank} to black stained glass pane named "&0" set slot 20 of {bank} to black stained glass pane named "&0" set slot 21 of {bank} to black stained glass pane named "&0" set slot 22 of {bank} to black stained glass pane named "&0" set slot 23 of {bank} to black stained glass pane named "&0" set slot 24 of {bank} to black stained glass pane named "&0" set slot 25 of {bank} to black stained glass pane named "&0" set slot 26 of {bank} to black stained glass pane named "&0" set slot 10 of {bank} to gold block named "&6Current Balance" with lore "&7&o($%{bankbalance::%player's uuid%}%)" set slot 12 of {bank} to paper named "&2Deposit" with lore "&7&o(click to open)" set slot 14 of {bank} to book named "&2Withdraw" with lore "&7&o(click to open)" open {bank} to player on inventory click: event-inventory is {bank}: cancel event on inventory click: event-inventory is {bank}: event-slot is 12: cancel event set {deposit} to chest inventory with 3 row named "&2Deposit" set slot 0 of {deposit} to black stained glass pane named "&0" set slot 1 of {deposit} to black stained glass pane named "&0" set slot 2 of {deposit} to black stained glass pane named "&0" set slot 3 of {deposit} to black stained glass pane named "&0" set slot 4 of {deposit} to black stained glass pane named "&0" set slot 5 of {deposit} to black stained glass pane named "&0" set slot 6 of {deposit} to black stained glass pane named "&0" set slot 7 of {deposit} to black stained glass pane named "&0" set slot 8 of {deposit} to black stained glass pane named "&0" set slot 9 of {deposit} to black stained glass pane named "&0" set slot 17 of {deposit} to black stained glass pane named "&0" set slot 18 of {deposit} to black stained glass pane named "&0" set slot 19 of {deposit} to black stained glass pane named "&0" set slot 20 of {deposit} to black stained glass pane named "&0" set slot 21 of {deposit} to black stained glass pane named "&0" set slot 22 of {deposit} to black stained glass pane named "&0" set slot 23 of {deposit} to black stained glass pane named "&0" set slot 24 of {deposit} to black stained glass pane named "&0" set slot 25 of {deposit} to black stained glass pane named "&0" set slot 26 of {deposit} to black stained glass pane named "&0" set slot 10 of {deposit} to paper named "&2Deposit&7 $1,000" set slot 12 of {deposit} to paper named "&2Deposit&7 $10,000" set slot 14 of {deposit} to paper named "&2Deposit&7 $50,000" set slot 16 of {deposit} to paper named "&2Deposit&7 $100,000" open {deposit} to player on inventory click: event-inventory is {deposit}: cancel event on inventory click: event-inventory is {deposit}: event-slot is 10: cancel event if {balance::%player's uuid%} is less than 1000: send "&2&lBANK&2 >>&c You do not have enough money to deposit $1,000!" stop else: remove 1000 from {balance::%player's uuid%} add 1000 to {bankbalance::%player's uuid%} send "&2&lBANK&2 >>&f You have successfully deposited $1,000 into the bank!" on inventory click: event-inventory is {deposit}: event-slot is 12: cancel event if {balance::%player's uuid%} is less than 10000: send "&2&lBANK&2 >>&c You do not have enough money to deposit $10,000!" stop else: remove 10000 from {balance::%player's uuid%} add 10000 to {bankbalance::%player's uuid%} send "&2&lBANK&2 >>&f You have successfully deposited $10,000 into the bank!" on inventory click: event-inventory is {deposit}: event-slot is 14: cancel event if {balance::%player's uuid%} is less than 50000: send "&2&lBANK&2 >>&c You do not have enough money to deposit $50,000!" stop else: remove 50000 from {balance::%player's uuid%} add 50000 to {bankbalance::%player's uuid%} send "&2&lBANK&2 >>&f You have successfully deposited $50,000 into the bank!" on inventory click: event-inventory is {deposit}: event-slot is 16: cancel event if {balance::%player's uuid%} is less than 100000: send "&2&lBANK&2 >>&c You do not have enough money to deposit $100,000!" stop else: remove 100000 from {balance::%player's uuid%} add 100000 to {bankbalance::%player's uuid%} send "&2&lBANK&2 >>&f You have successfully deposited $100,000 into the bank!" on inventory click: event-inventory is {bank}: event-slot is 14: cancel event set {withdraw} to chest inventory with 3 row named "&2Withdraw" set slot 0 of {withdraw} to black stained glass pane named "&0" set slot 1 of {withdraw} to black stained glass pane named "&0" set slot 2 of {withdraw} to black stained glass pane named "&0" set slot 3 of {withdraw} to black stained glass pane named "&0" set slot 4 of {withdraw} to black stained glass pane named "&0" set slot 5 of {withdraw} to black stained glass pane named "&0" set slot 6 of {withdraw} to black stained glass pane named "&0" set slot 7 of {withdraw} to black stained glass pane named "&0" set slot 8 of {withdraw} to black stained glass pane named "&0" set slot 9 of {withdraw} to black stained glass pane named "&0" set slot 17 of {withdraw} to black stained glass pane named "&0" set slot 18 of {withdraw} to black stained glass pane named "&0" set slot 19 of {withdraw} to black stained glass pane named "&0" set slot 20 of {withdraw} to black stained glass pane named "&0" set slot 21 of {withdraw} to black stained glass pane named "&0" set slot 22 of {withdraw} to black stained glass pane named "&0" set slot 23 of {withdraw} to black stained glass pane named "&0" set slot 24 of {withdraw} to black stained glass pane named "&0" set slot 25 of {withdraw} to black stained glass pane named "&0" set slot 26 of {withdraw} to black stained glass pane named "&0" set slot 10 of {withdraw} to paper named "&2Withdraw&7 $1,000" set slot 12 of {withdraw} to paper named "&2Withdraw&7 $10,000" set slot 14 of {withdraw} to paper named "&2Withdraw&7 $50,000" set slot 16 of {withdraw} to paper named "&2Withdraw&7 $100,000" open {withdraw} to player on inventory click: event-inventory is {withdraw}: event-slot is 10: cancel event if {balance::%player's uuid%} is greater than 1000: send "&2&lBANK&2 >>&c You do not have enough money to withdraw $1,000!" stop else: add 1000 to {balance::%player's uuid%} remove 1000 from {bankbalance::%player's uuid%} send "&2&lBANK&2 >>&f You have successfully withdrawed $1,000 from the bank!" on inventory click: event-inventory is {withdraw}: event-slot is 12: cancel event if {balance::%player's uuid%} is greater than 10000: send "&2&lBANK&2 >>&c You do not have enough money to withdraw $10,000!" stop else: add 10000 to {balance::%player's uuid%} remove 10000 from {bankbalance::%player's uuid%} send "&2&lBANK&2 >>&f You have successfully withdrawed $10,000 from the bank!" on inventory click: event-inventory is {withdraw}: event-slot is 14: cancel event if {balance::%player's uuid%} is greater than 50000: send "&2&lBANK&2 >>&c You do not have enough money to withdraw $50,000!" stop else: add 50000 to {balance::%player's uuid%} remove 50000 from {bankbalance::%player's uuid%} send "&2&lBANK&2 >>&f You have successfully withdrawed $50,000 from the bank!" on inventory click: event-inventory is {withdraw}: event-slot is 16: cancel event if {balance::%player's uuid%} is greater than 100000: send "&2&lBANK&2 >>&c You do not have enough money to withdraw $100,000!" stop else: add 100000 to {balance::%player's uuid%} remove 100000 from {bankbalance::%player's uuid%} send "&2&lBANK&2 >>&f You have successfully withdrawed $100,000 from the bank!" Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now