1. Wiki
  2. /Blocks
  3. /minecraft:transformation

minecraft:transformation

Don't want to write this by hand? GodCraft sets minecraft:transformation for you with a switch.Get GodCraft

Overview

minecraft:transformation is a block component: it goes in the components object of a custom block. Moves, turns or resizes how the block looks, around the center of its space. Use it to face blocks in different directions with block states.

Fields

FieldTypeDefaultDescription
translationvec3[0,0,0]How far to move the block on x, y and z.
scalevec3[1,1,1]How much to stretch or shrink the block on each axis. 1 is normal size.
scale_pivotvec3[0,0,0]The point the block grows or shrinks around.
rotationvec3[0,0,0]Rotation on each axis in steps of 90 degrees, like [0, 90, 0].
rotation_pivotvec3[0,0,0]The point the block turns around.

Example

Inside the components object of BP/blocks/<name>.json (values are the defaults or placeholders):

BP/blocks/<name>.json
{
  "minecraft:transformation": {
    "translation": [
      0,
      0,
      0
    ],
    "scale": [
      1,
      1,
      1
    ],
    "scale_pivot": [
      0,
      0,
      0
    ],
    "rotation": [
      0,
      0,
      0
    ],
    "rotation_pivot": [
      0,
      0,
      0
    ]
  }
}

Blocks: Behavior pack

We use cookies to improve your experience and analyse site traffic. Learn more