Anvil GUI - Open (Effect) — Lusk

Addon: Lusk · Category: Effect · Since: 1.3

Syntax

[force] open [lusk] anvil[(-| )gui] %anvilguiinventory% to %players%

Description

Opens an anvil GUI to one or more players. *NOTES*: - Anvil GUIs are always opened 1 tick later. - You can only open an anvil GUI for a player if the player is not already viewing another (or this) anvil GUI. - Using `force` will forcibly close the anvil GUI the player is currently viewing to open a new one. Be aware that, due to how anvil GUIs work, closing an anvil GUI is global, meaning it will be closed for all players viewing it. To avoid this, ensure that you create per-player anvil GUIs.

Examples

open a new anvil gui to the player

View source