2
Need help with dialog java 25w20a
got a datapck for multiple homes but without names. i need a inputfield as third button next to tp home for example: #Set Home2# #Tp Home2# #name: base#
look picture below
my dialog:
{
"type": "minecraft:multi_action",
"title": "Datapack by romanorose",
"columns": 2,
"body": [
{
"type": "plain_message",
"contents": "Homes"
}
],
"actions": [
{
"label": {"text":"Set Home1"},
"width": 80,
"on_click": {
"action": "run_command",
"command": "trigger sethome"
}
},
{
"label": {"text":"Tp Home1"},
"width": 80,
"on_click": {
"action": "run_command",
"command": "trigger home"
}
},
{
"label": {"text":"Set Home2"},
"width": 80,
"on_click": {
"action": "run_command",
"command": "trigger sethome2"
}
},
{
"label": {"text":"Tp Home2"},
"width": 80,
"on_click": {
"action": "run_command",
"command": "trigger home2"
}
},{
"label": {"text":"Set Home3"},
"width": 80,
"on_click": {
"action": "run_command",
"command": "trigger sethome3"
}
},
{
"label": {"text":"Tp Home3"},
"width": 80,
"on_click": {
"action": "run_command",
"command": "trigger home3"
}
},{
"label": {"text":"Set Home4"},
"width": 80,
"on_click": {
"action": "run_command",
"command": "trigger sethome4"
}
},
{
"label": {"text":"Tp Home4"},
"width": 80,
"on_click": {
"action": "run_command",
"command": "trigger home4"
}
},
{
"label": {"text":"Set Home5"},
"width": 80,
"on_click": {
"action": "run_command",
"command": "trigger sethome5"
}
},
{
"label": {"text":"Tp Home5"},
"width": 80,
"on_click": {
"action": "run_command",
"command": "trigger home5"
}
},
{
"label": {"text":"Set Home6"},
"width": 80,
"on_click": {
"action": "run_command",
"command": "trigger sethome6"
}
},
{
"label": {"text":"Tp Home6"},
"width": 80,
"on_click": {
"action": "run_command",
"command": "trigger home6"
}
},
{
"label": {"text":"Set Home7"},
"width": 80,
"on_click": {
"action": "run_command",
"command": "trigger sethome7"
}
},
{
"label": {"text":"Tp Home7"},
"width": 80,
"on_click": {
"action": "run_command",
"command": "trigger home7"
}
},
{
"label": {"text":"Set Home8"},
"width": 80,
"on_click": {
"action": "run_command",
"command": "trigger sethome8"
}
},
{
"label": {"text":"Tp Home8"},
"width": 80,
"on_click": {
"action": "run_command",
"command": "trigger home8"
}
},
{
"label": {"text":"Set Home9"},
"width": 80,
"on_click": {
"action": "run_command",
"command": "trigger sethome9"
}
},
{
"label": {"text":"Tp Home9"},
"width": 80,
"on_click": {
"action": "run_command",
"command": "trigger home9"
}
}
]
}
look picture below
my dialog:
{
"type": "minecraft:multi_action",
"title": "Datapack by romanorose",
"columns": 2,
"body": [
{
"type": "plain_message",
"contents": "Homes"
}
],
"actions": [
{
"label": {"text":"Set Home1"},
"width": 80,
"on_click": {
"action": "run_command",
"command": "trigger sethome"
}
},
{
"label": {"text":"Tp Home1"},
"width": 80,
"on_click": {
"action": "run_command",
"command": "trigger home"
}
},
{
"label": {"text":"Set Home2"},
"width": 80,
"on_click": {
"action": "run_command",
"command": "trigger sethome2"
}
},
{
"label": {"text":"Tp Home2"},
"width": 80,
"on_click": {
"action": "run_command",
"command": "trigger home2"
}
},{
"label": {"text":"Set Home3"},
"width": 80,
"on_click": {
"action": "run_command",
"command": "trigger sethome3"
}
},
{
"label": {"text":"Tp Home3"},
"width": 80,
"on_click": {
"action": "run_command",
"command": "trigger home3"
}
},{
"label": {"text":"Set Home4"},
"width": 80,
"on_click": {
"action": "run_command",
"command": "trigger sethome4"
}
},
{
"label": {"text":"Tp Home4"},
"width": 80,
"on_click": {
"action": "run_command",
"command": "trigger home4"
}
},
{
"label": {"text":"Set Home5"},
"width": 80,
"on_click": {
"action": "run_command",
"command": "trigger sethome5"
}
},
{
"label": {"text":"Tp Home5"},
"width": 80,
"on_click": {
"action": "run_command",
"command": "trigger home5"
}
},
{
"label": {"text":"Set Home6"},
"width": 80,
"on_click": {
"action": "run_command",
"command": "trigger sethome6"
}
},
{
"label": {"text":"Tp Home6"},
"width": 80,
"on_click": {
"action": "run_command",
"command": "trigger home6"
}
},
{
"label": {"text":"Set Home7"},
"width": 80,
"on_click": {
"action": "run_command",
"command": "trigger sethome7"
}
},
{
"label": {"text":"Tp Home7"},
"width": 80,
"on_click": {
"action": "run_command",
"command": "trigger home7"
}
},
{
"label": {"text":"Set Home8"},
"width": 80,
"on_click": {
"action": "run_command",
"command": "trigger sethome8"
}
},
{
"label": {"text":"Tp Home8"},
"width": 80,
"on_click": {
"action": "run_command",
"command": "trigger home8"
}
},
{
"label": {"text":"Set Home9"},
"width": 80,
"on_click": {
"action": "run_command",
"command": "trigger sethome9"
}
},
{
"label": {"text":"Tp Home9"},
"width": 80,
"on_click": {
"action": "run_command",
"command": "trigger home9"
}
}
]
}
3
Don't know if that's easily possible.
Hast du den trigger home commant mit 3 commantblöcken definiert?
wo is das problem?
