Welcome to the Hangar Open Beta. Please report any issue you encounter on GitHub!
Avatar for ResourcePackAI

Minecraft's own dialog screens, written in YAML: text boxes, dropdowns, sliders, buttons and an API.

Report DialogEngine?

R

0.8.1

Your own items in a drawn dialog, and setting values from code

Nothing changes in your dialog files. This release is for plugins built on Dialog Engine.

For developers

  • New: registerContainer(plugin, name, container). A drawn dialog's grid of item slots set to a container "from a plugin" now shows the inventory your plugin hands it: a bank, a shop's stock, a quiver. Players move items between it and their own inventory, and mayTake and mayPlace refuse a move per slot.
  • New: setSetting(player, name, value) sets a drawn dialog's switch, slider or dropdown for a player from code. A null value clears it back to the dialog's default.
  • New: set(player, key, value) changes one value of the dialog a player has open. Set as many as you like, then refresh once.
  • New: isOpen(player), and DialogOpenEvent.getValues(), named like every other event's.

0.8.0: Events for closing a dialog, and for every click on a drawn one

For developers

  • New: DialogCloseEvent, fired once a dialog has left the screen, with why: the exit button or Escape, a button, another dialog, a chest or other screen, a plugin, or the player leaving. It carries the button, the dialog that replaced it, and the values and settings the dialog was left with.
  • DialogClickEvent now fires for drawn dialogs too, and carries the player's settings (getSettings()) beside what they typed. Give a piece the command [event] buy_sword in the editor and one listener can answer a whole menu, with no command per button.
  • New: DialogSettingChangeEvent, before a drawn dialog's switch, slider or dropdown changes a setting. Cancellable.
  • New: DialogSlotMoveEvent, before a stack moves between a drawn dialog's item slots. Cancellable, for soulbound items or locked slots.

Dialogs

  • New action: [event] <id> names a button for your plugin and does nothing else.
  • A drawn dialog now says which features it uses, and when it needs one this version lacks, the console names it instead of the dialog showing up with pieces missing.
  • The code that runs drawn dialogs is now shared with RP Engine, so a dialog behaves the same in both plugins.

Information

Published
November 15, 2026
20Downloads

Platforms

Paper
Paper
1.21.7–26.2