Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /warp [<text>] [<text>]:
- trigger:
- open chest with 2 rows named "&b&lWARPS" to player
- wait 1 tick
- set slot 1 of player's current inventory to chest named "&bCrates" with lore "&7Use your keys to||&7win amazing prizes!||&7||&bClick to warp"
- set slot 3 of player's current inventory to diamond sword named "&bPVP Arena" with lore "&7Fight other players||&7and gain their gear!||&7||&bClick to warp"
- set slot 5 of player's current inventory to white wool_block named "&bAnimal Farm" with lore "&7Kill animals||&7and gain their loot!||&7||&bClick to warp"
- set slot 7 of player's current inventory to diamond block named "&bHall of Fame" with lore "&7Current Staff||&7Top Voters & Top Island Levels!||&7||&bClick to warp"
- set slot 11 of player's current inventory to netherrack named "&bNether" with lore "&7Nether World!||&7||&bClick to warp"
- set slot 15 of player's current inventory to end stone named "&bEnd" with lore "&7End World!||&7||&bClick to warp"
- command /warps [<text>] [<text>]:
- trigger:
- open chest with 2 rows named "&b&lWARPS" to player
- wait 1 tick
- set slot 1 of player's current inventory to chest named "&bCrates" with lore "&7Use your keys to||&7win amazing prizes!||&7||&bClick to warp"
- set slot 3 of player's current inventory to diamond sword named "&bPVP Arena" with lore "&7Fight other players||&7and gain their gear!||&7||&bClick to warp"
- set slot 5 of player's current inventory to white wool_block named "&bAnimal Farm" with lore "&7Kill animals||&7and gain their loot!||&7||&bClick to warp"
- set slot 7 of player's current inventory to diamond block named "&bHall of Fame" with lore "&7Current Staff||&7Top Voters & Top Island Levels!||&7||&bClick to warp"
- set slot 11 of player's current inventory to netherrack named "&bNether" with lore "&7Nether World!||&7||&bClick to warp"
- set slot 15 of player's current inventory to end stone named "&bEnd" with lore "&7End World!||&7||&bClick to warp"
- on inventory click:
- if inventory name of player's current inventory is "&b&lWARPS":
- if clicked slot is 1:
- cancel event
- execute console command "essentials:warp crates %player%"
- if clicked slot is 3:
- cancel event
- execute console command "essentials:warp pvp %player%"
- if clicked slot is 5:
- cancel event
- execute console command "essentials:warp animals %player%"
- if clicked slot is 7:
- cancel event
- execute console command "essentials:warp halloffame %player%"
- if clicked slot is 11:
- cancel event
- execute console command "essentials:warp nether %player%"
- if clicked slot is 15:
- cancel event
- execute console command "essentials:warp end %player%"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement