- 74,523 views, 13 today
417
I haven't been doing much lately unfortunately, so I thought I'd make a blog about vertical rotation n' such while I try to mend my brain.
Alright so first off lets start with 90 degree rotations, what I will be rotating is this circle:

Before you can rotate, we need to select a perfect cube around the circle, for example the size of my selection ( //size ) is 51,51,51, all of the #'s should be the same.

After you have selected the object you want to rotate, determine if you want to rotate it west/east or south/north.
Now, simply type in this command:
west/east: //deform swap(x,y) note that //deform swap(y,x) would also work
south/north //deform swap(y,z) note that //deform swap(z,y) would also work

Okay now for off axis rotation, this is a little more tricky but if you know basic trigonometry you'll get it pretty fast.
I don't really feel like teaching how to get equations for angles but I'm sure there are many video tutorials on youtube. Either way here are some basic angles:
30 degrees = pi/6
45 degrees = pi/4
60 degrees = pi/3
90 degrees = pi/2
120 degrees = 2*pi/3
135 degrees = 3*pi/4
150 degrees = 5*pi/6
180 degrees = pi
210 degrees = 7*pi/6
225 degrees = 5*pi/4
240 degrees = 4*pi/3
270 degrees = 3*pi/2
300 degrees = 5*pi/3
315 degrees = 7*pi/4
330 degrees = 11*pi/6
360 degrees = 2*pi
Update: If you prefer to work with degrees, you should use:
x*pi/180
So for example, you might type //deform rotate(x,z,90*pi/180)
which would rotate your object by 90 degrees.
normal //deform rotate(x,z,<degrees>) Example: //deform rotate(x,z,3*pi/4)
west/east //deform rotate(x,y,<degrees>) Example: //deform rotate(x,y,5*pi/3)
south/north //deform rotate(y,z,<degrees>) Example: //deform rotate(y,z,5*pi/6)
Here is a filled in circle when the command //deform rotate(x,y,5*pi/3) was used:

Important idea to note is the degree variable is in radians, meaning if you type in 45 instead of pi/4, it will rotate the object 2578.3 degrees, 45*(180/pi) = 2578.3
Another note, remember to select a perfect cube around your object for //deform rotate as well!
Helpful commands:
//expand <#> [direction] - expands your selection in a given direction, if you do not specify the direction, it takes the direction you are facing.
//pos1 //pos2 - puts your first/ second point of selection to where your feet are
//outset <#> - expands your selection in all directions by a given amount
//inset <#> - contracts your selection in all directions by a given amount
//stack -s <#> - the "-s" will automagically update your selections position for you to be at the location of the stacked object
If there is anything that needs more clarification/could be explained better please let me know and I'll adjust as required when I have the time.
Last thing: these commands are not perfect, if you rotate your object off axis, there will be missing blocks that you must place in, however, rotations of 90 degrees on any axis will paste perfectly.
annnnnnnddddd good luck :)
recommended mod: WorldEdit CUI - lets you visually see your WE selections, makes things a lot easier :P

Alright so first off lets start with 90 degree rotations, what I will be rotating is this circle:

Before you can rotate, we need to select a perfect cube around the circle, for example the size of my selection ( //size ) is 51,51,51, all of the #'s should be the same.

After you have selected the object you want to rotate, determine if you want to rotate it west/east or south/north.
Now, simply type in this command:
west/east: //deform swap(x,y) note that //deform swap(y,x) would also work
south/north //deform swap(y,z) note that //deform swap(z,y) would also work

Okay now for off axis rotation, this is a little more tricky but if you know basic trigonometry you'll get it pretty fast.
I don't really feel like teaching how to get equations for angles but I'm sure there are many video tutorials on youtube. Either way here are some basic angles:
30 degrees = pi/6
45 degrees = pi/4
60 degrees = pi/3
90 degrees = pi/2
120 degrees = 2*pi/3
135 degrees = 3*pi/4
150 degrees = 5*pi/6
180 degrees = pi
210 degrees = 7*pi/6
225 degrees = 5*pi/4
240 degrees = 4*pi/3
270 degrees = 3*pi/2
300 degrees = 5*pi/3
315 degrees = 7*pi/4
330 degrees = 11*pi/6
360 degrees = 2*pi
Update: If you prefer to work with degrees, you should use:
x*pi/180
So for example, you might type //deform rotate(x,z,90*pi/180)
which would rotate your object by 90 degrees.
normal //deform rotate(x,z,<degrees>) Example: //deform rotate(x,z,3*pi/4)
west/east //deform rotate(x,y,<degrees>) Example: //deform rotate(x,y,5*pi/3)
south/north //deform rotate(y,z,<degrees>) Example: //deform rotate(y,z,5*pi/6)
Here is a filled in circle when the command //deform rotate(x,y,5*pi/3) was used:

Important idea to note is the degree variable is in radians, meaning if you type in 45 instead of pi/4, it will rotate the object 2578.3 degrees, 45*(180/pi) = 2578.3
Another note, remember to select a perfect cube around your object for //deform rotate as well!
Helpful commands:
//expand <#> [direction] - expands your selection in a given direction, if you do not specify the direction, it takes the direction you are facing.
//pos1 //pos2 - puts your first/ second point of selection to where your feet are
//outset <#> - expands your selection in all directions by a given amount
//inset <#> - contracts your selection in all directions by a given amount
//stack -s <#> - the "-s" will automagically update your selections position for you to be at the location of the stacked object
If there is anything that needs more clarification/could be explained better please let me know and I'll adjust as required when I have the time.
Last thing: these commands are not perfect, if you rotate your object off axis, there will be missing blocks that you must place in, however, rotations of 90 degrees on any axis will paste perfectly.
annnnnnnddddd good luck :)
recommended mod: WorldEdit CUI - lets you visually see your WE selections, makes things a lot easier :P

Credit | WorldEdit WECUI |
Tags |
1 Update Logs
Update #1 : by VoxFox 05/07/2016 5:18:47 amMay 7th, 2016
Added more useful commands
tools/tracking
3140886
6
vertical-and-off-axis-rotation-with-worldedit-3140886
Create an account or sign in to comment.
I tried to figure out why my build would not rotate entirely upside down and this explanation with //deform rotate(y,z,pi) instead of 180 degrees worked wonders!
The World Edit CUI is also a great tool suggestion! I needed that tool badly!
Example: //rotate 90 45 0
Also, nice to see you're still around ;) Hope you're doing well.
Thank you in advance.