Advertisement
Guest User

1

a guest
Dec 11th, 2019
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.23 KB | None | 0 0
  1. on place of white stained glass:
  2. if player's tool is white stained glass named "&fGenerator - T1":
  3. message "&aPlaced a Tier 1 Generator"
  4. set {_drop} to block above event-block
  5. add {_drop} to {drops1::*}
  6.  
  7. on break of white stained glass:
  8. give player 1 white stained glass named "&fGenerator - T1"
  9. message "&cBroke a Tier 1 Generator"
  10. remove block above event-block from {drops1::*}
  11.  
  12. on rightclick with paper:
  13. loop all items in player's inventory:
  14. if loop-item is paper named "&a$1":
  15. set {paper} to loop-item
  16. remove all {paper} from player's inventory
  17. add {paper} to player's balance
  18. if loop-item is paper named "&a$2":
  19. set {paper} to loop-item
  20. remove all {paper} from player's inventory
  21. add {paper} * 2 to player's balance
  22.  
  23. on right click:
  24. if event-block is white stained glass:
  25. if event-block is {genlock::*}:
  26. execute console command "/kill Spaffe"
  27. else:
  28. if event-block is white stained glass:
  29. open chest with 3 rows named "&fGenerator - T1" to player
  30. format slot 15 of player with barrier named "&cRemove" to close then run [remove block above event-block from {drops1::*}]->[set block to air]->[give player white stained glass named "&fGenerator - T1"]
  31. format slot 11 of player with yellow stained glass named "&3Upgrade" to close then run [remove block above event-block from {drops1::*}]->[set block to air]->[give player white stained glass named "&fGenerator - T1"]->[make player execute command "/upgrade1"]
  32. format slot 22 of player with lever named "&4Lock Generator" to close then run [set {_genlock} to event-block]->[add {_genlock} to {genlock::*}]
  33.  
  34. command /upgrade1:
  35. trigger:
  36. if player's balance is more than or equal to 150:
  37. if player has white stained glass named "&fGenerator - T1":
  38. remove 150 from player's balance
  39. remove white stained glass named "&fGenerator - T1" from the player
  40. give player yellow stained glass named "&eGenerator - T2"
  41. send "&a&lUpgraded Generator!"
  42. stop
  43. else:
  44. send "&cYou are unable to do this right now"
  45.  
  46. every 5 real seconds:
  47. drop 1 paper named "&a$1" at {drops1::*}
  48. loop {gen::*}:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement