Repository navigation
How to register client-side commands in 26.1.0.0-alpha.5+snapshot-2? #2915
Unanswered
laolizhennui
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Issue:
I cannot find the official method or working examples for registering client-side only commands in NeoForge. How should this be implemented correctly?
Steps taken and results:
I attempted to use RegisterClientCommandsEvent to register commands, but the registration was ineffective—the commands could not be recognized in the game. However, this may be due to an issue with my approach.
Expected outcome:
I hope to receive a clear guide or working example code demonstrating how to properly register client‑only commands (e.g., for toggling client‑side rendering settings, testing local visual effects, etc.), especially for my development environment.
Environment information:
NeoForge version: 26.1.0.0-alpha.5+snapshot-2
Minecraft version: 26.1-snapshot-2
Other relevant mods: None
My core question remains: What is the correct event, API, or method for registering client‑only commands in this specific version of NeoForge?
All reactions