Last Interaction Date (Expression) — Skript

Addon: Skript · Category: Expression · Since: 2.14

Syntax

[the] last (date|time)[s] [that|when] %entities% (were|was) (attacked|interacted with|clicked [on])

Description

Returns the date of the last attack (left click), or interaction (right click) on an interaction entity Using 'clicked on' will return the latest attack or interaction, whichever was more recent.

Examples

if the last time {_interaction} was clicked < 5 seconds ago

View source