Toggle (Effect) — Skript

Addon: Skript · Category: Effect · Since: 1.4, 2.12 (booleans)

Syntax

(open|turn on|activate) %blocks%

Description

Toggle the state of a block or boolean.

Examples

# use arrows to toggle switches, doors, etc.
on projectile hit:
	projectile is arrow
	toggle the block at the arrow
# With booleans
toggle gravity of player

View source