Skip to main content

Module beacon

Module beacon 

Source
Expand description

Beacon block entity implementation.

Beacons track the pyramid level and configured effects. The beam is re-scanned incrementally, BLOCKS_CHECK_PER_TICK blocks per tick, and every 80 game ticks the supporting pyramid is re-checked and the configured status effects are applied to nearby players while the beam is unobstructed.

StructsΒ§

BeaconBlockEntity
Beacon block entity.
BeaconState
Mutable beacon state shared with the menu’s data slots.
BeamSection
A contiguous run of beam blocks sharing one tint.

ConstantsΒ§

BASE_EFFECT_RANGE πŸ”’
BEACON_EFFECTS πŸ”’
The four valid beacon effects, indexed by pyramid level tier.
BEACON_TICK_INTERVAL πŸ”’
BLOCKS_CHECK_PER_TICK πŸ”’
Blocks of beam column scanned per tick.
EFFECT_RANGE_PER_LEVEL πŸ”’
MAX_LEVELS πŸ”’