Compare commits

..

2 commits

Author SHA1 Message Date
Sergeant Acoustic c0112e54e0 Add + configure Geophilic + port ore configs 2026-02-03 23:11:52 +00:00
Sergeant Acoustic 31225dfdf0 Fix mrpacktool.sh
If wget couldn't download a file from the provided url, the script would
continue anyway and jq would write over modrinth.index.json with an
empty file
2026-02-03 23:07:45 +00:00
29 changed files with 385 additions and 11 deletions

View file

@ -10,14 +10,6 @@ Start by creating a list of needed mods
## Datapack
* Worldgen
* Ores
* Overworld (gold/iron/etc)
* geophilic
* install
* disable rocks
* Amplified nether
* Amplified nether height
* Recipes
* Antique Atlas/alternative mod
* Advancements

View file

@ -232,6 +232,21 @@
"sha512": "45403bbdbe35c27b9bd9beb720f0299d652144a99a841b205fdc123dc5475d707ec7a8c9e21352a7f1064fdfbcc16e0b838c854bd97cd48771623c8995c9a21e"
},
"path": "mods/ikwid-1.0_1.21.jar"
},
{
"downloads": [
"https://cdn.modrinth.com/data/hl5OLM95/versions/Vk4cYx6F/Geophilic v3.4.6.mod.jar"
],
"env": {
"client": "required",
"server": "required"
},
"fileSize": 751598,
"hashes": {
"sha1": "cea812a101e7dd130d130ca43d7ee4d1a227cbd5",
"sha512": "5d0ac03046a6524f015c6c380e5fce59d8b763eec5fd5b6b301d67418d25a726088e94d96381ec577425d03f7d70c3b711cfd13eea29e7a48a02e95a5fb11065"
},
"path": "mods/Geophilic v3.4.6.mod.jar"
}
]
}

View file

