Advertisement
TEKITOU-123

アイスシールド(旧)

Apr 20th, 2019
206
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.25 KB | None | 0 0
  1. on rightclick holding a enchanted book:
  2. if name of player's tool is "&3&lアイスシールド":
  3. player's level progress is larger than 0.07
  4. loop 20 times:
  5. spawn falling block of packed ice block at player's head
  6. push last spawned falling block forwards at speed random number from 0.01 to 0.5
  7. push last spawned falling block backwards at speed random number from 0.01 to 0.5
  8. push last spawned falling block to the left at speed random number from 0.01 to 0.5
  9. push last spawned falling block to the right at speed random number from 0.01 to 0.5
  10. push last spawned falling block upwards at speed random number from 0.1 to 0.5
  11. push last spawned falling block under at speed random number from 0.01 and 0.1
  12. show 100 Snow Shovel particles at player offset by 2.5, 2.5, 2.5 with speed 0.3
  13. show 100 Snowball particles at player offset by 2.5, 2.5, 2.5 with speed 0.3
  14. play sound "entity.experience_orb.pickup" with volume 10 and pitch 1 at player for players in radius 10 of player
  15. play sound "entity.player.levelup" with volume 10 and pitch 1 at player for players in radius 10 of player
  16. reduce the player's level progress by 0.05
  17. on block stop falling:
  18. cancel event
  19. on item spawn:
  20. if event-item is packed ice block:
  21. cancel event
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement