Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on place:
- player's tool is a sea lantern
- name of player's tool is "&b&lMINERAL &7Loot Box":
- wait 5 ticks
- set block to bedrock
- wait 2 ticks
- set block to air
- drawWarpRings style 60, particle "redstone", RGB 80, 255, 255, center location of block at block, id "%player%", rainbowMode true, scan true, height 2, radius 2, ringCount 40, ringDensity 20, visibleRange 32, pulseDelay 2
- wait 5 seconds
- stopEffect "%player%"
- set block to chest
- wait 1 second
- set block to air
- set {_randomizer} to random integer between 0 and 2
- if {_randomizer} = 0:
- set {_reward} to "16 Diamond Blocks"
- set block to diamond block
- drawItemFountain diamonds, style 1, center location of block, id "%player%", itemTime 50 ticks, yVelocity 50, radius 1, density 40, displacementXYZ 0, 0, 0, pulseDelay 10
- wait 2 seconds
- set block to air
- stopEffect "%player%"
- give player 16 diamond blocks
- send "&b&l+ &b16 Diamond Blocks" to player
- if {_randomizer} = 1:
- set {_reward} to "16 Emerald Blocks"
- set block to emerald block
- drawItemFountain emeralds, style 1, center location of block, id "%player%", itemTime 50 ticks, yVelocity 50, radius 1, density 40, displacementXYZ 0, 0, 0, pulseDelay 10
- wait 2 seconds
- set block to air
- stopEffect "%player%"
- give player 16 emerald blocks
- send "&a&l+ &a16 Emerald Blocks" to player
- if {_randomizer} = 2:
- set {_reward} to "16 Iron Blocks"
- set block to iron block
- drawItemFountain iron ingot, style 1, center location of block, id "%player%", itemTime 50 ticks, yVelocity 50, radius 1, density 40, displacementXYZ 0, 0, 0, pulseDelay 10
- wait 2 seconds
- set block to air
- stopEffect "%player%"
- give player 16 iron blocks
- send "&r&l+ &r16 Iron Blocks" to player
Add Comment
Please, Sign In to add comment