Advertisement
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:
- if event-block is {genlock::*}:
- execute console command "/kill Spaffe"
- else:
- 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 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"]
- format slot 22 of player with lever named "&4Lock Generator" to close then run [set {_genlock} to event-block]->[add {_genlock} to {genlock::*}]
- command /upgrade1:
- trigger:
- if player's balance is more than or equal to 150:
- if player has white stained glass named "&fGenerator - T1":
- remove 150 from player's balance
- remove white stained glass named "&fGenerator - T1" from the player
- give player yellow stained glass named "&eGenerator - T2"
- send "&a&lUpgraded Generator!"
- stop
- else:
- send "&cYou are unable to do this right now"
- every 5 real seconds:
- drop 1 paper named "&a$1" at {drops1::*}
- loop {gen::*}:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement