gekware / minecraft-server-hibernation

Autostart and stop minecraft-server when players join/leave
GNU General Public License v3.0
379 stars 37 forks source link

Support for MS Bedrock #212

Open gekigek99 opened 1 year ago

gekigek99 commented 1 year ago

Is there an existing feature request for this?

Describe the feature you would like to see.

Support ms bedrock to allow usage for minecraft pocket edition

Describe the solution you'd like.

No response

Additional context to this request.

Please add a reaction if you like the idea/would use it. Since this is a major project any help would be appreciated.

A-wels commented 1 year ago

What would it take to add this feature? What starting point would you recommend?

gekigek99 commented 1 year ago

I think that a script that demostrate the proxy functionality would be a good starting achievement. (Literally: client <-> script <-> ms)

For this one would need to setup a test environment, cause ms bedrock is running on phones, which means probably having a local emulator.

(What is vital is being able to have a basic understanding of the protocol, since ms bedrock is using udp connection which is completely different from tcp)

Depending on how join/info packets are working we can build msh around that.

A-wels commented 1 year ago

I think Minecraft Bedrock for Windows10 would also work, correct?

gekigek99 commented 1 year ago

I have no idea, never played it, let alone tested the protocol ahah :)

If the protocol is the same it would at least simplify the test environment.

(If its not then its a big mess both for testing and for developement)

A-wels commented 1 year ago

This sounds interesting, however I have never written a proxy or something in this direction. I'd love to look into this, but I am currently busy with university :(

JackGlobetrotter commented 1 year ago

For simple Bedrock compatibility you could also have a look at GyserMC . I know this does not really respond to the request, but it provides a certain compatibility with bedrock via java nonetheless. Feel free to remove the comment if it is off-topic :)

gekigek99 commented 1 year ago

GyserMC might actually be the intelligent configuration to allow bedrock clients.

Bedrock client -> GyserMC -> msh -> minecraft java server

@BolverBlitz would be interesting to see if its doable as an egg.

BolverBlitz commented 1 year ago

If it works works, it can be done as an egg.

But i´ve never had the time to actualy try that. Did anyone try that yet?

Plus there are people who have already done the hard work of combinding go and bedrock dragonfly So i would assume thats a good starting point ^^

JackGlobetrotter commented 1 year ago

I have a fabric server with mc gyser as fabric mod running under msh with no problems