Portal Cooldown (Expression) — Skript

Addon: Skript · Category: Expression · Since: 2.8.0

Syntax

[the] portal cooldown of %entities%

Description

The amount of time before an entity can use a portal. By default, it is 15 seconds after exiting a nether portal or end gateway. Players in survival/adventure get a cooldown of 0.5 seconds, while those in creative get no cooldown. Resetting will set the cooldown back to the default 15 seconds for non-player entities and 0.5 seconds for players.

Examples

on portal:
	wait 1 tick
	set portal cooldown of event-entity to 5 seconds

View source