Guide 1 Docs 2 Reference 3

Function of BlockSpec

blockSpec.on_neighbour

A neighbour changed; from is its position and announced the block name the notifier announced itself as.

blockSpec.on_neighbour((block: BlockAt, from: Vec3, announced: string, base: (...any) -> any) -> ()) → ?

Parameters

(blockBlockAt, from: Vec3, announced: string, base: (...any) -> any) -> ()required

Returns

?