Skip to content

Directional blocks and auto rotate

UnknownShadow200 edited this page Sep 25, 2018 · 13 revisions

Blocks in ClassiCube have no metadata for storing their rotation or direction.
For example, if you have a Stone slab block and want to be able to place an upside-down stone slab, you will need to make a separate new Upside-down stone slab block.
Another example, if you have a Sideways stone slab north block that is north-facing, you will need to make separate blocks that face south, west, and east.

However, after you've added all the variants, you may find it problematic remembering which directional variant to place, and end up placing the wrong one half the time.

This is where "Auto-Rotate" comes in (Turned on or off by pressing F6 in-game). If you're placing a block with other defined rotations, Auto-Rotate automatically picks the correct block rotation for you to place.

For Auto-Rotate to work, you must name your blocks with special endings/suffixes that are detailed below:


Directional endings

  • -N Min (0, 0, 0) : Max (16, 16, 8)
  • -S Min (0, 0, 8) : Max (16, 16, 16)
  • -W Min (0, 0, 0) : Max (8, 16, 16)
  • -E Min (8, 0, 0) : Max (16, 16, 16)

These suffixes stand for North, South, West and East, and should come after the block name without a space. For example: Wood wall-N, Wood wall-S, Wood wall-W, Wood wall-E.

N/S/E/W

If you make a block such as a chest, remember that the Chest-N should have its front facing south. This way it will face you when you place it.

It should be noted that you may press F7 in-game to see the red and blue line. The blue line always points south from your feet.


Corner endings

  • -NW Min (0, 0, 0) : Max (8, 16, 8)
  • -NE Min (8, 0, 0) : Max (16, 16, 8)
  • -SW Min (0, 0, 8) : Max (8, 16, 16)
  • -SE Min (8, 0, 8) : Max (16, 16, 16)

These suffixes stand for Northwest, Northeast, Southwest and Southeast.

NW/NE/SW/SE


Slab endings

  • -D Min (0, 0, 0) : Max (16, 8, 16)
  • -U Min (0, 8, 0) : Max (16, 16, 16)

These suffixes stand for Down and Up.

D/U


Pillar/Pole endings

  • -NS Min (4, 4, 0) : Max (12, 12, 16)
  • -WE Min (0, 4, 4) : Max (16, 12, 12)
  • -UD Min (4, 0, 4) : Max (12, 16, 12)

These suffixes stand for North/South, West/East and Up/Down

NS/WE/UD

Note that if you do not include a "-UD" variant, auto-rotate will determine which block to place based on the direction you're looking when you place it. This makes it useful for fence or centered wall type blocks:

NS/WE