Advertisement
doru90

Untitled

Nov 19th, 2021 (edited)
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.21 KB | None | 0 0
  1. #壁走り
  2. Every tick in "world":
  3. loop all players:
  4. loop-player's gamemode is not creative:
  5. loop-player is sneaking
  6. add 1 to {_a.%loop-player%} if block 0.40 meter horizontally to the left of the loop-player isn't air
  7. add 1 to {_a.%loop-player%} if block 0.40 meter horizontally to the right of the loop-player isn't air
  8. add 1 to {_a.%loop-player%} if block at location 1 meter above and 0.40 meter horizontally to the left of the loop-player isn't air
  9. add 1 to {_a.%loop-player%} if block at location 1 meter above and 0.40 meter horizontally to the right of the loop-player isn't air
  10. if {_a.%loop-player%} is more than or equal to 1:
  11. push loop-player horizontal forwards at speed 0.2
  12. push loop-player upwards at speed 0.1
  13. set loop-player's flight state to true
  14. execute console command "/execute %loop-player% ~ ~ ~ playsound minecraft:entity.enderdragon.flap ambient @a ~ ~ ~ 1 2"
  15.  
  16. #壁キック
  17. Every 5 tick in "world":
  18. loop all players:
  19. loop-player's gamemode is not creative:
  20. loop-player is sneaking
  21. if block at location 1 meter above and in front of loop-player isn't air:
  22. push loop-player horizontal forwards at speed -1
  23. push loop-player upwards at speed 1.5
  24. set loop-player's flight state to true
  25. execute console command "/execute %loop-player% ~ ~ ~ playsound minecraft:block.wooden_door.open ambient @a ~ ~ ~ 1 0"
  26.  
  27. on flight toggle:
  28. player's gamemode is not creative:
  29. wait a tick
  30. set player's flight state to false
  31. execute console command "/execute %player% ~ ~ ~ playsound minecraft:entity.enderdragon.flap ambient @a ~ ~ ~ 1 2"
  32. execute console command "/execute %player% ~ ~ ~ particle cloud ~ ~1 ~ 0.5 0.5 0.5 0.6 60 force"
  33. push player upwards at speed 1
  34. push player horizontal forwards at speed 0.8
  35. set {airstep,%player%} to 1
  36.  
  37. on toggling sneak:
  38. if {airstep,%event-player%} is more than or equal to 1:
  39. event-player is sneaking
  40. push the player forwards at speed 1
  41. execute console command "/execute %player% ~ ~ ~ particle crit ~ ~1 ~ 0.5 0.5 0.5 0.6 60 force"
  42. set {airstep,%event-player%} to 0
  43.  
  44. Every 1 tick in "world":
  45. loop all players:
  46. if loop-player is on ground:
  47. set loop-player's flight state to true
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement