Type@ember/types
types.UseEvent
A player right-clicking with an item type, in the air or on a block. spend takes items from the slot the use came from, if that slot still holds the stack; it returns false otherwise.
Fields
useEvent.block: vector?The clicked block's position, or nil for a use in the air.
Methods
useEvent:spend(count: number?) -> booleanTakes count items, one if nil, from the slot the use came from; returns whether it could.
Range: count: 1..99