Skip to content
This repository has been archived by the owner on Jan 31, 2022. It is now read-only.

Commit

Permalink
Added searching for mods and other stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
Elsie19 committed Mar 9, 2021
1 parent e6b836b commit 47ee7a1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ Copy paste `bash -c "$(curl -fsSL https://raw.githubusercontent.com/Henryws/mine


## Example
I first install mine then run `mine -S`/`mine --search` to find valid servers, I decide I want to start a paper server so I would run `mine -D paper` to download and install all the necessary files. Then I would run `mine -start paper` to start it. Then I join the server locally and I realize I'm not op. I would run `mine -A paper` to enter the console and I would type `op yourName` to become op. Then I would type <kbd>ctrl</kbd> + <kbd>a</kbd> + <kbd>d</kbd> to exit the console. But I don't like paper and I want to try a modded server. I stop the server with `mine -stop paper` although the next commmand does that automatically. I would destroy the paper server with `mine -R paper` and when that's done I would install forge with `mine -D forge` and etc etc...
I first install mine then run `mine -S`/`mine --search` to find valid servers, I decide I want to start a paper server so I would run `mine -D paper` to download and install all the necessary files. Then I would run `mine -start paper` to start it. Then I join the server locally and I realize I'm not op. I would run `mine -A paper` to enter the console and I would type `op yourName` to become op. Then I would type <kbd>ctrl</kbd> + <kbd>a</kbd> + <kbd>d</kbd> to exit the console. But I don't like paper and I want to try a modded server. I stop the server with `mine -stop paper` although the next commmand does that automatically. I would destroy the paper server with `mine -R paper` and when that's done I would install forge with `mine -D forge`. I want to install a mod, I choose [Vampirism](https://www.curseforge.com/minecraft/mc-mods/vampirism-become-a-vampire). I install it with `mine -DM vampirism forge`.
10 changes: 9 additions & 1 deletion mine
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,9 @@ while test $# -gt 0; do
-A | Will open the console to the specified server | mine -A spigot
-start | Will start the specified server | mine -start paper
-stop | Will stop the specifed server | mine -stop paper
-E | Change a value of server.properties easily | mine -E fabric server-port 25567'
-E | Change a value of server.properties easily | mine -E fabric server-port 25567
-DM | Will download mod to specified server | mine -DM vampirism forge
-SM | Will search for mod availability | mine -SM ap fabric'
exit 0
;;
-D|--download)
Expand Down Expand Up @@ -382,6 +384,12 @@ while test $# -gt 0; do
exit
fi
;;
-SM|--search-mod)
MOD=$2
SERVER=$3
curl -s https://raw.githubusercontent.com/Henryws/mine/master/$SERVER-mods.json | jq keys | grep "$MOD"
exit
;;
*)
mine -h
exit 1
Expand Down

0 comments on commit 47ee7a1

Please sign in to comment.