modded-server Packwizでのmod編集作業
補足
$は無視 <>も打たない
1. sshでサーバにアクセスする
code:bash
$ ssh user@<Server IP>
# password:<Password>
2. modリストフォルダに移動する
code:bash
$ cd /home/user/minecraft/modpack/working
3. packwizコマンドでmodpackを編集する
Mod追加
code:bash
## CurseForge
$ packwiz cf add "<modname> or <project slug or URL>"
# <URL>は普通にURLだが、"URL"とダブルクオーテーションで囲わないとシェルの解釈でエラーが発生する
## Modrinth
$ packwiz mr add "<modname> or <project slug or URL>"
# <URL>は普通にURLだが、"URL"とダブルクオーテーションで囲わないとシェルの解釈でエラーが発生する
与えられた文字列で一つのmodに定まらないときは、複数の選択肢が表示されるので、対応する数字を入力してインストールを行う。
が、表示されないことも多いのでSlugもしくはURLで与えたほうが確実
code:example
$ packwiz cf add universal grid
Searching CurseForge...
0) Cancel
1) *Universal Totem (This Datapack Makes Every Item Protect you like the Totem Of Undying. *Supports Modded Items*)
2) Universal Totem (Makes Every Item In The Game Protect You Like The Totem Of Undying. Supports Modded Items!)
3) Universal Gaming Creative (creative inspired mod pack ) 4) Universal Stone Blocks (Datapack that tweaks recipes that include various stones to make them more universal. Also adds quite a few new ways to craft stone blocks.)
5) Cute Grid Bed Patterns (This is a resource pack that changes the default vanilla bed with a new custom bed model, along with colorful overlapping grid patterns on each bed!)
6) Universal Enchantment Splitter (A datapack that allows you to extract (split) enchantments from an enchanted book to two enchanted books. It also allows you to extract (remove) enchantment from an item to the enchanted book.)
7) AE2 Universal Press (Adds a Universal Press For AE2)
8) Universal Wrench (Universal Wrench compatible with many industrial mods)
9) StoryAnvil's Universal ore highlighter (Ore borders with compatibility with a lot of mods like create, mekanism, thermal foundation, ad astra and buch of others)
10) Universal 3D Archery - Bow and Crossbow (A 3D Bow and Crossbow that work with EVERY Resource Pack!)
Choose a number:
また、依存関係のインストールが要求された時もYを入力してインストールする。
別のmodで同じ依存関係を要求されても、後に入れたほうがそのmodのtomlファイルを上書きするため、依存関係は全部Yで良い
その他の操作
code:bash
## mod削除
$ packwiz remove <slug>
# slugでしか削除できない、modsフォルダ以下に一覧があるから参考に
## mod一覧表示
$ packwiz list
4. modpackを外部に公開する
backup_mod.shを実行することで、current-releaseフォルダにmodpackのコピーが配置され、外部に公開される。
code:bash
$ update_mod_live.sh
# 実際には/home/user/minecraft/util/scripts/update_mod_live.shにある