Remove minecraft source decompiler script
There are many 3th-party software's out there which can easily decompile your the Minecraft source. You also often don't need the Source for most things.
This commit is contained in:
parent
59a4fe525d
commit
3f0a24170c
@ -2,23 +2,9 @@
|
|||||||
"name": "Pumpkin",
|
"name": "Pumpkin",
|
||||||
"image": "mcr.microsoft.com/devcontainers/base:noble",
|
"image": "mcr.microsoft.com/devcontainers/base:noble",
|
||||||
"features": {
|
"features": {
|
||||||
// rust is needed for compiling the server's code
|
"ghcr.io/devcontainers/features/rust:1": {}
|
||||||
"ghcr.io/devcontainers/features/rust:1": {},
|
|
||||||
// java is needed for decompiling Mojang's server jar
|
|
||||||
"ghcr.io/devcontainers/features/java:1": {
|
|
||||||
"version": "21",
|
|
||||||
"jdkDistro": "oracle",
|
|
||||||
"installMaven": true,
|
|
||||||
"mavenVersion": "latest"
|
|
||||||
},
|
|
||||||
// python is needed for decompiling Mojang's server jar
|
|
||||||
"ghcr.io/devcontainers/features/python:1": {
|
|
||||||
"installTools": true,
|
|
||||||
"version": "3.7"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"mounts": [
|
"mounts": [
|
||||||
// mount SSH config & public keys from host to enable SSH-based Git remotes
|
|
||||||
"source=${localEnv:HOME}${localEnv:USERPROFILE}/.ssh,target=/home/vscode/.ssh,readonly,type=bind"
|
"source=${localEnv:HOME}${localEnv:USERPROFILE}/.ssh,target=/home/vscode/.ssh,readonly,type=bind"
|
||||||
],
|
],
|
||||||
"forwardPorts": [
|
"forwardPorts": [
|
||||||
@ -28,8 +14,7 @@
|
|||||||
"vscode": {
|
"vscode": {
|
||||||
"extensions": [
|
"extensions": [
|
||||||
"eamodio.gitlens",
|
"eamodio.gitlens",
|
||||||
"Swellaby.rust-pack",
|
"Swellaby.rust-pack"
|
||||||
"vscjava.vscode-java-pack"
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,35 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
# This script decompiles the official Minecraft server JAR file.
|
|
||||||
# Be careful, as releasing the decompiled source code is against Minecraft's EULA.
|
|
||||||
|
|
||||||
# configure which version we want to decompile
|
|
||||||
MC_VERSION="1.21"
|
|
||||||
|
|
||||||
# remove folders if they already exist
|
|
||||||
if [ -d "DecompilerMC" ]; then rm -r DecompilerMC; fi
|
|
||||||
if [ -d "src" ]; then rm -r src; fi
|
|
||||||
if [ -d "target" ]; then rm -r target; fi
|
|
||||||
|
|
||||||
# clone DecompilerMC for automatic decompilation
|
|
||||||
# look here for more informations:
|
|
||||||
# - https://minecraft.fandom.com/wiki/Tutorials/See_Minecraft%27s_code
|
|
||||||
# - https://github.com/hube12/DecompilerMC
|
|
||||||
git clone https://github.com/hube12/DecompilerMC.git
|
|
||||||
echo "DecompilerMC cloned successfully."
|
|
||||||
|
|
||||||
# decompile the server JAR file
|
|
||||||
echo "Decompilation might take a while, please be patient."
|
|
||||||
cd DecompilerMC
|
|
||||||
python3 main.py -mcv $MC_VERSION -s server -na -f -rmap -rjar -dm -dj -dd -dec -q -c
|
|
||||||
|
|
||||||
# move it to the correct directory
|
|
||||||
mv src ..
|
|
||||||
cd ..
|
|
||||||
|
|
||||||
# move the custom made pom.xml
|
|
||||||
cp pom.xml src/$MC_VERSION/server
|
|
||||||
|
|
||||||
# install the dependencies
|
|
||||||
cd ../src/$MC_VERSION/server
|
|
||||||
# mvn clean install
|
|
||||||
@ -1,12 +0,0 @@
|
|||||||
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
|
||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
||||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
|
||||||
<modelVersion>4.0.0</modelVersion>
|
|
||||||
|
|
||||||
<groupId>com.mojang</groupId>
|
|
||||||
<artifactId>minecraft-server</artifactId>
|
|
||||||
<version>1.21</version>
|
|
||||||
|
|
||||||
<dependencies>
|
|
||||||
</dependencies>
|
|
||||||
</project>
|
|
||||||
Loading…
Reference in New Issue
Block a user