Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- nm: &7[&6&lGens&7] &7» &4this is not your gen to break
- gencapMSG: &bYou have reached your Gen Cap!
- permMSG: &cNope!
- blockRAD: 8
- on place of coal block:
- set {genlocation::%location of event-block%} to uuid of player
- set {gens::%location of event-block%} to uuid of player
- if {gens::%player's uuid%} < 10:
- add 1 to {gens::%player's uuid%}
- else:
- send "" to player
- send "{@gencapMSG} &7%{gens::%player's uuid%}%&b/&710" to player
- send "" to player
- cancel event
- command /gencap [<player>] [<text>] [<number>]:
- permission: gencap.use
- permission message: {@permMSG}
- trigger:
- if arg-1 is set:
- if arg-2 is "reset":
- set {gens::%arg-1's uuid%} to 0
- send "&cYou have just reset %arg-1%&c's gen cap!" to player
- command /gens:
- trigger:
- send "" to player
- send "&bYou have used %{gens::%player's uuid%}%&7/&b10 gen space!" to player
- send "" to player
- command /sell:
- trigger:
- set {_amount} to amount of paper named "&e$1" in player's inventory
- add {_amount} to {money::%player's uuid%}
- remove {_amount} of paper named "&e$1" item from player's inventory
- send "&7You have just sold &a%{_amount}% &7$1 notes!" to player
- send "&7Total Balance&f: &a%{money::%player's uuid%}%"
- command /balance:
- trigger:
- send "" to player
- send "&bYou have &a%{money::%player's uuid%}% &bdollars!" to player
- send ""
- #the function
- every 80 ticks:
- loop all blocks in a radius of {radiusblock} of player:
- if loop-block is coal block:
- drop 1 paper named "&e$1" above loop-block
- on right click:
- if player is holding a paper named "&e$1":
- set {_amount} to amount of paper named "&e$1" in player's inventory
- add {_amount} to {money::%player's uuid%}
- remove {_amount} of paper named "&e$1" item from player's inventory
- on break:
- if event-block is coal block:
- if {genlocation::%location of event-block%} is player's uuid:
- remove 1 from {gens::%player's uuid%}
- else:
- cancel event
- send "{@nm}"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement