メインコンテンツまでスキップ

Ghost Toggle Visibility

Toggle Ghost Visibility

Toggles ghost visibility for the triggering player. When executed, flips the player's ghost visibility state and sends a feedback message using MiniMessage formatting. Can be triggered by any Typewriter trigger (event, action chain, etc.) or called from other extensions via the TriggerableEntry system.

フィールド

フィールド型デフォルト説明
showMessageString—Message shown when ghosts become visible. Supports MiniMessage format. Leave empty for default.
hideMessageString—Message shown when ghosts become hidden. Supports MiniMessage format. Leave empty for default.
TypeWriter 共通フィールド(criteria, modifiers, triggers)
フィールド型デフォルト説明
criteriaList<Criteria>empty—
modifiersList<Modifier>empty—
triggersList<Ref<TriggerableEntry>>empty—

How to use it​

The action flips the ghost visibility of the player who triggers it, saves the new value in the Ghost Visibility Fact fact and sends a message. showMessage is sent when ghosts become visible and hideMessage when they become hidden, both in MiniMessage. Leave them empty for the built-in messages.

It works as a toggle only: to force a value, add a criteria on the Ghost Visibility fact so the action runs only when the state differs. The action does not check the typewriter.ghost.use permission, unlike /ghost toggle.