Interface in @minecraft/server
A tripwire hook went on. Basalt lists no sources.
import type { TripWireTripAfterEvent } from '@minecraft/server';Subscribe to it with world.afterEvents.tripWireTrip.
Example
Section titled “Example”import { world, type TripWireTripAfterEvent } from '@minecraft/server';
world.afterEvents.tripWireTrip.subscribe((event: TripWireTripAfterEvent) => { console.log('tripWireTrip', event.block.typeId, event.dimension.id, event.isPowered);});import { world } from '@minecraft/server';
world.afterEvents.tripWireTrip.subscribe((event) => { console.log('tripWireTrip', event.block.typeId, event.dimension.id, event.isPowered);});Properties
Section titled “Properties”read-only
readonly block: Block;Types
dimension
Section titled “dimension”read-only
readonly dimension: Dimension;Types
isPowered
Section titled “isPowered”read-only
readonly isPowered: boolean;sources
Section titled “sources”read-only
readonly sources: Entity[];Types
Used by
Section titled “Used by”WorldAfterEvents.tripWireTrip, TripWireTripAfterEventSignal.subscribe, TripWireTripAfterEventSignal.unsubscribe