Skip to content

Get Block Info

The Get Block Info node retrieves detailed properties about the block at a target location—including its material type, orientation/facing direction, shape, half, and Redstone power level—and saves them to custom variables in the requested scope.

Configuration

  • Location:
    • At Player: Targets the block at the triggering player's feet.
    • At Coordinates: Targets a block at specific coordinates.
  • Coordinate: (Required when Location is Coordinates) A unified location field. It supports editing X, Y, and Z coordinates and the World name in Manual mode (with World in its own dedicated row). Alternatively, toggle to Compact mode to paste or type a single-line location string in the (x,y,z),world format (e.g. (100,64,-250),world or a variable like %player.location%). Both modes support placeholder insertions using the Braces button.
  • Variable Scope: The scope (Local, Player, or Global) to save the output variables in.
  • Save Material To: (Optional) Variable name to save the block material name (e.g., STONE or OAK_STAIRS). Keep empty to skip.
  • Save Orientation To: (Optional) Variable name to save the facing direction (NORTH, EAST, SOUTH, WEST, UP, DOWN, axis name, or NONE). Keep empty to skip.
  • Save Bisected Half To: (Optional) Variable name to save the bisected half (TOP, BOTTOM, or NONE). Keep empty to skip.
  • Save Stairs Shape To: (Optional) Variable name to save the stairs shape (STRAIGHT, INNER_LEFT, INNER_RIGHT, OUTER_LEFT, OUTER_RIGHT, or NONE). Keep empty to skip.
  • Save Redstone Power To: (Optional) Variable name to save the redstone analogue power level (0 to 15). Keep empty to skip.

Examples

1. Checking Redstone Power

Queries the redstone wire or block at (100,64,100),world and saves its current Redstone power level into a local variable named lamp_power.

  • Location: At Coordinates
  • Coordinate: X=100, Y=64, Z=100 (World = world) or single-line (100,64,100),world
  • Variable Scope: Local Scope
  • Save Redstone Power To: lamp_power

2. Inspecting Stair Orientations

Queries the stairs block at a player's current feet position to find out which way they are facing and their shape, saving the results in player-scope variables.

  • Location: At Player
  • Variable Scope: Player Scope
  • Save Material To: stair_material
  • Save Orientation To: stair_facing
  • Save Stairs Shape To: stair_shape

Oasis Admin Editor Documentation