Entity Visibility (Effect) — Skript

Addon: Skript · Category: Effect · Since: 2.3, 2.10 (entities)

Syntax

hide %entities% [(from|for) %-players%]

Description

Change visibility of the given entities for the given players. If no players are given, will hide the entities from all online players.

When reveal is used in combination of the <a href='#ExprHiddenPlayers'>hidden players</a> expression and the viewers are not specified, this will default it to the given player in the hidden players expression.

Note: all previously hidden entities (including players) will be visible when a player leaves and rejoins.

Examples

on spawn:
	if event-entity is a chicken:
		hide event-entity
reveal hidden players of players

View source