Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on right click on entity:
- if name of entity is "&1Buycraft":
- execute player command "/buy"
- command /buy [<text>] :
- trigger:
- if arg-1 is not set:
- wait 3 ticks
- format slot 11 of player with book named "&3&lRanks" to close then run [execute player command "/buy Rank"]
- format slot 13 of player with book named "&3&lKits" to close then run [execute player command "/buy Kits"]
- format slot 15 of player with book named "&3&lAndet" to close then run [execute player command "/buy Andet"]
- else:
- if arg-1 is "Rank":
- wait 4 ticks
- open chest with 3 rows named "Rank" to player
- format slot 11 of player with book named "&1Rank" with lore "&8Pris" to close then run [execute player command "/buy Rank1"]
- format slot 12 of player with book named "&1Rank" with lore "&8Pris" to close then run [execute player command "/buy Rank2"]
- format slot 13 of player with book named "&1Rank" with lore "&8Pris" to close then run [execute player command "/buy Rank3"]
- format slot 22 of player with glowing red clay named "&cTilbage" to close then run [execute player command "/buy"]
- else:
- if arg-1 is "Rank1":
- broadcast "&f"
- broadcast "&8[&e&lBuycraft&8] &f%command sender% vil gerne købe &6%arg-1% &ffor &a?? EMS"
- broadcast "&f"
- if arg-1 is "Rank2":
- broadcast "&f"
- broadcast "&8[&e&lBuycraft&8] &f%command sender% vil gerne købe &6%arg-1% &ffor &a?? EMS"
- broadcast "&f"
- if arg-1 is "Rank3":
- broadcast "&f"
- broadcast "&8[&3&lBuycraft&8] &f%command sender% vil gerne købe &6%arg-1% &ffor &a?? EMS"
- broadcast "&f"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement