minerl icon indicating copy to clipboard operation
minerl copied to clipboard

Can MineRL connect to a Minecraft server?

Open lostmsu opened this issue 3 years ago • 9 comments

I would like to make an environment, that involves human player interaction.

If that is not currently possible, what is the best place in MineRL code to start with in order to add that feature?

lostmsu avatar Feb 11 '22 19:02 lostmsu

It seems a similar feature was present in 0.3, but is no longer in 0.4. Is there no one to maintain it, or has there been a decision to completely remove it?

lostmsu avatar Feb 11 '22 19:02 lostmsu

Hey, it is not that it has been removed, it is just not updated to work with 0.4.x ^^. A PR to fix this would be welcomed!

Miffyli avatar Feb 11 '22 19:02 Miffyli

@Miffyli I am still more interested in the ability to connect to a remote server instead of hosting one. Multiple reasons: world persistence, live player interaction, existing public world interaction.

lostmsu avatar Feb 11 '22 19:02 lostmsu

This has no support in MineRL as it has not been of interest (yet), but I think with bit of tinkering you could modify the interaction code to work for this if need be :). Note that you might get some other headaches, though (e.g., server has to have the same mods enabled).

Miffyli avatar Feb 11 '22 19:02 Miffyli

I wanted to get a Minerl agent to join my server, which led me to this issue. Has this feature been considered for implementation yet?

ddPn08 avatar Aug 05 '23 15:08 ddPn08

Unfortunately no, there has been no plans to support this in MineRL.

Miffyli avatar Aug 05 '23 20:08 Miffyli

I see. If possible, I would like to implement it myself, but is the implementation cost quite high?

ddPn08 avatar Aug 06 '23 06:08 ddPn08

Hmm hard to say without knowing how to solve, as it could be easy (it is Minecraft underneath, after all) or very difficult if the modifications have broken it for Minecraft servers.

Also, even if someone creates this functionality, I might be hesitant to include it in the library as it could be used for griefing (connect to others' servers). Yes, there are better options for that, but I would stay on the cautious side to avoid bringing harm to people outside the research community 😅

Miffyli avatar Aug 08 '23 20:08 Miffyli

I see. I certainly didn't consider that risk. I'll try it myself for now. Thank you very much!

ddPn08 avatar Aug 08 '23 23:08 ddPn08