Jump to content

[1.16.5] How do I create a command?


Recommended Posts

2 minutes ago, Craftit7 said:

How do I create a command? Like what shall I do to register a certain class with it?

Subscribe to RegisterCommandsEvent. Then you can register your commands to the provided CommandDispatcher. Look at the Commands class for vanilla examples.

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in

Sign In Now

  • Create New...

Important Information

By using this site, you agree to our Terms of Use.