Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on join:
- if {credits::%player's uuid%} is not set:
- set {credits::%player's uuid%} to 0
- on death:
- if attacker is a player:
- give 1 diamond named "&b+10 Credits &7(Right-Click)" to attacker
- on right click of diamond:
- if player's tool is named "&b+10 Credits &7(Right-Click)"
- add 10 to {credits::%player's uuid%}
- send "&b&l10 Credits have been added to your current credit balance."
- on unstore:
- if inventory name of player's current inventory is "&b&lCREDITS":
- cancel event
- on store:
- if inventory name of player's current inventory is "&b&lCREDITS":
- cancel event
- on inventory click:
- if inventory name of player's current inventory is "&b&lCREDITS":
- cancel event
- on inventory click:
- if inventory name of player's current inventory is "&6&lItem Enchanting":
- if name of clicked item is "&1Blue Tag Change":
- if {credits::%player's uuid%} is greater than or equal to 100:
- set the player's tablist name to "&1%name of player%"
- subtract 100 from {credits::%player's uuid%}
- cancel event
- if name of clicked item is "&4Red Tag Change":
- if {credits::%player's uuid%} is greater than or equal to 100:
- set the player's tablist name to "&5%name of player%"
- subtract 100 from {credits::%player's uuid%}
- cancel event
- if name of clicked item is "&4Green Tag Change":
- if {credits::%player's uuid%} is greater than or equal to 100:
- set the player's tablist name to "&2name of player%"
- subtract 100 from {credits::%player's uuid%}
- cancel event
- if name of clicked item is "&eYellow Tag Change":
- if {credits::%player's uuid%} is greater than or equal to 100:
- set the player's tablist name to "&e%name of player%"'
- subtract 100 from {credits::%player's uuid%}
- cancel event
- command /credits:
- trigger:
- open chest with 3 rows named "&b&lCREDITS" to player
- wait 1 tick
- set slot 0 of player's current inventory to diamond named "&b&lCREDITS" with lore "&7Credits: &f%{credits::%player's uuid%}%"
- set slot 2 of player's current inventory to blue wool "&1Blue Tag Change" with lore "&7Click to change your tag to &1Blue&7.||&7Cost: &f100 credits"
- set slot 3 of player's current inventory to red wool "&4Red Tag Change" with lore "&7Click to change your tag to &4Red&7.||&7Cost: &f100 credits"
- set slot 4 of player's current inventory to blue wool "&2Green Tag Change" with lore "&7Click to change your tag to &2Green&7.||&7Cost: &f100 credits"
- set slot 5 of player's current inventory to blue wool "&eYellow Tag Change" with lore "&7Click to change your tag to &eYellow&7.||&7Cost: &f100 credits"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement