Compare commits
7 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
eb9de8cb87 | ||
|
|
02acab31c1 | ||
|
|
34a6c113a7 | ||
|
|
791167eeec | ||
|
|
af7de38202 | ||
|
|
cb45cd169a | ||
|
|
91b0c616a6 |
2
.gitignore
vendored
2
.gitignore
vendored
|
|
@ -1,4 +1,4 @@
|
||||||
release
|
release
|
||||||
deps
|
deps
|
||||||
overrides/mods/mc_rebalance-1.20.1-*.jar
|
overrides/mods/mc_rebalance-*.jar
|
||||||
overrides/global_packs/required_data/mc_rebalance_datapack/
|
overrides/global_packs/required_data/mc_rebalance_datapack/
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
# Tinker's Tinkering
|
# Tinker's Tinkering
|
||||||
|
|
||||||
Tester edition of **Minecraft Rebalance**, a modpack intended to rework almost every feature in the game with a focus on the vanilla progression.
|
Tester edition of **Minecraft Rebalanced**, a modpack intended to rework almost every feature in the game with a focus on the vanilla progression.
|
||||||
|
|
||||||
This modpack contains a [custom mod](https://patience.nearmisses.xyz/patience/mc_rebalance) and [custom datapack](https://patience.nearmisses.xyz/SergeantAcoustic/mc_rebalance_datapack) to bind everything together. They will not function correctly outside this pack. Some details on what the modpack changes can be found in the mod's README.
|
This modpack contains a [custom mod](https://patience.nearmisses.xyz/patience/mc_rebalance) and [custom datapack](https://patience.nearmisses.xyz/SergeantAcoustic/mc_rebalance_datapack) to bind everything together. They will not function correctly outside this pack. Some details on what the modpack changes can be found in the mod's README.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -27,11 +27,15 @@ git clone "$pack_repo" "$basedir/overrides/global_packs/required_data/mc_rebalan
|
||||||
|
|
||||||
(cd "$basedir/overrides/global_packs/required_data/mc_rebalance_datapack/assets/minecraft/lang/" && ./gen-langs.sh)
|
(cd "$basedir/overrides/global_packs/required_data/mc_rebalance_datapack/assets/minecraft/lang/" && ./gen-langs.sh)
|
||||||
|
|
||||||
cp "$basedir/deps/mc_rebalance/build/libs/mc_rebalance-1.20.1-"*".jar" "$basedir/overrides/mods"
|
cp "$basedir/deps/mc_rebalance/build/libs/mc_rebalance-"*".jar" "$basedir/overrides/mods"
|
||||||
|
|
||||||
# Final path for the modpack
|
# Final path for the modpack
|
||||||
if [ ! -d release ]; then
|
if [ ! -d release ]; then
|
||||||
mkdir release
|
mkdir release
|
||||||
fi;
|
fi;
|
||||||
|
|
||||||
zip -FSr "$basedir/release/Tinker's tinkering.mrpack" overrides modrinth.index.json -x "*.git*"
|
# Get version from the mrpack file
|
||||||
|
version="$(jq -r ".versionId" modrinth.index.json)"
|
||||||
|
|
||||||
|
# Export release to file
|
||||||
|
zip -FSr "$basedir/release/MC_Rebalance_${version}.mrpack" overrides modrinth.index.json -x "*.git*"
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@
|
||||||
"formatVersion": 1,
|
"formatVersion": 1,
|
||||||
"game": "minecraft",
|
"game": "minecraft",
|
||||||
"name": "MC Rebalanced",
|
"name": "MC Rebalanced",
|
||||||
"versionId": "1.0.0",
|
"versionId": "1.0.1",
|
||||||
"files": [
|
"files": [
|
||||||
{
|
{
|
||||||
"downloads": [
|
"downloads": [
|
||||||
|
|
|
||||||
64
mrpacktool.sh
Executable file
64
mrpacktool.sh
Executable file
|
|
@ -0,0 +1,64 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# User input error handling
|
||||||
|
if [[ $# -eq 0 ]]; then
|
||||||
|
echo "$0: A mod url is required."
|
||||||
|
exit 4
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Do everything relative to this files path
|
||||||
|
parent_path=$( cd "$(dirname "${BASH_SOURCE[0]}")" ; pwd -P )
|
||||||
|
cd "$parent_path"
|
||||||
|
|
||||||
|
# Paths
|
||||||
|
mods_dir="/tmp/"
|
||||||
|
|
||||||
|
# Options parsing
|
||||||
|
mod_url="$1"
|
||||||
|
out_file="${2:-$parent_path/modrinth.index.json}"
|
||||||
|
|
||||||
|
if [ -n "$v" ]; then
|
||||||
|
echo "Verbose: $v, Mod url: $mod_url, Output: $out_file"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# https://stackoverflow.com/questions/6250698/how-to-decode-url-encoded-string-in-shell#37840948
|
||||||
|
function urldecode() {
|
||||||
|
: "${*//+/ }"
|
||||||
|
echo -e "${_//%/\\x}"
|
||||||
|
}
|
||||||
|
|
||||||
|
# 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
|
||||||
|
echo "Downloading file..."
|
||||||
|
wget -N --no-verbose --directory-prefix "$mods_dir" "$mod_url"
|
||||||
|
|
||||||
|
# Collect data required by modrinth.index.json
|
||||||
|
echo "Processing file info"
|
||||||
|
mod_path="${mods_dir}/${mod_file}"
|
||||||
|
|
||||||
|
modrinth_size="$(du --bytes "$mod_path" | cut -f -1)"
|
||||||
|
modrinth_sha1="$(sha1sum "$mod_path" | cut -d " " -f 1)"
|
||||||
|
modrinth_sha512="$(sha512sum "$mod_path" | cut -d " " -f -1)"
|
||||||
|
|
||||||
|
# Writing to file
|
||||||
|
echo "Writing to file"
|
||||||
|
jq ".files += [{ \
|
||||||
|
\"downloads\": [
|
||||||
|
\"${mod_url}\"
|
||||||
|
],
|
||||||
|
\"env\": {
|
||||||
|
\"client\": \"required\",
|
||||||
|
\"server\": \"required\"
|
||||||
|
},
|
||||||
|
\"fileSize\": ${modrinth_size},
|
||||||
|
\"hashes\": {
|
||||||
|
\"sha1\": \"${modrinth_sha1}\",
|
||||||
|
\"sha512\": \"${modrinth_sha512}\"
|
||||||
|
},
|
||||||
|
\"path\": \"mods/${mod_file}\"
|
||||||
|
}]" "$out_file" > "$out_file.tmp"
|
||||||
|
|
||||||
|
mv "$out_file.tmp" "$out_file"
|
||||||
|
|
||||||
|
[ $? -eq 0 ] && echo "Successfully appended mod to ${out_file}"
|
||||||
|
|
@ -61,7 +61,7 @@
|
||||||
natural_regeneration = true
|
natural_regeneration = true
|
||||||
#What percentage of players must sleep to skip the night.
|
#What percentage of players must sleep to skip the night.
|
||||||
#Range: > 0
|
#Range: > 0
|
||||||
players_sleeping_percentage = 101
|
players_sleeping_percentage = 100
|
||||||
#The number of blocks outward from the world spawn coordinates that a player spawns in when first joining a server or when dying without a personal spawnpoint. Has no effect on servers where the default game mode is Adventure.
|
#The number of blocks outward from the world spawn coordinates that a player spawns in when first joining a server or when dying without a personal spawnpoint. Has no effect on servers where the default game mode is Adventure.
|
||||||
#Range: > 0
|
#Range: > 0
|
||||||
spawn_radius = 10
|
spawn_radius = 10
|
||||||
|
|
|
||||||
|
|
@ -16,6 +16,7 @@
|
||||||
// Items here will be unusable completely
|
// Items here will be unusable completely
|
||||||
// Example: minecraft:diamond
|
// Example: minecraft:diamond
|
||||||
"blacklisted_items": [
|
"blacklisted_items": [
|
||||||
|
"paxelsfordummies:golden_paxel",
|
||||||
"advanced_copper:copper_axe",
|
"advanced_copper:copper_axe",
|
||||||
"advanced_copper:copper_hammer",
|
"advanced_copper:copper_hammer",
|
||||||
"advanced_copper:copper_hoe",
|
"advanced_copper:copper_hoe",
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
|
|
||||||
["Configs for TNT's Harder Beds"]
|
["Configs for TNT's Harder Beds"]
|
||||||
#Whether a house should be required for beds to work
|
#Whether a house should be required for beds to work
|
||||||
requireHouse = true
|
requireHouse = false
|
||||||
#The smallest area allowed for bedrooms
|
#The smallest area allowed for bedrooms
|
||||||
minRoomSize = 8
|
minRoomSize = 8
|
||||||
#The largest area allowed for bedrooms
|
#The largest area allowed for bedrooms
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue