Now I understand where the problem might lie. The original behavior of the chat box clicking on text to pop up suggestions has failed in "dialog.action.on_click", which was expected to provide suggestions.
However, logically, we first press "T" and then click on the text to get suggestions, but here, clicking the action does not involve pressing the chat box beforehand, so there is a logical issue.
Nonetheless, I suspect that nesting suggestions in tellraw might be feasible.
The uploaded file is the data pack(25w20a).
the command is: ”/function biome_locator:debug”
description:
The command 'locate biome plains' can display the information of the location in the message bar when used normally.
However, if "execute as @a at @s locate biome plains" is used in debug.mcfunction, it will become invalid.
Text component format – Minecraft Wiki:
“However, this can only be used to run commands that do not send chat messages directly (like /say
, /tell
, and /teammsg
). Since they are being run from chat, the player must have the required permissions.“
The actual order is: beforeUseOn, beforeUse, onUse, onUseOn, afterUseOn, afterUseOn
The expected order is: beforeUseOn, beforeUse, onUse, afterUseOn, onUseOn, afterUse
The item component "minecraft:usemodify" can affect the above events, and when enabled, onUseOn will be interrupted
I started pcl2 on Win11 and followed the steps, and did not find any abnormalities.