-
Notifications
You must be signed in to change notification settings - Fork 1
Show Item Toast
Display a toast popup on screen with an item as well as a customizable title and subtitle. Formatting codes using the §
character are supported.
Uses JSON to represent the item's NBT data. You can use /effectmc exportitem
to get the JSON for an item in your main hand. (And get a preview of what it will look like as a toast!)
To have a blank title or subtitle, place a space in the corresponding text box when configuring the action.
Note that there is a maximum number of toasts that can be on-screen at any given time. If this limit is exceeded, the toasts will queue up and automatically show when space is available. Toasts will also queue up if the HUD is hidden via F1.
Toasts do work on other screens like the main menu. (NOTE: Quitting to menu while in F1 mode disables toasts on other screens as well, they will queue up in the background until F1 mode is disabled or the game is closed.)
- Title (optional): An optional title to display on the key. Customize location and font using the T icon to the right of the text box.
- Minecraft IP (required): The address that the EffectMC mod is running on. (Example:
http://localhost:3000
) - Item Data: The NBT data of the item to display. (Example:
{"id":"minecraft:stone","Count":1b}
) - Title (required): The title to display. To not show a title, place a space in this text box.
- Subtitle (required): The subtitle to display. To not show a subtitle, place a space in this text box.
- Method: GET
- Endpoint:
/showtoast
- Parameters:
-
device
: Device ID (String) -
item
: The NBT data of the item to display. (String) -
title
: The title to display. (String) -
subtitle
: The subtitle to display. (String)
-
- Join Server
- Show Title
- Show Action Message
- Set Skin Layer
- Sent Chat Message
- Receive Chat Message
- Trigger Disconnect
- Play Sound
- Stop Sound
- Show Toast
- Open Book
- Narrate
- Load World
- Set Skin
- Open Screen
- Set FOV
- Show Chat
- Set POV
- Set GUI Scale
- Set Brightness/Gamma
- Set Gamemode
- Set Render Distance
- Rejoin
- Show Item Toast