Minecraft Blogs / Tutorial

Vertical and Off-Axis Rotation with WorldEdit

  • 61,998 views, 17 today
  • 247
  • 147
  • 74
VoxFox avatar VoxFox
Level 48 : Master Fox
402
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:

undefined

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.

undefined

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

undefined

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:

undefined

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

undefined
CreditWorldEdit WECUI
Tags

1 Update Logs

Update #1 : 05/07/2016 5:18:47 amMay 7th, 2016

Added more useful commands

Create an account or sign in to comment.

1
05/18/2019 3:59 am
Level 1 : New Miner
NanoGlacactic
NanoGlacactic avatar
is there a way that i could rotate it from facing east to letting it face upwards?
1
03/03/2018 8:08 am
Level 1 : New Miner
Mystinion
Mystinion avatar
You... my friend... Are absolutely amazing! I registered to give you my first diamond.

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!
1
03/24/2018 11:55 pm
Level 48 : Master Fox
VoxFox
VoxFox avatar
Glad I could help :)
1
02/06/2018 9:53 pm
Level 68 : High Grandmaster Technomancer
alecdent
alecdent avatar
future reference, you can make any sized selection and //rotate (x) (y) (z)

Example: //rotate 90 45 0
1
03/24/2018 11:55 pm
Level 48 : Master Fox
VoxFox
VoxFox avatar
Yep! it's great that worldedit added it :) However I find deform rotate is frequently more accurate and has less holes - So if that's important for the object you're rotating (for example, an already off-axis detailed building), then I'd advise using deform rotate instead.

