Skip to content
Frinn38 edited this page Jan 29, 2022 · 1 revision

You can specify a custom shape for the machine block.

The machine shape is used for collisions with entities and particles, as well as to define the clickable area of the block (for using or mining).

The default machine shape is 1 full block.

A custom machine shape souldn't be bigger than 1 block.

The machine shape won't rotate depending of the machine orientation (WIP) so it may not match the block model if this one rotate.

There are 2 way of defining a custom machine shape :

Mimic the shape of another block

Use :

"shape": "mod:block[property1=value1,property2=value2]"

to mimic the shape of another block, the [] is used to specify block properties and can be omited. Example :

"shape": "minecraft:repeater"

The machine shape will be the same as the vanilla repeater.

NOTE : Not every block shape can be used, for some advanced blocks that don't have a consistent shape, defined by their block properties it just won't work.

Making the shape yourself

You can specify an array of box, defined by their min and max values on the 3 axis. The resulting shape will be the addition of all these box.

A box is defined like this : [minX, minY, minZ, maxX, maxY, maxZ]

All the box values must be between 0.0 and 1.0, a full block box is [1, 1, 1, 1, 1, 1].

Example : A lower slab shape.

"shape": [[0.0, 0.0, 0.0, 1.0, 0.5, 1.0]]
Clone this wiki locally