Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on right click on chest:
- cancel event
- set {_coords} to event-block's location
- set {_coords} to "%{_coords}%"
- replace all "x: " with "" in {_coords}
- replace all "y: " with "" in {_coords}
- replace all "z: " with "" in {_coords}
- send "%{chest}%"
- send "%{_coords}%"
- if {_coords} is the same as {chest}:
- create new gui with id "loot" with virtual chest named " >=LOOT CHEST=<"
- open gui with id "loot" to player
- loop all integers from 1 to 27:
- format gui slot loop-integer of player with air
- set {_test} to stone sword named "&3Prisoner Sword"
- enchant {_test} with sharpness 2
- enchant {_test} with unbreaking 1
- set {_helmet} to leather helmet named "&aPrisoner+ Helmet"
- enchant {_helmet} with protection 1
- enchant {_helmet} with unbreaking 1
- set {_chestplate} to leather chestplate named "&aPrisoner+ Chestplate"
- enchant {_chestplate} with protection 1
- enchant {_chestplate} with unbreaking 1
- set {_legs} to leather leggings named "&aPrisoner+ Leggings"
- enchant {_legs} with protection 1
- enchant {_legs} with unbreaking 1
- set {_boots} to leather boots named "&aPrisoner+ Boots"
- enchant {_boots} with protection 1
- enchant {_boots} with unbreaking 1
- set {_number} to a random integer between 1 and 5
- format gui slot {_number} of player with {_test}
- set {_number2} to a random integer between 6 and 19
- format gui slot {_number2} of player with {_chestplate}
- set {_number3} to {_number2} + 2
- format gui slot {_number3} of player with {_boots}
- set {_number4} to {_number3} + 3
- format gui slot {_number4} of player with {_legs}
- set {_number5} to a random integer between -2 and 3
- if {_number5} is 0:
- set {_number5} to -1
- set {_number6} to {_number4} + {_number5}
- format gui slot {_number6} of player with {_helmet}
- set {_number7} to random integer between 1 and 27
- wait 1 tick
- if {_number7} is not {_number}:
- if {_number7} is not {_number2}:
- if {_number7} is not {_number3}:
- if {_number7} is not {_number4}:
- if {_number7} is not {_number6}:
- format gui slot {_number7} of player with 5 sunflower named "&6&lCoin"
- else:
- add 1 to {_number7}
- format gui slot {_number7} of player with 5 sunflower named "&6&lCoin"
- else:
- add 1 to {_number7}
- if {_number7} is not {_number6}:
- format gui slot {_number7} of player with 5 sunflower named "&6&lCoin"
- else:
- add 1 to {_number6}
- format gui slot {_number7} of player with 5 sunflower named "&6&lCoin"
- else:
- add 1 to {_number7}
- format gui slot {_number7} of player with 5 sunflower named "&6&lCoin"
- else:
- add 1 to {_number7}
- format gui slot {_number7} of player with 5 sunflower named "&6&lCoin"
- else:
- add 1 to {_number7}
- format gui slot {_number7} of player with 5 sunflower named "&6&lCoin"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement