Entities

Untitled

Jan 8th, 2018
197
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.16 KB | None | 0 0
  1. on place:
  2. player's tool is a sea lantern
  3. name of player's tool is "&b&lMINERAL &7Loot Box":
  4. wait 5 ticks
  5. set block to bedrock
  6. wait 2 ticks
  7. set block to air
  8. 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
  9. wait 5 seconds
  10. stopEffect "%player%"
  11. set block to chest
  12. wait 1 second
  13. set block to air
  14. set {_randomizer} to random integer between 0 and 2
  15. if {_randomizer} = 0:
  16. set {_reward} to "16 Diamond Blocks"
  17. set block to diamond block
  18. 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
  19. wait 2 seconds
  20. set block to air
  21. stopEffect "%player%"
  22. give player 16 diamond blocks
  23. send "&b&l+ &b16 Diamond Blocks" to player
  24. if {_randomizer} = 1:
  25. set {_reward} to "16 Emerald Blocks"
  26. set block to emerald block
  27. 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
  28. wait 2 seconds
  29. set block to air
  30. stopEffect "%player%"
  31. give player 16 emerald blocks
  32. send "&a&l+ &a16 Emerald Blocks" to player
  33. if {_randomizer} = 2:
  34. set {_reward} to "16 Iron Blocks"
  35. set block to iron block
  36. 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
  37. wait 2 seconds
  38. set block to air
  39. stopEffect "%player%"
  40. give player 16 iron blocks
  41. send "&r&l+ &r16 Iron Blocks" to player
Add Comment
Please, Sign In to add comment