Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #壁走り
- Every tick in "world":
- loop all players:
- loop-player's gamemode is not creative:
- loop-player is sneaking
- add 1 to {_a.%loop-player%} if block 0.40 meter horizontally to the left of the loop-player isn't air
- add 1 to {_a.%loop-player%} if block 0.40 meter horizontally to the right of the loop-player isn't air
- 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
- 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
- if {_a.%loop-player%} is more than or equal to 1:
- push loop-player horizontal forwards at speed 0.2
- push loop-player upwards at speed 0.1
- set loop-player's flight state to true
- execute console command "/execute %loop-player% ~ ~ ~ playsound minecraft:entity.enderdragon.flap ambient @a ~ ~ ~ 1 2"
- #壁キック
- Every 5 tick in "world":
- loop all players:
- loop-player's gamemode is not creative:
- loop-player is sneaking
- if block at location 1 meter above and in front of loop-player isn't air:
- push loop-player horizontal forwards at speed -1
- push loop-player upwards at speed 1.5
- set loop-player's flight state to true
- execute console command "/execute %loop-player% ~ ~ ~ playsound minecraft:block.wooden_door.open ambient @a ~ ~ ~ 1 0"
- on flight toggle:
- player's gamemode is not creative:
- wait a tick
- set player's flight state to false
- execute console command "/execute %player% ~ ~ ~ playsound minecraft:entity.enderdragon.flap ambient @a ~ ~ ~ 1 2"
- execute console command "/execute %player% ~ ~ ~ particle cloud ~ ~1 ~ 0.5 0.5 0.5 0.6 60 force"
- push player upwards at speed 1
- push player horizontal forwards at speed 0.8
- set {airstep,%player%} to 1
- on toggling sneak:
- if {airstep,%event-player%} is more than or equal to 1:
- event-player is sneaking
- push the player forwards at speed 1
- execute console command "/execute %player% ~ ~ ~ particle crit ~ ~1 ~ 0.5 0.5 0.5 0.6 60 force"
- set {airstep,%event-player%} to 0
- Every 1 tick in "world":
- loop all players:
- if loop-player is on ground:
- set loop-player's flight state to true
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement