Scenes
A GUI can have multiple "scenes" to create animations or timed transitions. Scenes cycle through in order, each after its specified delay.
Scenes are indexed by strings (
'0'
,'1'
, etc.).delay
: Time in ticks after previous scene before showing this scene. 20 ticks = 1 second.items
: Defines GUI slots and their contents.
Scenes also allow for an additional action to be made with the Event Manager.
With the Event Manager, you are able to set up numerous events such as:
Message Player
Run a command for the Player
Send a title to player
Close Open Inventory
Give Money
Remove Money
Set Money
Chat Fetcher
Player Picker Command Executor (with an ability to attach a command)
Give custom item to player
Save information per player
Offline Player Picker Command Executor (with an ability to attach a command)
A perfect example is Run a command for the player, where the scenes feature makes opening any menu (in our example a shop menu) extraordinary.
Last updated