#Trigger method for any command?(user inputted)

1 messages · Page 1 of 1 (latest)

plucky scroll
#

I wanted to know whether it's possible to make a user inputted command trigger something. So for example I give the user a textbox to type the command they want like /give and have it trigger my code

candid sand
plucky scroll
#

specifically I mean if another mod was using the command /mocap blank blank, is there a way to like read commands inputted into chat to check for it

meager trail
#

if you're doing it on the client you can use net.fabricmc.fabric.api.client.message.v1.ClientSendMessageEvents and the command event (not sure if this is the exact name, i forgot it so asked chatgpt for it but its definitely something similar as ive used it before)

zinc solar
#

I'm still not sure what's trying to be accomplished here

meager trail
zinc solar
#

Again, not exactly sure

meager trail
#

@plucky scroll

plucky scroll
#

okok thank youuu 🙏