Minecraft / Blogs

Vertical and Off-Axis Rotation with WorldEdit

  • 240
  • 141
  • comment74
  • playlist_add
  • share
  • more_horiz
avatar VoxFox
Level 47 : Master Fox
398
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

74 replies

1
05/18/2019 3:59 am
Level 1 : New Miner
NanoGlacactic
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
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 47 : Master Fox
VoxFox
Glad I could help :)
1
02/06/2018 9:53 pm
Level 67 : High Grandmaster Technomancer
alecdent
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 47 : Master Fox
VoxFox
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
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
Look at the ground and type //flip then //paste.
1
02/27/2017 2:23 pm
Level 17 : Journeyman Architect
MPC_
Thank you very much!
1
03/09/2017 3:31 am
Level 47 : Master Fox
VoxFox
np ^^
1
02/02/2017 11:34 pm
Level 32 : Artisan Architect
[zaclag]
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 47 : Master Fox
VoxFox
Glad I could help :)
1
01/07/2017 6:24 pm
Level 1 : New Crafter
Qmodo
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 47 : Master Fox
VoxFox
You should use what kellerbier said: x*pi/180
1
09/22/2016 8:44 am
Level 38 : Artisan Nerd
Kellerbier
its easier with: x degree = x*pi/180
1
09/22/2016 11:13 am
Level 47 : Master Fox
VoxFox
LOL I can't believe I never did that, woops. Good job :P
1
08/13/2016 11:29 pm
Level 3 : Apprentice Crafter
Nqz
How do you see your world edit selection like in the second photo?
1
08/14/2016 12:52 am
Level 47 : Master Fox
VoxFox
The mod linked in the tutorial
1
06/07/2016 12:28 pm
Level 52 : Grandmaster Architect
LNeoX
Thank you this is very useful =)
1
06/07/2016 4:46 pm
Level 47 : Master Fox
VoxFox
No problem!
1
05/07/2016 7:02 am
Level 30 : Artisan Artist
Laoconte
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 47 : Master Fox
VoxFox
Glad I could help :)
1
01/23/2016 2:06 pm
Level 1 : New Miner
Oquis
soo, "Function rotate not found"?
1
01/23/2016 5:43 pm
Level 47 : Master Fox
VoxFox
What did you type?
1
01/23/2016 6:40 pm
Level 1 : New Miner
Oquis
i put //deform rotate(138,-147,5*pi/6)
1
01/23/2016 7:27 pm
Level 47 : Master Fox
VoxFox
(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
OHH i feel so dumb now lol
are there sizes too big for it to deform?
1
01/23/2016 8:06 pm
Level 47 : Master Fox
VoxFox
If you mean your selection size, no
1
01/03/2016 9:02 pm
Level 27 : Expert Dragonborn
Legato
can u tell me if there is a formula for -10 and -5 degrees pls xP
1
01/06/2016 12:24 pm
Level 47 : Master Fox
VoxFox
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
omg thx fam <3
1
01/07/2016 6:49 pm
Level 47 : Master Fox
VoxFox
Np :)
1
11/16/2015 2:04 pm
Level 41 : Master Miner
pilsbaas
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 47 : Master Fox
VoxFox
Thank you :P
1
09/28/2015 6:21 pm
Level 49 : Master Architect
Tecno_
WORLD EDIT GOALS
thank you so much!
1
10/16/2015 2:34 pm
Level 47 : Master Fox
VoxFox
:) no problem
1
10/02/2015 6:47 pm
Level 27 : Expert Dragonborn
Legato
eww tecno
1
08/06/2015 8:57 pm
Level 29 : Expert Dragonborn
Dunn19
I have this tutorial bookmarked. Many thanks for making my rotating needs all the more easier!
1
08/06/2015 11:33 pm
Level 47 : Master Fox
VoxFox
Haha, no problem :)
1
07/18/2015 10:06 pm
Level 65 : High Grandmaster Pig
Aequotis
HNNNNNNNNNNNNNNNNNNNNNG
I legit come back every month as my memory is shite hurhur
<3
1
07/29/2015 12:27 pm
Level 22 : Expert Artist
Lepidus_
Me as well! x)
1
07/19/2015 9:31 pm
Level 47 : Master Fox
VoxFox
Haha, glad this can help you :P
1
07/21/2015 8:00 am
Level 65 : High Grandmaster Pig
Aequotis
*Puts up thumbs/trotters*
1
05/19/2015 6:49 pm
Level 53 : Grandmaster Cowboy
TeamPwnCraft
u are a god among men, thank u
1
05/20/2015 1:51 am
Level 47 : Master Fox
VoxFox
haha, no problem :D
1
03/24/2015 9:00 am
Level 32 : Artisan Toast
TheLazyScarecrow
Oh my god thank you, I always forgot how this command work ._.
1
03/24/2015 3:47 pm
Level 47 : Master Fox
VoxFox
haha, np :)
1
02/11/2015 8:38 pm
Level 36 : Artisan Network
somedaftmonkey
So useful mangy! :3
1
02/11/2015 8:54 pm
Level 47 : Master Fox
VoxFox
\o/
1
02/01/2015 11:56 pm
Level 2 : Apprentice Miner
crustymonkey
Thank you for this.
1
02/02/2015 12:42 am
Level 47 : Master Fox
VoxFox
no problem :)
1
01/13/2015 5:55 pm
Level 9 : Apprentice Scribe
wolv
oooh never knew WorldEdit used radians for angles, nice blog btw!
Planet Minecraft Logo

Website

© 2010 - 2020
www.planetminecraft.com

Welcome