TOAST

TOAST([type],[icon],[text1],[text2],[ticks])

Type: Action

Category: GUI

Permission: N/A

Since Minecraft Version: v1.12.1

Since Version: v0.15.1

Minor: 15

API: 26

Patch: 1


Description

Displays an user-defined toast.

The following toasts are possible:

  • Advancement Toast ("Advancement made!")
  • [type] should be "advancement"
  • [icon] can be any item name
  • [text1] will be displayed
  • Challenge Toast ("Challenge complete!")
  • [type] should be "challenge"
  • [icon] can be any item name
  • [text1] will be displayed
  • Goal Toast ("Goal reached!")
  • [type] should be "goal"
  • [icon] can be any item name
  • [text1] will be displayed
  • Recipe Toast ("New Recipes Unlocked!")
  • [type] should be "recipe"
  • [icon] can be any item name
  • No text will be displayed
  • Tutorial Toast
  • [type] should be "tutorial"
  • [icon] can be one of the following values
    • "keys"
    • "mouse"
    • "tree"
    • "recipe_block"
    • "planks"
  • [text1] and [text2] will be displayed
  • [ticks] specifies how long the toast will be displayed
  • System Hint Toast
  • [type] should be "hint"
  • [icon] should be empty
  • [text1] and [text2] will be displayed
  • System Narrator Toast
  • [type] should be "narrator"
  • [icon] should be empty
  • [text1] and [text2] will be displayed
  • Remove user-defined tutorial toasts
  • [type] should be "clear"
  • if [icon] is "all" vanilla toast will also be removed

Useful Links

Changelog
  • Added em v0.15.1: