Unlocks

Unlock can be defined in JSON files within data/tetra/unlocks/ in your datapack.

Schematic & crafting effect unlock definition

Allows for blocks to unlock schematics and crafting effects without having to implement tetra interfaces. Uses the 'block' predicate to test blocks within 'bounds' of a workbench to determine what should be unlocked.

Format:
schematicsoptional
array[
Resource location
]

The schematics that are made available by this unlock.

effectsoptional
array[
Resource location
]

The crafting effects that are made available by this unlock.

blockProperty matcher

Used to test for a block that must be present near the workbench for this unlock to be available.

boundsoptional
array[
number
]

The bounds in which a workbench can look for a block to match against this unlock. The bounds are defined as [minX, minY, minZ, maxX, maxY, maxZ].