Block - Liquid Level (Expression) — Lusk
Addon: Lusk · Category: Expression · Since: 1.3.2
Syntax
[the] [ (max|min)[imum]] block [liquid] level of %blocks/itemtypes/blockdatas/blockstates%Description
Represents the maximum, minimum or current amount of fluid contained within a block, either by itself or inside a cauldron. Minimum Level requires Paper and 1.18.2.
This expression includes liquid blocks, cauldron and composters.
For water and lava blocks the levels have special meanings: a level of 0 corresponds to a source block, 1-7 regular fluid heights, and 8-15 to "falling" fluids. All falling fluids have the same behaviour, but the level corresponds to that of the block above them, equal to this. level - 8
**Note that counterintuitively, an adjusted level of 1 is the highest level, whilst 7 is the lowest.**
May not be higher than the max level.
Can be set, added to, removed from and reset. Reset requires Paper and 1.18.2.
Examples
broadcast max block level of event-block
set block level of {_block} to 3