Type@ember/types
types.BlockUseEvent
A player right-clicking a block of a custom type. spend takes items from the slot the click came from, if that slot still holds the stack; it returns false otherwise, or with an empty hand.
Fields
The stack in the clicking hand, or nil when it was empty.
blockUseEvent.position: vectorThe clicked block's position.
Methods
blockUseEvent:spend(count: number?) -> booleanTakes count items, one if nil, from the slot the click came from; returns whether it could.
Range: count: 1..99