#Load dialog values from storage

1 messages · Page 1 of 1 (latest)

carmine depot
#

In my data pack, I have a settings object in storage and a dialog with inputs to modify the settings. Is it possible for the dialog to load the inputs with inital values from the storage or is it limited to show preset default values?

Minecraft version: 26.2

teal grove
#

You can do this by using an inline dialog combined with macros.

exotic wasp
#

The answer is yes, but storing the new values right now is limited. You can do it with a variation of the following 2 methods:

  • the dialog can only be used by players with operator rights
  • use trigger objectives (this limits settings you can save to numeric/boolean, you can combine a few booleans or single digit numbers and unpack them with modulo tricks)