Open Alumopper opened 3 months ago
Minimal reproduction steps::
dispatch minecraft:storage["floating_ui:input"] to struct {
data: UI,
}
struct UI {
type: #[dispatcher_key="floating_ui:ui"] string,
name?: string,
...floating_ui:ui[[type]],
}
dispatch floating_ui:ui[panel] to struct Panel {
child: int,
}
data merge storage floating_ui:input {data:{type:"button",}}
-> ✅ name
and child
are suggesteddata modify storage floating_ui:input data set value {type:"panel",}
-> ❌ only name
is suggested
The complete code can be found at ui.mcdoc
When I type
data modify storage floating_ui:input data set value {“type”:"panel",}
, there should be suggestion for members defined in structPanel
There are only members defined in struct
UI
can be auto-complete: