Advertisement
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 /slotts:
- 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}"
- function provaFunzione(p: player , s: numbers , i: item) :: number:
- if inventory name of current inventory of {_p} is {@inv-name}:
- if name of {_i} is "{@slot1}":
- if slot {_s} of {_p} is not air:
- if {_p} have diamond pickaxe:
- set {_prova} to 0
- return {_prova}
- function provaFunzionee(p: player , s: numbers , i: item) :: number:
- if slot {_s} of {_p} is air:
- loop all items in {_p}'s inventory:
- if loop-item is diamond pickaxe:
- set {_provaa} to 0
- return {_provaa}
- function provaFunzioneee(p: player , s: numbers , i: item) :: number:
- if {_p} doesn't have diamond pickaxe:
- set {_provaaa} to 0
- return {_provaaa}
- on inventory click:
- provaFunzione(player , 0 , event-item)
- if {_prova} is 0:
- cancel event
- send "{@slot-full}" to {_p}
- play sound "{@error-sound}" with volume {@volume3} with pitch {@pitch3} at {_p} for {_p}
- provaFunzionee(player , 0 , event-item)
- if {_provaa} is 0:
- set {picck} to {_i}
- remove {picck} from {_p}'s inventory
- set slot {_s} of {_p} to {picck}
- play sound "{@sel-slot-sound}" with volume {@volume2} with pitch {@pitch2} at {_p} for {_p}
- cancel event
- provaFunzioneee(player , 0 , event-item)
- if {_provaaa} is 0:
- cancel event
- send "{@no-pick}" to {_p}
- play sound "{@error-sound}" with volume {@volume3} with pitch {@pitch3} at {_p} for {_p}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement