PrismarineJS / mineflayer

Create Minecraft bots with a powerful, stable, and high level JavaScript API.
https://prismarinejs.github.io/mineflayer/
MIT License
4.92k stars 904 forks source link

Using Minecraft 1.7.10? #432

Open dannysmc95 opened 8 years ago

dannysmc95 commented 8 years ago

Is there a way to get your bot to use Minecraft 1.7.10? and modded? I assume it should just connect as it doesn't need the mods? But I have no idea how to get it to work with 1.7.10...?

Thanks in advanced,

rom1504 commented 8 years ago

Mineflayer currently support only 1.8. The underlying network library node-minecraft-protocol support multiple versions including 1.7. So we could consider bringing multiple versions support in mineflayer. But that would require some work, there are things that are different in 1.7. You could try setting the "version" option to 1.7 in createBot, but that will only make node-minecraft-protocol use the 1.7 protocol, it probably will cause problem with mineflayer itself. Feel free to try to implement the necessary changes in a new branch (in a fork)

dannysmc95 commented 8 years ago

Oh I see, that is a shame really! Well it would be amazing if you could get this to work, even spoof the mods list, so we can connect to modded servers, because if we are never displaying them, we should never really need the mods right?

Could you show me an example sorry?

roblabla commented 8 years ago

The problem with mods is that some mods modify the protocol in ways that, if we are not aware of, break our ability to communicate properly with the server. It's possible to spoof the modlist with node-minecraft-protocol-forge but we never tried to use mineflayer with it AFAIK. But you can give it a try, it may work :).

rom1504 commented 7 years ago

mineflayer now has cross version supports from 1.8 to 1.11. We could try adding 1.7 back.

iocmet commented 2 years ago

How to use 1.7.10 and connect to server with mods? I really need do it

extremeheat commented 6 months ago

Seems still valid? https://github.com/PrismarineJS/node-minecraft-protocol supports it, only changes needed are to diff 1.8 and 1.7 and add handle the packet structure changes here