Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on place of white stained glass:
- if player's tool is white stained glass named "&fGenerator - T1":
- message "&aPlaced a Tier 1 Generator"
- set {_drop} to block above event-block
- add {_drop} to {drops1::*}
- on break of white stained glass:
- give player 1 white stained glass named "&fGenerator - T1"
- message "&cBroke a Tier 1 Generator"
- remove block above event-block from {drops1::*}
- on rightclick with paper:
- if player's tool is paper named "&a$1":
- execute console command "eco give %player% 1"
- remove paper from player
- on right click:
- if event-block is white stained glass:
- open chest with 3 rows named "&fGenerator - T1" to player
- 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"]
- format slot 12 of player with yellow stained glass named "&3Upgrade" to close then run [remove block above event-block from {drops1::*}]->[set block to air]->[make player execute command "/upgrade1"]
- command /upgrade1:
- trigger:
- if player's balance is more than or equal to 150:
- remove 150 from player's balance
- give player yellow stained glass named "&fGenerator - T2"
- send "&a&lUpgraded Generator!"
- stop
- else:
- give player white stained glass named "&fGenerator - T1"
- send "&cYou Do Not Have Enough Money For This!"
- every 5 real seconds:
- drop 1 paper named "&a$1" at {drops1::*}
- loop {gen::*}:
Advertisement
Add Comment
Please, Sign In to add comment