WIP Autobuild

This commit is contained in:
G2-Games 2024-10-05 02:03:53 -05:00
parent d61e1b5f77
commit 51c7310b05
51 changed files with 128 additions and 5 deletions

View file

@ -1,6 +1,6 @@
{ {
"pack":{ "pack":{
"pack_format": 18, "pack_format": 34,
"description": "§7The old ore textures\n§6§oCopper made by G2" "description": "§7The old ore textures\n§6§oCopper made by G2"
} }
} }

Binary file not shown.

Before

Width:  |  Height:  |  Size: 259 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 274 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 263 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 271 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 276 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 310 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 272 B

View file

@ -1,12 +1,48 @@
#!/bin/bash
version="2.1.2" version="2.1.2"
# Inputs:
# 1: Base layer
# 2: Output Prefix
# 3: Output Suffix
# 4: Skip file match
# 5: Remove from original name
# 6: Output Folder
overlay_on() {
for file in ../textures/ore_overlays/*; do
file_basename=$(basename "$file")
if [[ "$4" != "" ]] && [[ $file_basename == *"$4"* ]]; then
continue
fi
file_basename=${file_basename//"$5"/}
magick "$1" "$file" -gravity center -composite "$6/$2${file_basename%.*}_ore$3.png"
done
}
currentdir=$(pwd) currentdir=$(pwd)
mkdir -p build/ mkdir -p ./build/
cd ./build/ || exit 1
cd build/ || exit 1 echo -e "---\nBuilding Java"
rm * # Create Java directory structure
exa -lh mkdir -p ./java/assets/minecraft/models/block/
mkdir -p ./java/assets/minecraft/textures/block/
echo "Copying Java metafiles"
cp "../src/pack.mcmeta" "./java/pack.mcmeta"
cp "../src/pack.png" "./java/pack.png"
echo "Copying Java models"
cp ../src/models/* ./java/assets/minecraft/models/block/
echo "Overlaying textures"
overlay_on "../textures/stones/ore_stone.png" "" "" "coal_deepslate.png" "" "./java/assets/minecraft/textures/block/"
overlay_on "../textures/stones/deepslate.png" "deepslate_" "" "coal.png" "_deepslate" "./java/assets/minecraft/textures/block/"
overlay_on "../textures/stones/deepslate_top.png" "deepslate_" "_top" "coal.png" "_deepslate" "./java/assets/minecraft/textures/block/"
7z a -tzip "Old.Ores.$version-Java.zip" ../Java/* 7z a -tzip "Old.Ores.$version-Java.zip" ../Java/*
7z a -tzip "Old.Ores.$version-Bedrock.mcpack" ../Bedrock/* 7z a -tzip "Old.Ores.$version-Bedrock.mcpack" ../Bedrock/*

18
src/manifest.json Normal file
View file

@ -0,0 +1,18 @@
{
"format_version": 2,
"header": {
"description": "§7The old ore textures\n§6§oCopper made by G2",
"name": "Old Ores",
"uuid": "66c6e9a8-3093-462a-9c36-dbb052165822",
"version": [2, 1, 2],
"min_engine_version": [ 1, 20, 0 ]
},
"modules": [
{
"description": "§7The old ore textures\n§6§oCopper made by G2",
"type": "resources",
"uuid": "743f6949-53be-44b6-b326-398005028819",
"version": [2, 1, 2]
}
]
}

View file

@ -0,0 +1,7 @@
{
"parent": "minecraft:block/cube_column",
"textures": {
"end": "minecraft:block/deepslate_coal_ore_top",
"side": "minecraft:block/deepslate_coal_ore"
}
}

View file

@ -0,0 +1,7 @@
{
"parent": "minecraft:block/cube_column",
"textures": {
"end": "minecraft:block/deepslate_copper_ore_top",
"side": "minecraft:block/deepslate_copper_ore"
}
}

View file

@ -0,0 +1,7 @@
{
"parent": "minecraft:block/cube_column",
"textures": {
"end": "minecraft:block/deepslate_diamond_ore_top",
"side": "minecraft:block/deepslate_diamond_ore"
}
}

View file

@ -0,0 +1,7 @@
{
"parent": "minecraft:block/cube_column",
"textures": {
"end": "minecraft:block/deepslate_emerald_ore_top",
"side": "minecraft:block/deepslate_emerald_ore"
}
}

View file

@ -0,0 +1,7 @@
{
"parent": "minecraft:block/cube_column",
"textures": {
"end": "minecraft:block/deepslate_gold_ore_top",
"side": "minecraft:block/deepslate_gold_ore"
}
}

View file

@ -0,0 +1,7 @@
{
"parent": "minecraft:block/cube_column",
"textures": {
"end": "minecraft:block/deepslate_iron_ore_top",
"side": "minecraft:block/deepslate_iron_ore"
}
}

View file

@ -0,0 +1,7 @@
{
"parent": "minecraft:block/cube_column",
"textures": {
"end": "minecraft:block/deepslate_lapis_ore_top",
"side": "minecraft:block/deepslate_lapis_ore"
}
}

View file

@ -0,0 +1,7 @@
{
"parent": "minecraft:block/cube_column_mirrored",
"textures": {
"end": "minecraft:block/deepslate_top",
"side": "minecraft:block/deepslate"
}
}

View file

@ -0,0 +1,7 @@
{
"parent": "minecraft:block/cube_column",
"textures": {
"end": "minecraft:block/deepslate_redstone_ore_top",
"side": "minecraft:block/deepslate_redstone_ore"
}
}

6
src/pack.mcmeta Normal file
View file

@ -0,0 +1,6 @@
{
"pack": {
"pack_format": 34,
"description": "§7The old ore textures\n§6§oCopper made by G2"
}
}

BIN
src/pack.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.2 KiB

BIN
src/pack_icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.9 KiB

View file

Before

Width:  |  Height:  |  Size: 6.2 KiB

After

Width:  |  Height:  |  Size: 6.2 KiB

View file

Before

Width:  |  Height:  |  Size: 5.9 KiB

After

Width:  |  Height:  |  Size: 5.9 KiB

View file

Before

Width:  |  Height:  |  Size: 5.6 KiB

After

Width:  |  Height:  |  Size: 5.6 KiB

View file

Before

Width:  |  Height:  |  Size: 6.4 KiB

After

Width:  |  Height:  |  Size: 6.4 KiB

View file

Before

Width:  |  Height:  |  Size: 459 B

After

Width:  |  Height:  |  Size: 459 B

View file

Before

Width:  |  Height:  |  Size: 6.4 KiB

After

Width:  |  Height:  |  Size: 6.4 KiB

View file

Before

Width:  |  Height:  |  Size: 432 B

After

Width:  |  Height:  |  Size: 432 B

View file

Before

Width:  |  Height:  |  Size: 6.2 KiB

After

Width:  |  Height:  |  Size: 6.2 KiB

View file

Before

Width:  |  Height:  |  Size: 479 B

After

Width:  |  Height:  |  Size: 479 B

View file

Before

Width:  |  Height:  |  Size: 6.2 KiB

After

Width:  |  Height:  |  Size: 6.2 KiB

View file

Before

Width:  |  Height:  |  Size: 5.6 KiB

After

Width:  |  Height:  |  Size: 5.6 KiB

View file

Before

Width:  |  Height:  |  Size: 6.2 KiB

After

Width:  |  Height:  |  Size: 6.2 KiB

View file

Before

Width:  |  Height:  |  Size: 586 B

After

Width:  |  Height:  |  Size: 586 B

View file

Before

Width:  |  Height:  |  Size: 6.3 KiB

After

Width:  |  Height:  |  Size: 6.3 KiB

View file

Before

Width:  |  Height:  |  Size: 497 B

After

Width:  |  Height:  |  Size: 497 B

View file

Before

Width:  |  Height:  |  Size: 6.2 KiB

After

Width:  |  Height:  |  Size: 6.2 KiB

View file

Before

Width:  |  Height:  |  Size: 5.8 KiB

After

Width:  |  Height:  |  Size: 5.8 KiB

View file

Before

Width:  |  Height:  |  Size: 5.9 KiB

After

Width:  |  Height:  |  Size: 5.9 KiB

View file

Before

Width:  |  Height:  |  Size: 5.8 KiB

After

Width:  |  Height:  |  Size: 5.8 KiB

View file

Before

Width:  |  Height:  |  Size: 5.9 KiB

After

Width:  |  Height:  |  Size: 5.9 KiB

View file

Before

Width:  |  Height:  |  Size: 5.8 KiB

After

Width:  |  Height:  |  Size: 5.8 KiB

View file

Before

Width:  |  Height:  |  Size: 5.3 KiB

After

Width:  |  Height:  |  Size: 5.3 KiB

View file

Before

Width:  |  Height:  |  Size: 5.3 KiB

After

Width:  |  Height:  |  Size: 5.3 KiB

View file

Before

Width:  |  Height:  |  Size: 5.5 KiB

After

Width:  |  Height:  |  Size: 5.5 KiB

View file

Before

Width:  |  Height:  |  Size: 5.3 KiB

After

Width:  |  Height:  |  Size: 5.3 KiB

View file

Before

Width:  |  Height:  |  Size: 240 B

After

Width:  |  Height:  |  Size: 240 B

View file

Before

Width:  |  Height:  |  Size: 254 B

After

Width:  |  Height:  |  Size: 254 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

View file

Before

Width:  |  Height:  |  Size: 215 B

After

Width:  |  Height:  |  Size: 215 B