Skip to content

Mason automata

Picture

Mason automata

Automata that harness power of mason villager, allows you to modify appearance of different blocks in world and inventory.

Mason automata also has mod support:

Obtaining

Feed mason villager to forged automata core with soul scrapper to obtain it.

Supported APIs

Extra methods

Function Returns Description
getAlternatives("inventory") table Returns list of possible alternatives for item in selected slot
getAlternatives("block", direction?: Direction) table Returns list of possible alternatives for block in world
chisel("inventory", target: string, limit?: number) Result Tries to chisel item in selected slot in inventory up to limit amount. Result will be put into inventory, extra items will be dropped in world
chisel("block", target: string, direction?: Direction) Result Tries to chisel block in world. If this is possible, block will be transformed in-place, if this is not possible result will be put into inventory, extra items will be dropped in world
rotate(rotation: Rotation, direction?: Direction) Result Tries to rotate block in-place
turnOver(direction?: Direction) Result Tries to turn over block in-place
getPossibleShapes(direction?: Direction) table Returns list of possible shapes for block
changeShape(shape: string, direction?: Direction) Result Tries to transform block to passed shape

Notes

Extra information about blocks

To help you understand position of block, mason automata will return extra information when using Look API

{
    "name": "Mossy Stone Brick Stairs",
    "tags": [
        "minecraft:stairs",
        "minecraft:mineable/pickaxe"
    ],
    "properties": {
        "facing": "north",
        "half": "bottom",
        "shape": "straight",
        "watterlogged": "false"
    }
}