TeamF Posted September 11, 2021 Share Posted September 11, 2021 I have a nice little gen skript but idk how to make a genslots system. can some1 help me? #Gen 1 White wool on place of white wool: #1 gen place send "&e-------------------------" send "&f&lYou placed a Wool gen!" send "&e-------------------------" while event-block is white wool: wait 80 ticks drop 1 bone meal above location of event-block give player white wool set block at location of event-block to air on left click on white wool: #1 gen remove give player white wool set block at location of event-block to air send "&e-------------------------" send "&f&lYou Removed a Wool gen!" send "&e-------------------------" on right click on white wool: #1 gen upgrade wait 5 ticks if player's balance is more or equal to 500: subtract 500 from player's balance set block to gray wool send "&e-------------------------" send "&f&lYou Upgraded a gen!" send "&e-------------------------" send action bar "&7Upgraded Generator!" to player else: send action bar "&cCant Afford!" to player #Gen 2 Gray Wool on place of gray wool: #2 gen place send "&e-------------------------" send "&f&lYou placed a Gray Wool gen!" send "&e-------------------------" while event-block is gray wool: wait 80 ticks drop 1 gray dye above location of event-block on left click on gray wool: #2 gen remove give player gray wool set block at location of event-block to air send "&e-------------------------" send "&f&lYou Removed a Gray Wool gen!" send "&e-------------------------" on right click on gray wool: #2 gen upgrade wait 5 ticks if player's balance is more or equal to 2000: subtract 2000 from player's balance set block to black wool send "&e-------------------------" send "&f&lYou Upgraded a gen!" send "&e-------------------------" send action bar "&7Upgraded Generator!" to player else: send action bar "&cCant Afford!" to player #Gen 3 Black wool on place of black wool: #3 gen place send "&e-------------------------" send "&f&lYou placed a Black Wool gen!" send "&e-------------------------" while event-block is black wool: wait 80 ticks drop 1 black dye above location of event-block on left click on black wool: #3 gen remove give player black wool set block at location of event-block to air send "&e-------------------------" send "&f&lYou Removed a Black Wool gen!" send "&e-------------------------" on right click on black wool: #3 gen upgrade wait 5 ticks if player's balance is more or equal to 5000: subtract 5000 from player's balance set block to red wool send "&e-------------------------" send "&f&lYou Upgraded a gen!" send "&e-------------------------" send action bar "&7Upgraded Generator!" to player else: send action bar "&cCant Afford!" to player #Gen 4 Red wool on place of red wool: #4 gen place send "&e-------------------------" send "&f&lYou placed a Red Wool gen!" send "&e-------------------------" while event-block is red wool: wait 80 ticks drop 1 red dye above location of event-block on left click on red wool: #4 gen remove give player red wool set block at location of event-block to air send "&e-------------------------" send "&f&lYou Removed a Red Wool gen!" send "&e-------------------------" on right click on red wool: #4 gen upgrade wait 5 ticks if player's balance is more or equal to 10000: subtract 10000 from player's balance set block to blue wool send "&e-------------------------" send "&f&lYou Upgraded a gen!" send "&e-------------------------" send action bar "&7Upgraded Generator!" to player else: send action bar "&cCant Afford!" to player If i can get some help i would GREATLY apreicate it. 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