Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- every 15 seconds in "ASkyBlock":
- loop all players:
- {mg1::%uuid of loop-player%} is set:
- {gmactive.%uuid of loop-player%} is true:
- add 750 * {mgl.%uuid of loop-player%} to {bank.%{isb.%loop-player%}%}
- on place:
- block is a end portal frame:
- name of player's tool is "&a&lMoney Generator Tier1":
- set {_loc} to block's location
- if {mg1::%uuid of player%} is not set:
- set {mg1::%uuid of player%} to {_loc}
- send "&aPlacing &a&LMoney Generator&a!"
- set {mgl.%uuid of player%} to 1
- create holo object "&a&lMoney Generator;&a&LLevel: %{mgl.%uuid of player%}%;&a&LMoney Per Minute:%750 * {mgl.%uuid of player%} * 4%" with id "test.%player%" at location 1 meter above {mg1::%uuid of player%}
- set {mgc.%uuid of player%} to true
- else if {mgc.%uuid of player%} is true:
- set {_block} to block at {mg1::%uuid of player%}
- break {_block}
- set {mg1::%uuid of player%} to {_loc}
- delete {mgc.%uuid of player%}
- send "&aPlacing &a&LMoney Generator&a!"
- delete holo object "test.%player%"
- create holo object "&a&lMoney Generator;&a&LLevel: %{mgl.%uuid of player%}%;&a&LMoney Per Minute:%750 * {mgl.%uuid of player%} * 4%" with id "test.%player%" at location 1 meter above {mg1::%uuid of player%}
- set {gmactive.%uuid of player%} to true
- set the block at {_loc} to end portal frame
- else if {mg1::%uuid of player%} is set:
- if {mgc.%uuid of player%} is not set:
- cancel event
- send "&c&L(!) Placing this generator will update the gen location to here and the old gen wont work!"
- send "&cplace it in the next 30 seconds to place the generator"
- set {mgc.%uuid of player%} to true
- wait 30 seconds
- delete {mgc.%uuid of player%}
- else if {mgc.%uuid of player%} is true:
- cancel event
- delete {mgc.%uuid of player%}
- send "&c&L(!) Placing this generator will update the gen location to here and the old gen wont work!"
- send "&cplace it in the next 30 seconds to place the generator"
- name of player's tool is "&a&lMoney Generator &b&LUpgrade":
- cancel event
- set {mg2.%uuid of player%} to true
- set {gmactive.%uuid of player%} to true
- if block at location of event-block is event-block:
- set event-block to air
- on click on end portal frame with end portal frame:
- name of player's tool is "&a&lMoney Generator &b&LUpgrade":
- clicked block's location = {mg1::%uuid of player%}:
- {mg2.%uuid of player%} is true:
- delete holo object "test.%player%"
- set {mgp.%uuid of player%} to true
- if {mgl.%uuid of player%} is 0:
- set {mgl.%uuid of player%} to 2
- {mgl.%uuid of player%} is not set:
- set {mgl.%uuid of player%} to 2
- else if {mgl.%uuid of player%} is not 0:
- set {mgl.%uuid of player%} to {mgl.%uuid of player%} + 1
- edit holo object "test.%player%" line 2 to "&a&LLevel: %{mgl.%uuid of player%}%"
- create holo object "&a&lMoney Generator;&a&LLevel: %{mgl.%uuid of player%}%;&a&LMoney Per Minute: %750 * {mgl.%uuid of player%} *4%" with id "test.%player%" at location 1 meter above {mg1::%uuid of player%}
- send "&a&LUpgraded Money Generator to Level %{mgl.%uuid of player%}%!"
- set {mg2.%uuid of player%} to false
- set {gmactive.%uuid of player%} to true
- remove 1 end portal frame named "&a&LMoney Generator &b&LUpgrade" with lore "&7Place this on &aMoney Generator &7to &b&LUpgrade it||&7This will &b&LUpgrade &7it by &7&l750$||&5&l&nMEANING &7it will add 750$ each time||&7Upgraded" from player
Add Comment
Please, Sign In to add comment