Advertisement
Guest User

Untitled

a guest
Dec 11th, 2019
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.99 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. if player's tool is paper named "&a$1":
  14. execute console command "eco give %player% 1"
  15. remove paper from player
  16.  
  17. on right click:
  18. if event-block is white stained glass:
  19. if event-block is {genlock::*}:
  20. execute console command "/kill Spaffe"
  21. else:
  22. if event-block is white stained glass:
  23. open chest with 3 rows named "&fGenerator - T1" to player
  24. 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"]
  25. 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"]
  26. format slot 22 of player with lever named "&4Lock Generator" to close then run [set {_genlock} to event-block]->[add {_genlock} to {genlock::*}]
  27.  
  28. command /upgrade1:
  29. trigger:
  30. if player's balance is more than or equal to 150:
  31. if player has white stained glass named "&fGenerator - T1":
  32. remove 150 from player's balance
  33. remove white stained glass named "&fGenerator - T1" from the player
  34. give player yellow stained glass named "&eGenerator - T2"
  35. send "&a&lUpgraded Generator!"
  36. stop
  37. else:
  38. send "&cYou are unable to do this right now"
  39.  
  40. every 5 real seconds:
  41. drop 1 paper named "&a$1" at {drops1::*}
  42. loop {gen::*}:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement