Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add compatibility for Server-Side Waystones #44

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ If you are running 1.18.1 or lower please refer to the branch for [1.17.x](https
* [Getting started](#getting-started)
* [Features](#features)
* [How to install](#how-to-install)
* [Contributer](#contributer)
* [Contributors](#contributors)


## Getting started
Expand All @@ -30,7 +30,7 @@ This will make your explorations a bit more exciting !

At the top of the tower *(which is purposely not so easy to climb)*, you will find a chest with some loot, as well as a nice view :)

Plus, it is also compatible with the [Waystones (Fabric Edition)](https://www.curseforge.com/minecraft/mc-mods/waystones-fabric) and [Fabric Waystones](https://www.curseforge.com/minecraft/mc-mods/fabric-waystones) mod. If you have one of these mods installed a waystone will spawn on top of each tower.
Plus, it is also compatible with the [Waystones (Fabric Edition)](https://www.curseforge.com/minecraft/mc-mods/waystones-fabric), the [Fabric Waystones](https://www.curseforge.com/minecraft/mc-mods/fabric-waystones) and the [Server-Side Waystones](https://modrinth.com/mod/sswaystones) mod. If you have one of these mods installed a waystone will spawn on top of each tower.

This pack does not add any blocks or items to the game *(if that matters to you)*.

Expand All @@ -49,7 +49,7 @@ This pack does not add any blocks or items to the game *(if that matters to you)

### Features
* **Compatible with Vanilla, Fabric and Forge!**
* If [Waystones (Fabric Edition)](https://www.curseforge.com/minecraft/mc-mods/waystones-fabric) or [Fabric Waystones](https://www.curseforge.com/minecraft/mc-mods/fabric-waystones) mod is active, waystones can spawn on top of each tower!
* If [Waystones (Fabric Edition)](https://www.curseforge.com/minecraft/mc-mods/waystones-fabric), [Fabric Waystones](https://www.curseforge.com/minecraft/mc-mods/fabric-waystones) or [Server-Side Waystones](https://modrinth.com/mod/sswaystones) is active, waystones can spawn on top of each tower!
* **Only install one of them!**
* Randomly generating Towers in your world
* Great loot on top of every Tower!
Expand All @@ -59,9 +59,12 @@ This pack does not add any blocks or items to the game *(if that matters to you)
## How to install
Simply put the file `Towers_Of_The_Wild-*.zip` inside the `.minecraft/saves/{WORLD}/datapacks` directory.

## Contributer
## Contributors
* [idrae_](https://github.com/Idrae) *(original author)*
* [RawPineapple](https://github.com/RawPineapple) *(translation for zh_cn)*
* [DracoExE](https://github.com/DracoExE) *(translation for es_cl)*
* [scarf005](https://github.com/scarf005) *(translation for ko_kr)*
* [WelpSTudenT](https://github.com/WelpSTudent)
* [oskardotglobal](https://github.com/oskardotglobal) *(compatibility with Server-Side Waystones)*
* [Morio187](https://github.com/Morio187) *(compatibility with Server-Side Waystones)*

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
16 changes: 15 additions & 1 deletion helper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ echo ""
echo "[${green}1${reset}] Change towers to 'regular'"
echo "[${green}2${reset}] Change towers to 'fwaystones'"
echo "[${green}3${reset}] Change towers to 'waystones'"
echo "[${green}4${reset}] Change towers to 'sswaystones'"

echo ""
read -p "Select your option [${green}1${reset}/${green}2${reset}/${green}3${reset}]: " input
Expand All @@ -30,6 +31,7 @@ topFileName="top.json"

intendation=" "
regularPrefix=""
serverSideWaystonesPrefix="sswaystones_"
fabricWaystonesPrefix="fwaystones_"
waystonesPrefix="waystone_"

Expand Down Expand Up @@ -77,4 +79,16 @@ if [ $input -eq 3 ]; then
replaceLocation "$waystonesPrefix" "$ocean"
replaceLocation "$waystonesPrefix" "$oceanWarm"
replaceLocation "$waystonesPrefix" "$regular"
fi
fi

# SERVER SIDE WAYSTONES TOWERS
#####################################
if [ $input -eq 4 ]; then
replaceLocation "$serverSideWaystonesPrefix" "$derelict"
replaceLocation "$serverSideWaystonesPrefix" "$derelictGrass"
replaceLocation "$serverSideWaystonesPrefix" "$ice"
replaceLocation "$serverSideWaystonesPrefix" "$jungle"
replaceLocation "$serverSideWaystonesPrefix" "$ocean"
replaceLocation "$serverSideWaystonesPrefix" "$oceanWarm"
replaceLocation "$serverSideWaystonesPrefix" "$regular"
fi