Question

I want to edit the minecraft server code and add/remove things, I need or not.

  • First, am I allowed to edit the minecraft server code?
  • And I get the source of the minecraft_server.jar in IntelliJ, but if I want to compile, I get 100 errors because in the code there are things like: switch(1.$SwitchMap$io$netty$handler$codec$http$websocketx$WebSocket08FrameDecoder$State[((State)state()).ordinal()]) {

I really don't know what to do with these errors, because in the finshed jar, it's in there like my example.

Minecraft Server: https://minecraft.net/download

Was it helpful?

Solution

I think the source for minecraft servers is intended to be closed (You should not be able to even obtain it).

However, source for modded servers might be open, check Bukkit and similar projects.

Keep in mind that if you were able to find an open project, and you decided to add or delete various things, you are SOLELY responsible for ensuring that clients can still connect and operate properly.

Projects like Bukkit can be modified by writing your own plugins, so unless you want to REALLY change how minecraft operates (by adding new blocks or something!), you should be able to just write your own plugin without laying a hand on the server source code.

I admire your enthusiasm, but make sure you know what you're getting yourself into! :)

OTHER TIPS

The Minecraft server is not open source. So you won't legaly get the source files.

i want to edit the minecraft server code and add/remove things, i need or not.

I doubt there are things you don't need and if so... don't use them.

But there are OpenSource minecraft servers (like bukkit), that can easily be customized with plugins.

use BuildTools as explained in spigot, after you got all the folders go inside the folder Spigot and go inside the folder Spigot-Server then inisde src then main then java then net then minecraft then server and there is the source code, modify the stuff you want in those .java files and when you are ready go back to the folder Spigot/Spigot-Server and put this command mvn clean package and thats it... you may need to install some dependencies like maven ... but that will make the spigot.jar inside the folder target with the minecraft modifications...

I would suggest using Minecraft Forge (Google it) for server and client modding, if Bukkit isn't what you want.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top