//Seat
外観
座席はプレイヤーやモブが列車に座る際の位置で、視覚的な表示はされません。通常、座席アタッチメントは、ふつうのトロッコなどほかの表示がなされるアタッチメントの子として配置され、その位置に座るよう設定されます。それぞれの座席ごとに一人称視点での見た目(プレイヤー自身が座る時)と、三人称視点での見た目(座っているプレイヤーを他の人が見る時)を設定できます。
一人称視点
モード
| モード | 説明 |
|---|---|
| DEFAULT | プレイヤーは常に自分が座っているのを見ることができます。 |
| INVISIBLE | プレイヤーは不可視状態になり、自分自身を見ることができません。 |
| HEAD | プレイヤーは自身の頭だけを見ることができます。 |
| STANDING | プレイヤーは自分自身が列車の動きにあわせて立つ、歩く、飛ぶモーションを見ることができます。この動きはサーバー側から制御されます。 |
| THIRD_P | もうひとつのプレイヤーエンティティが作成され、プレイヤーが視線を上下に動かすと、自分自身が見えるようになります。本物のプレイヤーは不可視状態になります。 |
| DYNAMIC | 直立時はDEFAULTに、上下に動かす時はTHIRD_Pに動的にモードを切り替えます。 |
視点の位置
プレイヤーの位置は、腰のかわりに視点の座標を指定します。一人称視点でのプレイヤーのカメラを特定の位置にピッタリ配置したい場合は、この機能で正確に配置することができます。目の位置は矢印を用いて表示され、またメニューには乗客が実際どのようなふうに見えるのかを試せるプレビューボタンもあります。
『automatic』に戻すとこの機能は無効化され、乗客の位置は腰の位置で指定されるようになります。
視点のロック
一人称視点において、いくつかのプレイヤーの視点の位置を固定するオプションがあります。
| モード | 説明 |
|---|---|
| No view locking | プレイヤーは自由に周囲を見回すことができます。 |
| Move view when seat moves (choppy) | 座席が移動する際に、それに連動した移動のパケットを送信します。動きにややラグを生じることがあります。 |
| Free look in spectator mode | プレイヤーを別のエンティティのスペクテイターモードに設定し、遅延のある自由な移動を可能にします。カメラは座席が移動する時に追従して動きます。 |
| View locked in spectator mode | プレイヤーをスペクテイターモードにします。ただし、プレイヤーからの入力は受け付けません。カメラは座席が移動する時に追従して動きます。 |
乗客の表示
モード
| Mode | Description |
|---|---|
| DEFAULT | Passenger is shown seated upright as a normal player |
| ELYTRA_SIT | Passenger is shown as flying an elytra in a sort-of sitting pose. Allows for functional pitch. |
| STANDING | Passenger is shown standing/walking/flying as the train moves. |
| HEAD | Only the passenger's head is shown |
| NO_NAMETAG | Same as DEFAULT, except the players nametag is hidden |
| INVISIBLE | Passenger is invisible |
Item Display
An item can be configured to be displayed when the seat is occupied. This can be used in combination with the invisible display modes to show a custom model of a passenger.
Body Locking
Controls whether the passenger body is locked into facing forwards. This is only visible in third person.
Exit
A relative exit offset can be configured for every seat. Players are teleported here when ejecting from the train.
Permission
A permission node to enter this particular seat can be configured in the anvil menu. To reset, enter an empty space.
Smooth Coasters
The Smooth Coasters mod can be installed on the client. TrainCarts will automatically detect players that use this mod and send smooth rotations of the passengers. This also enables the seat to roll, which is otherwise not supported.
Hitbox
Display entities cannot be clicked, as they have no hitbox. To allow for players to get into the seat anyway, you must add a hitbox attachment.