Advertisement
TEKITOU-123

アイスシールド(新)

Apr 21st, 2019
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.52 KB | None | 0 0
  1. on rightclick holding a enchanted book:
  2. if name of player's tool is "&3&lアイスシールド":
  3. {%player%::c} is not set
  4. {AIS::%player%::*} is not set
  5. player's level progress is larger than 0.05
  6. loop blocks in radius 3 around player:
  7. if loop-block is air:
  8. add loop-block to {AIS::%player%::*}
  9. loop blocks in radius 2 around player:
  10. subtract loop-block from {AIS::%player%::*}
  11. loop {AIS::%player%::*}:
  12. set block at loop-value to ice
  13. play sound "entity.irongolem.hurt" with volume 10 and pitch 1 at player for players in radius 10 of player
  14. reduce the player's level progress by 0.05
  15. wait 3 ticks
  16. loop 5 times:
  17. if player is sneaking:
  18. if player's level progress is more than 0.03:
  19. reduce the player's level progress by 0.03
  20. wait second
  21. else:
  22. loop {AIS::%player%::*}:
  23. set block at loop-value-2 to air
  24. play sound "entity.irongolem.death" with volume 10 and pitch 1 at player for players in radius 10 of player
  25. delete {AIS::%player%::*}
  26. stop loop
  27. loop {AIS::%player%::*}:
  28. set block at loop-value to air
  29. {AIS::%player%::*} is set
  30. play sound "entity.irongolem.death" with volume 10 and pitch 1 at player for players in radius 10 of player
  31. delete {AIS::%player%::*}
  32. on sneak toggle:
  33. if {AIS::%player%::*} is set:
  34. loop {AIS::%player%::*}:
  35. set block at loop-value to air
  36. play sound "entity.irongolem.death" with volume 10 and pitch 1 at player for players in radius 10 of player
  37. delete {AIS::%player%::*}
  38. On Fade:
  39. cancel event
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement