Skip to content

Instantly share code, notes, and snippets.

@aarondandy
Last active January 27, 2017 18:55
Show Gist options
  • Save aarondandy/f6c04018b647b6e402c8690c0d94dac5 to your computer and use it in GitHub Desktop.
Save aarondandy/f6c04018b647b6e402c8690c0d94dac5 to your computer and use it in GitHub Desktop.
Twirling!
^!g::
CenterX:=616
CenterZ:=764
RadiusMin:=940
RadiusMax:=15000
RadiusStep:=64
CircumStep:=64
FlyHeight:=220
Delay:=8000
Radius:=RadiusMin
while Radius < RadiusMax
{
Theta:=0
Circum:=6.28*Radius
ThetaStep:=6.28/(Circum/CircumStep)
while Theta < 6.28
{
X:=CenterX+(Radius*cos(theta))
Z:=CenterZ+(Radius*sin(theta))
WinWaitActive Minecraft 1.7.10
Send t
Sleep, 100
Send /tp %X% %FlyHeight% %Z%
Sleep, 100
Send {ENTER}
Sleep, Delay
Theta+=ThetaStep
}
Radius+=RadiusStep
}
f12::
Pause
Suspend
return
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment