1
0
Fork 0

remove cave view and add index.json

This commit is contained in:
saibotk 2019-06-18 15:14:23 +02:00
parent 32d6946919
commit 6b6bda9d15

View file

@ -16,26 +16,34 @@ WORLD_FOLDER_END=/opt/blockmap/end
OUTPUT_DIR=/opt/blockmap/output OUTPUT_DIR=/opt/blockmap/output
BLOCKMAP_FILE=/opt/blockmap/BlockMap.jar BLOCKMAP_FILE=/opt/blockmap/BlockMap.jar
# mkdir -p $OUTPUT_DIR
ls -l /opt/blockmap
# A simple and plain overworld view # A simple and plain overworld view
echo "[INFO] Rendering overworld..." echo "[INFO] Rendering overworld..."
mkdir -p $OUTPUT_DIR/overworld mkdir -p $OUTPUT_DIR/overworld
java -jar $BLOCKMAP_FILE -v render -l -o=$OUTPUT_DIR/overworld $WORLD_FOLDER_OVERWORLD java -jar $BLOCKMAP_FILE -v render -l -o=$OUTPUT_DIR/overworld $WORLD_FOLDER_OVERWORLD
# The ocean grounds of the overworld # The ocean grounds of the overworld
echo "[INFO] Rendering overworld_ocean..." echo "[INFO] Rendering overworld_ocean..."
mkdir -p $OUTPUT_DIR/overworld_ocean mkdir -p $OUTPUT_DIR/overworld_ocean
java -jar $BLOCKMAP_FILE -v render -l -o=$OUTPUT_DIR/overworld_ocean -c=OCEAN_GROUND $WORLD_FOLDER_OVERWORLD java -jar $BLOCKMAP_FILE -v render -l -o=$OUTPUT_DIR/overworld_ocean -c=OCEAN_GROUND $WORLD_FOLDER_OVERWORLD
# All caves up to height 30
echo "[INFO] Rendering overworld_cave..."
mkdir -p $OUTPUT_DIR/overworld_cave
java -jar $BLOCKMAP_FILE -v render -l -o=$OUTPUT_DIR/overworld_cave -c=CAVES --max-height=30 $WORLD_FOLDER_OVERWORLD
# The nether up to height 64 # The nether up to height 64
echo "[INFO] Rendering overworld_nether..." echo "[INFO] Rendering overworld_nether..."
mkdir -p $OUTPUT_DIR/overworld_nether mkdir -p $OUTPUT_DIR/overworld_nether
java -jar $BLOCKMAP_FILE -v render -l -o=$OUTPUT_DIR/nether --max-height=64 $WORLD_FOLDER_NETHER java -jar $BLOCKMAP_FILE -v render -l -o=$OUTPUT_DIR/nether --max-height=64 $WORLD_FOLDER_NETHER
# A plain view of the end # A plain view of the end
echo "[INFO] Rendering overworld_end..." echo "[INFO] Rendering overworld_end..."
mkdir -p $OUTPUT_DIR/overworld_end mkdir -p $OUTPUT_DIR/overworld_end
java -jar $BLOCKMAP_FILE -v render -l -o=$OUTPUT_DIR/end $WORLD_FOLDER_END java -jar $BLOCKMAP_FILE -v render -l -o=$OUTPUT_DIR/end $WORLD_FOLDER_END
# Write an index file to the root directory. It is a simple name=path properties file, but in JSON.
cat << EOF > $OUTPUT_DIR/index.json
{
"Overworld": "./overworld/rendered.json.gz",
"Overworld (Ocean)": "./overworld_ocean/rendered.json.gz",
"Nether": "./nether/rendered.json.gz",
"End": "./end/rendered.json.gz"
}
EOF
echo "[INFO] Rendering finished!" echo "[INFO] Rendering finished!"