Also, nice to see you're still around ;) Hope you're doing well.
1
12/29/2017 7:59 pm
Level 1 : New Crafter
Charafied
Charafied avatar
Does anyone know how to flip a copy upside down?
Thank you in advance.
1
12/31/2017 4:36 am
Level 1 : New Network
ShadyRaptor
ShadyRaptor avatar
Look at the ground and type //flip then //paste.
1
02/27/2017 2:23 pm
Level 19 : Journeyman Architect
MPC_
MPC_ avatar
Thank you very much!
1
03/09/2017 3:31 am
Level 48 : Master Fox
VoxFox
VoxFox avatar
np ^^
1
02/02/2017 11:34 pm
Level 34 : Artisan Architect
[zaclag]
[zaclag] avatar
jesus christ these are so hard to memorize. so many thanks to you for putting this here as a reference
1
02/03/2017 1:20 am
Level 48 : Master Fox
VoxFox
VoxFox avatar
Glad I could help :)
1
01/07/2017 6:24 pm
Level 1 : New Crafter
Qmodo
Qmodo avatar
Heya what's the formula you use to get the "11*pi/6" or whatever the numbers are? just so i can choose other angles from the ones listed!
1
01/24/2017 6:22 pm
Level 48 : Master Fox
VoxFox
VoxFox avatar
You should use what kellerbier said: x*pi/180
1
09/22/2016 8:44 am
Level 39 : Artisan Nerd
Kellerbier
Kellerbier avatar
its easier with: x degree = x*pi/180
1
09/22/2016 11:13 am
Level 48 : Master Fox
VoxFox
VoxFox avatar
LOL I can't believe I never did that, woops. Good job :P
1
08/13/2016 11:29 pm
Level 4 : Apprentice Crafter
Nqz
Nqz avatar
How do you see your world edit selection like in the second photo?
1
08/14/2016 12:52 am
Level 48 : Master Fox
VoxFox
VoxFox avatar
The mod linked in the tutorial
1
06/07/2016 12:28 pm
Level 54 : Grandmaster Architect
LNeoX
LNeoX avatar
Thank you this is very useful =)
1
06/07/2016 4:46 pm
Level 48 : Master Fox
VoxFox
VoxFox avatar
No problem!
1
05/07/2016 7:02 am
Level 32 : Artisan Artist
Laoconte
Laoconte avatar
Wow, thank you. Very helpful.
I didn`t know about WorldEdit CUI, now all will be easier..
1
05/07/2016 3:15 pm
Level 48 : Master Fox
VoxFox
VoxFox avatar
Glad I could help :)
1
01/23/2016 2:06 pm
Level 1 : New Miner
Oquis
Oquis avatar
soo, "Function rotate not found"?
1
01/23/2016 5:43 pm
Level 48 : Master Fox
VoxFox
VoxFox avatar
What did you type?
1
01/23/2016 6:40 pm
Level 1 : New Miner
Oquis
Oquis avatar
i put //deform rotate(138,-147,5*pi/6)
1
01/23/2016 7:27 pm
Level 48 : Master Fox
VoxFox
VoxFox avatar
(138,-147) those two parameters are not supposed to be numbers, they're the axes you're rotating on
1
01/23/2016 7:47 pm
Level 1 : New Miner
Oquis
Oquis avatar
OHH i feel so dumb now lol
are there sizes too big for it to deform?
1
01/23/2016 8:06 pm
Level 48 : Master Fox
VoxFox
VoxFox avatar
If you mean your selection size, no
1
01/03/2016 9:02 pm
Level 27 : Expert Dragonborn
Legato
Legato avatar
can u tell me if there is a formula for -10 and -5 degrees pls xP
1
01/06/2016 12:24 pm
Level 48 : Master Fox
VoxFox
VoxFox avatar
pi/6 = 30*
pi/18 = 10*
pi/36 = 5*

(10x35 = 350, 5x71 = 355)

35*pi/18 = 350*
71*pi/36 = 355*
1
01/07/2016 2:50 pm
Level 27 : Expert Dragonborn
Legato
Legato avatar
omg thx fam <3
1
01/07/2016 6:49 pm
Level 48 : Master Fox
VoxFox
VoxFox avatar
Np :)
1
11/16/2015 2:04 pm
Level 42 : Master Miner
pilsbaas
pilsbaas avatar
Thanks again Mangy, using it quite often nowdays. Saves a bunch of time! <3
 Enjoy 100th diamond
1
11/16/2015 10:38 pm
Level 48 : Master Fox
VoxFox
VoxFox avatar
Thank you :P
1
09/28/2015 6:21 pm
Level 50 : Grandmaster Architect
Tecno_
Tecno_ avatar
WORLD EDIT GOALS
thank you so much!
1
10/16/2015 2:34 pm
Level 48 : Master Fox
VoxFox
VoxFox avatar
:) no problem
1
10/02/2015 6:47 pm
Level 27 : Expert Dragonborn
Legato
Legato avatar
eww tecno
1
08/06/2015 8:57 pm
Level 31 : Artisan Dragonborn
Dunn19
Dunn19 avatar
I have this tutorial bookmarked. Many thanks for making my rotating needs all the more easier!
1
08/06/2015 11:33 pm
Level 48 : Master Fox
VoxFox
VoxFox avatar
Haha, no problem :)
1
07/18/2015 10:06 pm
Level 69 : High Grandmaster Pig
Aequotis
Aequotis avatar
HNNNNNNNNNNNNNNNNNNNNNG
I legit come back every month as my memory is shite hurhur
<3
1
07/29/2015 12:27 pm
Level 23 : Expert Artist
Lepidus_
Lepidus_ avatar
Me as well! x)
1
07/19/2015 9:31 pm
Level 48 : Master Fox
VoxFox
VoxFox avatar
Haha, glad this can help you :P
1
07/21/2015 8:00 am
Level 69 : High Grandmaster Pig
Aequotis
Aequotis avatar
*Puts up thumbs/trotters*
1
05/19/2015 6:49 pm
Level 54 : Grandmaster Cowboy
TeamPwnCraft
TeamPwnCraft avatar
u are a god among men, thank u
1
05/20/2015 1:51 am
Level 48 : Master Fox
VoxFox
VoxFox avatar
haha, no problem :D
1
03/24/2015 9:00 am
Level 33 : Artisan Toast
TheLazyScarecrow
TheLazyScarecrow avatar
Oh my god thank you, I always forgot how this command work ._.
1
03/24/2015 3:47 pm
Level 48 : Master Fox
VoxFox
VoxFox avatar
haha, np :)
1
02/11/2015 8:38 pm
Level 37 : Artisan Network
somedaftmonkey
somedaftmonkey avatar
So useful mangy! :3
1
02/11/2015 8:54 pm
Level 48 : Master Fox
VoxFox
VoxFox avatar
\o/
1
02/01/2015 11:56 pm
Level 2 : Apprentice Miner
crustymonkey
crustymonkey avatar
Thank you for this.
1
02/02/2015 12:42 am
Level 48 : Master Fox
VoxFox
VoxFox avatar
no problem :)
1
01/13/2015 5:55 pm
Level 10 : Journeyman Scribe
wolv
wolv avatar
oooh never knew WorldEdit used radians for angles, nice blog btw!
Planet Minecraft Logo

Website

© 2010 - 2021
www.planetminecraft.com

Welcome