Sign Text (Expression) — Skript
Addon: Skript · Category: Expression · Since: 1.3, 2.17 (sign side support)
Syntax
line %integer% [of [the] (front|back) [side]] [of %block%]Description
A line of text on a sign. Can be changed, but note that there is a 16 character limit per line. If a sign side is not specified, the front side will be used by default, unless in a sign change event and a block is not explicitly specified.
Examples
on right click:
clicked block is tagged as "minecraft:all_signs"
if line 2 of the clicked block is "[Heal]":
heal the player
on sign change:
any of the lines contain "bad word"
cancel the event
send "<red>You may not write profanity on signs!" to the player