kolbytn / mindcraft

MIT License
1.75k stars 217 forks source link

Bot don't see my messages #268

Open sebastttt opened 3 days ago

sebastttt commented 3 days ago

I'm write in chat, but bot ignore me

BarelyAPrincess commented 2 days ago

I have the same issue. I've been trying to find a cause, but I'm not yet familiar with the code.

I'm using a local installation of Ollama for my backend.

keydevelops commented 2 days ago

Same issue.

BarelyAPrincess commented 2 days ago

The issue exists in both Minecraft 1.20.4 and 1.21.1. The best I can come up with for myself is it will only work if I'm using absolutely no mods. When using some Vanilla+ QoL mods it breaks, and I'm wondering if it's being caused by a bug in the Mineslayer module that parses the chat messages. In the chat specific code in Mineslayer is a regex const that is used for parsing out chat messages. I can easily see this breaking if a mod changes anything to do with the expected format messages are sent to the players.

flyingtruce commented 1 day ago

Disabling the following chat mods worked for me:

JurassikLizard commented 1 day ago

The server environment cannot be modded with mineflayer. While it seems you guys are hosting a vanilla server and connecting with a modded client, stuff like modded chats can still get through to the server environment, thus causing problems with mineflayer. My suggestion is to use strictly QoL mods that don't interact at all with the server, including chats, skins, or other things of that nature. Performance mods or shaders or stuff like that is fine as long as you're still connecting to a vanilla server.