Skip to content

Direction ‐ Custom Data

Hydr4 edited this page Jul 24, 2025 · 1 revision

Direction Custom Data

The DIRECTION custom data allows you to control the direction a block is facing, specifically for blocks that can connect to other blocks in multiple directions (e.g., fences, glass panes, iron bars, vines). Each direction (DOWN, UP, NORTH, SOUTH, WEST, EAST) is a separate custom data type.

  • Name: DOWN, UP, NORTH, SOUTH, WEST, EAST (each is a separate custom data)
  • Type: Boolean
  • Applicable Materials: Blocks that implement MultipleFacing (e.g., FENCE, GLASS_PANE, IRON_BARS, VINE).

Usage

To set a direction custom data, you provide a boolean value (true or false).

  • true: The block will connect or face in the specified direction.
  • false: The block will not connect or face in the specified direction.

Example

To make a generated fence connect to the north and south:

/oregen set customdata my_fence NORTH true
/oregen set customdata my_fence SOUTH true

To make a generated vine extend downwards:

/oregen set customdata my_vine DOWN true
Clone this wiki locally