Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- #Config and Language
- inv-name: " &6&l»&e»&7Slots&e«&6&l«"
- slot1: &6Slot 1
- slot2: &6Slot 2
- slot3: &6Slot 3
- slot4: &6Slot 4
- slot5: &6Slot 5
- slot6: &6Slot 6
- slot7: &6Slot 7
- slot8: &6Slot 8
- slot9: &6Slot 9
- slot-full: &cThis slot is full!
- no-pick: &cYou don't have a pickaxe to move
- open-gui-sound: BLOCK_CHEST_OPEN
- volume1: 5
- pitch1: 1
- sel-slot-sound: UI_BUTTON_CLICK
- pitch2: 1
- volume2: 1
- error-sound: BLOCK_ANVIL_LAND
- volume3: 1
- pitch3: 1
- command /slots:
- trigger:
- open chest with 1 row named {@inv-name} to player
- play sound "{@open-gui-sound}" with volume {@volume1} with pitch {@pitch1} at player for player
- set slot 0 of player's current inventory to nether star named "{@slot1}"
- set slot 1 of player's current inventory to nether star named "{@slot2}"
- set slot 2 of player's current inventory to nether star named "{@slot3}"
- set slot 3 of player's current inventory to nether star named "{@slot4}"
- set slot 4 of player's current inventory to nether star named "{@slot5}"
- set slot 5 of player's current inventory to nether star named "{@slot6}"
- set slot 6 of player's current inventory to nether star named "{@slot7}"
- set slot 7 of player's current inventory to nether star named "{@slot8}"
- set slot 8 of player's current inventory to nether star named "{@slot9}"
- on inventory click:
- if inventory name of current inventory of player is {@inv-name}:
- if name of event-item is "{@slot1}":
- if slot 0 of player is not air:
- if player have diamond pickaxe:
- cancel event
- send "{@slot-full}" to player
- play sound "{@error-sound}" with volume {@volume3} with pitch {@pitch3} at player for player
- if slot 0 of player is air:
- loop all items in player's inventory:
- if loop-item is diamond pickaxe:
- set {picck} to loop-item
- remove {picck} from player's inventory
- set slot 0 of player to {picck}
- play sound "{@sel-slot-sound}" with volume {@volume2} with pitch {@pitch2} at player for player
- cancel event
- if player doesn't have diamond pickaxe:
- cancel event
- send "{@no-pick}" to player
- play sound "{@error-sound}" with volume {@volume3} with pitch {@pitch3} at player for player
- if inventory name of current inventory of player is {@inv-name}:
- if name of event-item is "{@slot2}":
- if slot 1 of player is not air:
- if player have diamond pickaxe:
- cancel event
- send "{@slot-full}" to player
- play sound "{@error-sound}" with volume {@volume3} with pitch {@pitch3} at player for player
- if slot 1 of player is air:
- loop all items in player's inventory:
- if loop-item is diamond pickaxe:
- set {picck} to loop-item
- remove {picck} from player's inventory
- set slot 1 of player to {picck}
- play sound "{@sel-slot-sound}" with volume {@volume2} with pitch {@pitch2} at player for player
- cancel event
- if player doesn't have diamond pickaxe:
- cancel event
- send "{@no-pick}" to player
- play sound "{@error-sound}" with volume {@volume3} with pitch {@pitch3} at player for player
- if inventory name of current inventory of player is {@inv-name}:
- if name of event-item is "{@slot3}":
- if slot 2 of player is not air:
- if player have diamond pickaxe:
- cancel event
- send "{@slot-full}" to player
- play sound "{@error-sound}" with volume {@volume3} with pitch {@pitch3} at player for player
- if slot 2 of player is air:
- loop all items in player's inventory:
- if loop-item is diamond pickaxe:
- set {picck} to loop-item
- remove {picck} from player's inventory
- set slot 2 of player to {picck}
- play sound "{@sel-slot-sound}" with volume {@volume2} with pitch {@pitch2} at player for player
- cancel event
- if player doesn't have diamond pickaxe:
- cancel event
- send "{@no-pick}" to player
- play sound "{@error-sound}" with volume {@volume3} with pitch {@pitch3} at player for player
- if inventory name of current inventory of player is {@inv-name}:
- if name of event-item is "{@slot4}":
- if slot 3 of player is not air:
- if player have diamond pickaxe:
- cancel event
- send "{@slot-full}" to player
- play sound "{@error-sound}" with volume {@volume3} with pitch {@pitch3} at player for player
- if slot 3 of player is air:
- loop all items in player's inventory:
- if loop-item is diamond pickaxe:
- set {picck} to loop-item
- remove {picck} from player's inventory
- set slot 3 of player to {picck}
- play sound "{@sel-slot-sound}" with volume {@volume2} with pitch {@pitch2} at player for player
- cancel event
- if player doesn't have diamond pickaxe:
- cancel event
- send "{@no-pick}" to player
- play sound "{@error-sound}" with volume {@volume3} with pitch {@pitch3} at player for player
- if inventory name of current inventory of player is {@inv-name}:
- if name of event-item is "{@slot5}":
- if slot 4 of player is not air:
- if player have diamond pickaxe:
- cancel event
- send "{@slot-full}" to player
- play sound "{@error-sound}" with volume {@volume3} with pitch {@pitch3} at player for player
- if slot 4 of player is air:
- loop all items in player's inventory:
- if loop-item is diamond pickaxe:
- set {picck} to loop-item
- remove {picck} from player's inventory
- set slot 4 of player to {picck}
- play sound "{@sel-slot-sound}" with volume {@volume2} with pitch {@pitch2} at player for player
- cancel event
- if player doesn't have diamond pickaxe:
- cancel event
- send "{@no-pick}" to player
- play sound "{@error-sound}" with volume {@volume3} with pitch {@pitch3} at player for player
- if inventory name of current inventory of player is {@inv-name}:
- if name of event-item is "{@slot6}":
- if slot 5 of player is not air:
- if player have diamond pickaxe:
- cancel event
- send "{@slot-full}" to player
- play sound "{@error-sound}" with volume {@volume3} with pitch {@pitch3} at player for player
- if slot 5 of player is air:
- loop all items in player's inventory:
- if loop-item is diamond pickaxe:
- set {picck} to loop-item
- remove {picck} from player's inventory
- set slot 5 of player to {picck}
- play sound "{@sel-slot-sound}" with volume {@volume2} with pitch {@pitch2} at player for player
- cancel event
- if player doesn't have diamond pickaxe:
- cancel event
- send "{@no-pick}" to player
- play sound "{@error-sound}" with volume {@volume3} with pitch {@pitch3} at player for player
- if inventory name of current inventory of player is {@inv-name}:
- if name of event-item is "{@slot7}":
- if slot 6 of player is not air:
- if player have diamond pickaxe:
- cancel event
- send "{@slot-full}" to player
- play sound "{@error-sound}" with volume {@volume3} with pitch {@pitch3} at player for player
- if slot 6 of player is air:
- loop all items in player's inventory:
- if loop-item is diamond pickaxe:
- set {picck} to loop-item
- remove {picck} from player's inventory
- set slot 6 of player to {picck}
- play sound "{@sel-slot-sound}" with volume {@volume2} with pitch {@pitch2} at player for player
- cancel event
- if player doesn't have diamond pickaxe:
- cancel event
- send "{@no-pick}" to player
- play sound "{@error-sound}" with volume {@volume3} with pitch {@pitch3} at player for player
- if inventory name of current inventory of player is {@inv-name}:
- if name of event-item is "{@slot8}":
- if slot 7 of player is not air:
- if player have diamond pickaxe:
- cancel event
- send "{@slot-full}" to player
- play sound "{@error-sound}" with volume {@volume3} with pitch {@pitch3} at player for player
- if slot 7 of player is air:
- loop all items in player's inventory:
- if loop-item is diamond pickaxe:
- set {picck} to loop-item
- remove {picck} from player's inventory
- set slot 7 of player to {picck}
- play sound "{@sel-slot-sound}" with volume {@volume2} with pitch {@pitch2} at player for player
- cancel event
- if player doesn't have diamond pickaxe:
- cancel event
- send "{@no-pick}" to player
- play sound "{@error-sound}" with volume {@volume3} with pitch {@pitch3} at player for player
- if inventory name of current inventory of player is {@inv-name}:
- if name of event-item is "{@slot9}":
- if slot 8 of player is not air:
- if player have diamond pickaxe:
- cancel event
- send "{@slot-full}" to player
- play sound "{@error-sound}" with volume {@volume3} with pitch {@pitch3} at player for player
- if slot 8 of player is air:
- loop all items in player's inventory:
- if loop-item is diamond pickaxe:
- set {picck} to loop-item
- remove {picck} from player's inventory
- set slot 8 of player to {picck}
- play sound "{@sel-slot-sound}" with volume {@volume2} with pitch {@pitch2} at player for player
- cancel event
- if player doesn't have diamond pickaxe:
- cancel event
- send "{@no-pick}" to player
- play sound "{@error-sound}" with volume {@volume3} with pitch {@pitch3} at player for player
Add Comment
Please, Sign In to add comment