@ -29,10 +29,17 @@ function urldecode() {
# Get file name from url trimmed by slash and url decoded
mod_file="$(urldecode ${mod_url##*/})"
trap "rm ${mods_dir}/${mod_file}" HUP INT TERM EXIT
trap "rm \"${mods_dir}/${mod_file}\"" HUP INT TERM EXIT
echo "Downloading file..."
wget -N --no-verbose --directory-prefix "$mods_dir" "$mod_url"
# Exit if download failed
if [ $? != "0" ]; then
echo "$0: Could not download mod from provided URL"
trap "" HUP INT TERM EXIT # Unset trap as there's no file to delete
exit 1
fi
# Collect data required by modrinth.index.json
echo "Processing file info"
mod_path="${mods_dir}/${mod_file}"

View file

@ -0,0 +1,6 @@
{
"type": "minecraft:replace_single_block",
"config": {
"targets": []
}
}

View file

@ -0,0 +1,6 @@
{
"type": "minecraft:replace_single_block",
"config": {
"targets": []
}
}

View file

@ -0,0 +1,6 @@
{
"type": "minecraft:replace_single_block",
"config": {
"targets": []
}
}

View file

@ -0,0 +1,6 @@
{
"type": "minecraft:replace_single_block",
"config": {
"targets": []
}
}

View file

@ -0,0 +1,6 @@
{
"type": "minecraft:replace_single_block",
"config": {
"targets": []
}
}

View file

@ -0,0 +1,6 @@
{
"type": "minecraft:replace_single_block",
"config": {
"targets": []
}
}

View file

@ -0,0 +1,6 @@
{
"type": "minecraft:replace_single_block",
"config": {
"targets": []
}
}

View file

@ -0,0 +1,6 @@
{
"type": "minecraft:replace_single_block",
"config": {
"targets": []
}
}

View file

@ -0,0 +1,27 @@
{
"type": "minecraft:ore",
"config": {
"discard_chance_on_air_exposure": 1.0,
"size": 9,
"targets": [
{
"state": {
"Name": "minecraft:iron_ore"
},
"target": {
"predicate_type": "minecraft:tag_match",
"tag": "minecraft:stone_ore_replaceables"
}
},
{
"state": {
"Name": "minecraft:deepslate_iron_ore"
},
"target": {
"predicate_type": "minecraft:tag_match",
"tag": "minecraft:deepslate_ore_replaceables"
}
}
]
}
}

View file

@ -0,0 +1,16 @@
{
"feature": "minecraft:ore_coal",
"placement": [
{"type": "minecraft:count", "count": 1},
{"type": "minecraft:in_square"},
{
"type": "minecraft:height_range",
"height": {
"type": "minecraft:uniform",
"min_inclusive": {"above_bottom": 0},
"max_inclusive": {"above_bottom": 9}
}
},
{"type": "minecraft:biome"}
]
}

View file

@ -0,0 +1,27 @@
{
"type": "minecraft:ore",
"config": {
"discard_chance_on_air_exposure": 0.5,
"size": 3,
"targets": [
{
"state": {
"Name": "minecraft:gold_ore"
},
"target": {
"predicate_type": "minecraft:tag_match",
"tag": "minecraft:stone_ore_replaceables"
}
},
{
"state": {
"Name": "minecraft:deepslate_gold_ore"
},
"target": {
"predicate_type": "minecraft:tag_match",
"tag": "minecraft:deepslate_ore_replaceables"
}
}
]
}
}

View file

@ -0,0 +1,27 @@
{
"type": "minecraft:ore",
"config": {
"discard_chance_on_air_exposure": 0.7,
"size": 5,
"targets": [
{
"state": {
"Name": "minecraft:gold_ore"
},
"target": {
"predicate_type": "minecraft:tag_match",
"tag": "minecraft:stone_ore_replaceables"
}
},
{
"state": {
"Name": "minecraft:deepslate_gold_ore"
},
"target": {
"predicate_type": "minecraft:tag_match",
"tag": "minecraft:deepslate_ore_replaceables"
}
}
]
}
}

View file

@ -0,0 +1,27 @@
{
"type": "minecraft:ore",
"config": {
"discard_chance_on_air_exposure": 0.2,
"size": 7,
"targets": [
{
"state": {
"Name": "minecraft:iron_ore"
},
"target": {
"predicate_type": "minecraft:tag_match",
"tag": "minecraft:stone_ore_replaceables"
}
},
{
"state": {
"Name": "minecraft:deepslate_iron_ore"
},
"target": {
"predicate_type": "minecraft:tag_match",
"tag": "minecraft:deepslate_ore_replaceables"
}
}
]
}
}

View file

@ -0,0 +1,5 @@
{
"op": "add",
"path": "/ore_veins_enabled",
"value": false
}

View file

@ -0,0 +1,5 @@
{
"op": "add",
"path": "/ore_veins_enabled",
"value": false
}

View file

@ -0,0 +1,5 @@
{
"op": "add",
"path": "/ore_veins_enabled",
"value": false
}

View file

@ -0,0 +1,27 @@
{
"feature": "minecraft:ore_gold_buried",
"placement": [
{
"type": "minecraft:count",
"count": 2
},
{
"type": "minecraft:in_square"
},
{
"type": "minecraft:height_range",
"height": {
"type": "minecraft:trapezoid",
"max_inclusive": {
"absolute": 8
},
"min_inclusive": {
"above_bottom": 10
}
}
},
{
"type": "minecraft:biome"
}
]
}

View file

@ -0,0 +1,27 @@
{
"feature": "minecraft:ore_gold",
"placement": [
{
"type": "minecraft:count",
"count": 3
},
{
"type": "minecraft:in_square"
},
{
"type": "minecraft:height_range",
"height": {
"type": "minecraft:uniform",
"max_inclusive": {
"absolute": 8
},
"min_inclusive": {
"above_bottom": 10
}
}
},
{
"type": "minecraft:biome"
}
]
}

View file

@ -0,0 +1,27 @@
{
"feature": "minecraft:ore_gold_buried",
"placement": [
{
"type": "minecraft:count",
"count": 4
},
{
"type": "minecraft:in_square"
},
{
"type": "minecraft:height_range",
"height": {
"type": "minecraft:trapezoid",
"max_inclusive": {
"absolute": -16
},
"min_inclusive": {
"above_bottom": 10
}
}
},
{
"type": "minecraft:biome"
}
]
}

View file

@ -0,0 +1,27 @@
{
"feature": "minecraft:ore_iron_small",
"placement": [
{
"type": "minecraft:count",
"count": 12
},
{
"type": "minecraft:in_square"
},
{
"type": "minecraft:height_range",
"height": {
"type": "minecraft:uniform",
"max_inclusive": {
"absolute": 62
},
"min_inclusive": {
"above_bottom": 10
}
}
},
{
"type": "minecraft:biome"
}
]
}

View file

@ -0,0 +1,27 @@
{
"feature": "mc_rebalance:ore_iron_upper",
"placement": [
{
"type": "minecraft:count",
"count": 90
},
{
"type": "minecraft:in_square"
},
{
"type": "minecraft:height_range",
"height": {
"type": "minecraft:trapezoid",
"max_inclusive": {
"absolute": 384
},
"min_inclusive": {
"absolute": 80
}
}
},
{
"type": "minecraft:biome"
}
]
}

View file

@ -0,0 +1,16 @@
{
"feature": "minecraft:ore_redstone",
"placement": [
{"type": "minecraft:count","count": 13},
{"type": "minecraft:in_square"},
{
"type": "minecraft:height_range",
"height": {
"type": "minecraft:uniform",
"min_inclusive": {"above_bottom": 0},
"max_inclusive": {"above_bottom": 9}
}
},
{"type": "minecraft:biome"}
]
}

View file

@ -9,7 +9,17 @@
"patch_targets": [
{
"pack_type": "server_data",
"patch": "nether_ores",
"patch": "coal_ore_lowest",
"targets": [{
"namespace": ["minecraft"],
"path": [
{"pattern": "worldgen/biome/.*\\.json"}
]
}]
},
{
"pack_type": "server_data",
"patch": "nether_diamond_ore",
"targets": [{
"namespace": ["minecraft"],
"path": [
@ -23,7 +33,7 @@
},
{
"pack_type": "server_data",
"patch": "end_ores",
"patch": "end_netherite_ore",
"targets": [{
"namespace": ["minecraft"],
"path": [

View file

@ -0,0 +1,12 @@
[
{
"op": "test",
"path": "/features/6/10",
"value": "minecraft:ore_coal_lower"
},
{
"op": "add",
"path": "/features/6/-",
"value": "mc_rebalance:ore_coal_lowest"
}
]