Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

trigger command not aliasing correctly #45

Closed
JadeNeoma opened this issue Jan 9, 2023 · 2 comments
Closed

trigger command not aliasing correctly #45

JadeNeoma opened this issue Jan 9, 2023 · 2 comments

Comments

@JadeNeoma
Copy link

Trying to use this to turn /trigger status-live from a datpack into /status live. It doesn't throw an error but the command just does nothing. My suspicion is that the trigger command is not working as it can't find the player that used it. I'll leave the datapack and tyhe config files I'm using left below. The config includes other status commands I'm trying to get working, but focusing on live is my goal.
status-plugin-1-1.zip
{ "schemaVersion": 1, "commandMode": "COMMAND_CUSTOM", "command": "status", "permission": 0, "message": "hello parent command", "children": [ { "child": "live", "type": "argument", "argumentType": "minecraft:word", "suggestionProvider": { "suggestionMode": "DATABASE_STARTS_WITH", "suggestion": "$executor_name().home.suggestions" }, "permission": 0, "actions": [ { "command": "trigger Status-Live" } ] }, { "child": "recording", "type": "argument", "argumentType": "minecraft:word", "permission": 0, "actions": [ { "command": "trigger Status-Recording" } ] }, { "child": "reset", "type": "argument", "argumentType": "minecraft:word", "permission": 0, "actions": [ { "command": "trigger Status-Reset" } ] } ] }

@JadeNeoma
Copy link
Author

JadeNeoma commented Jan 9, 2023

Okay, Fixed it. It was a nightmare though so I'm glad I added the issue. The commandType needed to be CLIENT

@FlashyReese
Copy link
Owner

You should remove the suggestion provider if you aren't using it
"suggestionProvider": { "suggestionMode": "DATABASE_STARTS_WITH", "suggestion": "$executor_name().home.suggestions" }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants