Clicked Block/Entity/Inventory/Slot (Expression) — Skript
Addon: Skript · Category: Expression · Since: 1.0, 2.2-dev35 (more clickable things)
Syntax
[the] (clicked [enchant[ment]] (button|option)|clicked (block|%-*itemtype/entitydata%)|clicked slot|clicked inventory|click (type|action)|inventory action)Description
The clicked block, entity, inventory, inventory slot, inventory click type or inventory action.
Examples
message "You clicked on a %type of clicked entity%!"
if the clicked block is a chest:
show the inventory of the clicked block to the player