Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- execute as @a store result score @s rotationOne run data get entity @s Rotation[0] 0.036
- execute as @a store result score @s rotationTwo run data get entity @s Rotation[1] 0.036
- execute as @a unless score @s rotationOne = min global store success score @s looksLeft if score @s lastRotationOne > @s rotationOne
- execute as @a if score @s rotationOne = min global store success score @s looksLeft unless score max global = @s lastRotationOne unless score min global = @s lastRotationOne
- execute as @a if score @s rotationOne = max global store success score @s looksLeft if score min global = @s lastRotationOne
- execute as @a unless score @s rotationOne = max global store success score @s looksRight if score @s lastRotationOne < @s rotationOne
- execute as @a if score @s rotationOne = max global store success score @s looksRight unless score min global = @s lastRotationOne unless score max global = @s lastRotationOne
- execute as @a if score @s rotationOne = min global store success score @s looksRight if score max global = @s lastRotationOne
- execute as @a store success score @s looksUp if score @s lastRotationTwo > @s rotationTwo
- execute as @a store success score @s looksDown if score @s lastRotationTwo < @s rotationTwo
- execute as @a store success score @s directionChanged unless score @s rotationOne = @s lastRotationOne
- execute as @a[scores={directionChanged=0}] store success score @s directionChanged unless score @s rotationTwo = @s lastRotationTwo
- execute as @a run scoreboard players operation @s lastRotationOne = @s rotationOne
- execute as @a run scoreboard players operation @s lastRotationTwo = @s rotationTwo
- scoreboard players remove @a timer 1
- execute as @a[scores={directionChanged=1}] run scoreboard players operation @s timer = timerTime global
- execute as @a[scores={timer=..0}] run scoreboard players set @s directionChanged 1
- execute as @a[scores={timer=..0}] run scoreboard players operation @s timer = timerTime global
- execute as @a[scores={directionChanged=1}] run scoreboard players set @s lastDirection 0
- execute as @a if score @s looksLeft matches 1 run scoreboard players operation @s lastDirection += left global
- execute as @a if score @s looksRight matches 1 run scoreboard players operation @s lastDirection += right global
- execute as @a if score @s looksUp matches 1 run scoreboard players operation @s lastDirection += up global
- execute as @a if score @s looksDown matches 1 run scoreboard players operation @s lastDirection += down global
- execute as @a if score @s lastDirection = @s stepFive run scoreboard players set @s directionChanged 0
- execute as @a[scores={directionChanged=1}] run scoreboard players operation @s stepOne = @s stepTwo
- execute as @a[scores={directionChanged=1}] run scoreboard players operation @s stepTwo = @s stepThree
- execute as @a[scores={directionChanged=1}] run scoreboard players operation @s stepThree = @s stepFour
- execute as @a[scores={directionChanged=1}] run scoreboard players operation @s stepFour = @s stepFive
- execute as @a[scores={directionChanged=1}] run scoreboard players operation @s stepFive = @s lastDirection
- execute as @a[scores={directionChanged=1}] if score @s stepOne = left global if score @s stepTwo = right global if score @s stepThree matches 0 if score @s stepFour = up global if score @s stepFive = down global run <skillOne>
- execute as @a[scores={directionChanged=1}] if score @s stepThree = up global if score @s stepFour = down global if score @s stepFive = up global run <skillTwo>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement