How do I execute command or send chat as player? #1489
-
I'm working on mod that allows you to run specific commands when pressing keys. I'm making it to help players being portal banned on some servers. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
For making your own commands, check out https://fabricmc.net/wiki/tutorial:commands For making keybindings, check out https://fabricmc.net/wiki/tutorial:keybinds |
Beta Was this translation helpful? Give feedback.
-
You can execute commands the same way you send chat messages! Use |
Beta Was this translation helpful? Give feedback.
You can execute commands the same way you send chat messages! Use
sendChatMessage
inClientPlayerEntity
.