//Model
概要
モデルアタッチメントを使えば、アタッチメントのグループをいろいろな場所に表示することができます。モデルアタッチメントを編集すると、そのモデルアタッチメントを使用しているすべてが一括で変更されます。これはシートやタイヤなど、複数の場所で何度も再利用するアタッチメントをまとめておくのに便利です。
『モデル』と同じ名前がついていますが、モデルアタッチメントはアタッチメントを再利用するためのものであり、リソースパックのカスタムモデルを使うためのものではありません! その用途には、[TrainCarts/Attachments/Item|アイテムアタッチメント]]を使ってください。
モデルアタッチメントはモデルストアからアタッチメントの設定を読み込みます。ジェネラルメニューから、アタッチメントを保存することができます。
Appearance
- The model name can be selected either through an anvil menu, or by selecting them in a dropdown menu.
- If a non-existing model name was selected (shown as red), the Load button can be used to load a new configuration. It can also overwrite existing configurations.
- The edit button edits the model configuration that is selected. This will modify the attachments in all places where it is used in a model attachment
Multi-Editing
If the same model name is used in multiple model attachments or even trains, making changes to the configuration in the model store will update all locations simultaneously.
Model Store
The Model Store is the full collection of attachments saved under a name:
- Resource packs loaded on the server can include read-only model configurations of train parts
- Models can be saved to the store in the general menu
- Models are saved to
plugins/Train_Carts/SavedModels.ymland separate module yml files in thesavedModelModulesfolder, similar to saved trains
Commands
Commands for manipulating models are available under the /train model config <name> <subcommand> set of commands. It is here you can configure a model to be saved to a separate module (its own yml file).
You can use /train model config <name> edit to edit an existing model configuration in the attachment editor.