Type@ember/blocks
blocks.BlockType
A block type or block tag; S is its block state and D the data its data schema declares, or nil without one. While used has a handler, a right-click on the block is the block's: the held item's used does not fire for it, unless the player is sneaking with an item in hand.
Signals
blockType.broken: types.Signal<types.BreakEvent>fires after a player breaks a block of the type
blockType.placed: types.Signal<types.PlaceEvent>fires after a player places a block of the type
fires for a tick world.scheduleTick set, if a block of the type still stands there, with that block and its data
blockType.used: types.Signal<types.BlockUseEvent>fires after a player right-clicks a block of the type
Fields
blockType.id: stringthe block id, or the tag's id