Display Brightness (Expression) — Skript

Addon: Skript · Category: Expression · Since: 2.10

Syntax

[the] [block|sky] (light [level]|brightness) override[s] of %displays%

Description

Returns or changes the brightness override of <a href='#display'>displays</a>. Unmodified displays will not have a brightness override value set. Resetting or deleting this value will remove the override. Use the 'block' or 'sky' options to get/change specific values or get both values as a list by using neither option. NOTE: setting only one of the sky/block light overrides of a display without an existing override will set both sky and block light to the given value. Make sure to set both block and sky levels to your desired values for the best results. Likewise, you can only clear the brightness override, you cannot clear/reset the sky/block values individually.

Examples

set sky light override of the last spawned text display to 7
subtract 3 from the block light level override of the last spawned text display
if sky light level override of {_display} is 5:
	clear brightness override of {_display}

View source