Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tool for downloading the vanilla server for use with the packet inspector. #457

Closed
wants to merge 3 commits into from

Conversation

rj00a
Copy link
Member

@rj00a rj00a commented Aug 8, 2023

Objective

I've created a simple Rust script to download the vanilla server from Mojang and configure it for use with the packet inspector. This makes it easier for folks to examine vanilla server behavior using the packet inspector without configuring a bunch of things first.

Solution

Created tools/download_vanilla_server.

Problem

I've tried to configure the server to generate a superflat world, but it doesn't seem to be working. The server keeps overwriting WorldGenSettings in the level.dat and level-type=flat isn't working.

I'm also not sure if we're allowed to agree to the EULA on the user's behalf, but to be safe I've not done that.

@dyc3
Copy link
Collaborator

dyc3 commented Aug 8, 2023

I wrote up some instructions to do this with docker in the packet inspector readme a whole ago https://github.com/valence-rs/valence/tree/main/tools/packet_inspector#quick-start-with-vanilla-server-via-docker

Does they not work anymore?

@rj00a
Copy link
Member Author

rj00a commented Aug 9, 2023

Ok now that I'm looking at it more closely, there are a lot of environment variables we can give docker run to achieve the same result so I'll just close this.

docker run -e EULA=TRUE -e ONLINE_MODE=false -e ANNOUNCE_PLAYER_ACHIEVEMENTS=false -e GENERATE_STRUCTURES=false -e SPAWN_ANIMALS=false -e SPAWN_MONSTERS=false -e SPAWN_NPCS=false -e SPAWN_PROTECTION=0 -e VIEW_DISTANCE=16 -e MODE=creative -e LEVEL_TYPE=flat -e RCON_CMDS_STARTUP="gamerule doWeatherCycle false" -d -p 25565:25565 --name mc itzg/minecraft-server

@rj00a rj00a closed this Aug 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants