Used Tool/Used Hand/Used Equipment Slot (Expression) — Lusk
Addon: Lusk · Category: Expression · Since: 1.1, 1.1.1 (Optimized), 1.2 (Hand and Item, +1 Event, Fixes)
Syntax
[the] used (tool|[held] item|weapon)Description
Retrieves the used hand or item used in events where either hand is used. The first pattern returns the Slot (Item + Index) of the item in the used hand. - Note: using this is not the same as using `event-slot` or `event-item`, if either is available, use that The second pattern returns an Equipment Slot that's either `hand_slot` or `off_hand_slot`.
Supported Events: - on Right Click - on Item Consume - on Arm Swing - on Entity Shoot (different than 'on Shoot'!) - on Crossbow Load - on Place (includes 'on Block Place', 'on Hanging Place', and 'on Entity Place') - on Resurrect - on Player Fish - on Bucket Fill - on Bucket Empty - on Elytra Boost - on Player Harvest - on Can Build Check - on Player Shear Entity - on Player Leash Entity - on Player Unleash Entity - on Player Use Unknown Entity
Examples
broadcast event-used tool