#Dialogs are very confusing

1 messages · Page 1 of 1 (latest)

fervent condor
#

I've been trying to set up a class menu system, most of the options for the dialogue are placeholders for now, but the main issue is getting the dialog to work. Ive tested my right click detection to run any other command, but cant get dialogs to show up in game even through commands, showing it like it doesn't even exist. Also yes, my mcmeta file is set to 81.

peak lion
#

Is this the zip you're trying to use as a datapack?

#

When you open this zip it has a folder that's called class choosing. It should have the data folder and mcmeta on the top level, so opening it should immediately show that instead

#

Then the folder in data/menu called "dialogues" is named wrong. It should be "dialog"

fervent condor
peak lion
#

can you send the result so I can take a look again

fervent condor
#

sure give me a moment

#

Alr ignore the fact that theres a class choosing in class choosing, i had to zip it to send it through discord

peak lion
#

ah ok so I'd definitely recommend using misode's generator as it seems the dialog file itself isn't formatted correctly

#

misode's generators are the saving grace of everyone in the datapack community

fervent condor
#

so just replace the file and it should be good?

peak lion
#

yeah 😅

#

as long as the generator doesn't throw errors, it will probably work (or there's other problems)

fervent condor
#

Alr, thanks a ton!

fervent condor
#

Hold on one more question, was using the site and was trying to make it so commands run on click. but it keeps giving me the error "trailing data encountered" for everything i write. Am i doing something wrong?

peak lion
#

actually I think that might be a bug on the generator side

fervent condor
#

ill figure it out

#

maybe

peak lion
#

do you have a section that looks like this?

  "actions": [
    {
      "label": "aaaaaaaa",
      "action": {
        "type": "minecraft:run_command",
        "command": "function menu:aaaaaa"
      }
    }
  ]
fervent condor
#

This is what it looks like {
"type": "minecraft:dialog_list",
"title": {
"text": "Choose a class",
"color": "light_purple",
"shadow_color": 0,
"bold": true,
"italic": false,
"underlined": false
},
"inputs": [
{
"type": "minecraft:single_option",
"key": "",
"label": {
"text": "ur a dumbass",
"click_event": {
"action": "run_command",
"command": "effect give @s minecraft:nausea 10 10"
},
"hover_event": {
"action": "show_item",
"id": "minecraft:waxed_weathered_cut_copper_stairs"
}
},
"options": [
{
"id": ""
}
]
},
{
"type": "minecraft:single_option",
"key": "",
"label": {
"text": "Wizard",
"click_event": {
"action": "run_command",
"command": "give @s minecraft:stick 1"
}
},
"options": [
{
"id": ""
}
]
}
],
"can_close_with_escape": true,
"exit_action": {
"label": {
"text": "exit"
}
},
"dialogs": []
}

peak lion
#

You probably want to use the multi action type
and then put whatever you want people to be able to push, like a button, undert the actions section

#

I'm not entirely sure if the hover events will work through there, but pressing the buttons should