Difference between revisions of "TrainCarts/Attachments/Seat"
Bergerkiller (talk | contribs) |
Bergerkiller (talk | contribs) |
||
(9 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
+ | <languages/> | ||
+ | <translate> | ||
+ | <!--T:1--> | ||
[[Special:MyLanguage/TrainCarts/Attachments|« Go back]] | [[Special:MyLanguage/TrainCarts/Attachments|« Go back]] | ||
+ | <!--T:2--> | ||
[[File:seat_attachment.png|thumb|A seat attachment is being configured]] | [[File:seat_attachment.png|thumb|A seat attachment is being configured]] | ||
− | ==Appearance== | + | ==Appearance== <!--T:3--> |
+ | |||
+ | <!--T:4--> | ||
Seats are invisible points where players or mobs can sit inside the train. Typically these are added as a child to other attachments where the seat is visibly displayed, such as is the case with the default Minecart. For each seat, both 1st-person (the player sitting) and 3rd-person (other players viewing the player in the seat) appearance can be configured. | Seats are invisible points where players or mobs can sit inside the train. Typically these are added as a child to other attachments where the seat is visibly displayed, such as is the case with the default Minecart. For each seat, both 1st-person (the player sitting) and 3rd-person (other players viewing the player in the seat) appearance can be configured. | ||
− | === | + | ===First Person View=== <!--T:7--> |
− | + | ||
+ | ====Mode==== <!--T:8--> | ||
+ | |||
+ | <!--T:9--> | ||
+ | {| class="wikitable" | ||
+ | ! Mode !! Description | ||
+ | |- | ||
+ | | DEFAULT || Players see themselves sitting upright at all times | ||
+ | |- | ||
+ | | INVISIBLE || Players are made invisible and cannot see themselves | ||
+ | |- | ||
+ | | HEAD || Players can only see their own head | ||
+ | |- | ||
+ | | STANDING || Players see themselves standing/walking/flying as the train moves. Their movement is controlled by the server. | ||
+ | |- | ||
+ | | THIRD_P || A fake player entity is spawned, causing players to see their own head when they look vertically. The real player is made invisible. | ||
+ | |- | ||
+ | | DYNAMIC || Uses DEFAULT when upright, and THIRD_P when moving vertical/upside-down | ||
+ | |} | ||
+ | |||
+ | ====Eye Position==== <!--T:10--> | ||
+ | |||
+ | <!--T:11--> | ||
+ | Instead of positioning the passenger by the butt, positions the player by the eyes/line of sight. If it is important that the player camera is positioned at a certain position in first person, this can be enabled to do exactly that. The position of the eyes are displayed using an arrow, and the menu also includes a preview button to see what the passenger would see. | ||
+ | |||
+ | <!--T:12--> | ||
+ | Switching it back to 'automatic' disables this feature, positioning the passenger by the butt again. | ||
+ | |||
+ | ====View Locking==== <!--T:13--> | ||
+ | |||
+ | <!--T:14--> | ||
+ | Some first-person view locking options are available. This restricts the player's ability to look around. | ||
+ | {| class="wikitable" | ||
+ | ! Mode !! Description | ||
+ | |- | ||
+ | | No view locking || The player can look around freely | ||
+ | |- | ||
+ | | Move view when seat moves (choppy) || Sends relative movement packets to rotate the camera when the seat moves. This can be quite choppy. | ||
+ | |- | ||
+ | | Free look in spectator mode || Makes the player spectate another entity, while allowing (delayed) free movement. The camera moves when the seat moves. | ||
+ | |- | ||
+ | | View locked in spectator mode || Makes the player spectate another entity. Does not allow any player input. The camera moves when the seat moves. | ||
+ | |} | ||
+ | |||
+ | ===Passenger Display=== <!--T:15--> | ||
+ | |||
+ | ====Mode==== <!--T:16--> | ||
− | + | <!--T:17--> | |
{| class="wikitable" | {| class="wikitable" | ||
− | + | ! 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==== <!--T:18--> | ||
+ | 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==== <!--T:19--> |
− | + | Controls whether the passenger body is locked into facing forwards. This is only visible in third person. | |
− | ===Exit=== | + | ===Exit=== <!--T:20--> |
A relative exit offset can be configured for every seat. Players are teleported here when ejecting from the train. | A relative exit offset can be configured for every seat. Players are teleported here when ejecting from the train. | ||
− | ===Permission=== | + | ===Permission=== <!--T:21--> |
− | A permission to enter this particular seat can be configured in the anvil menu. To reset, enter an empty space. | + | A permission node to enter this particular seat can be configured in the anvil menu. To reset, enter an empty space. |
+ | |||
+ | ==Smooth Coasters== <!--T:22--> | ||
+ | The [https://www.curseforge.com/minecraft/mc-mods/smoothcoasters 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 == <!--T:23--> | ||
+ | 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'''. | ||
+ | |||
+ | </translate> |
Latest revision as of 21:28, 30 December 2023
Appearance
Seats are invisible points where players or mobs can sit inside the train. Typically these are added as a child to other attachments where the seat is visibly displayed, such as is the case with the default Minecart. For each seat, both 1st-person (the player sitting) and 3rd-person (other players viewing the player in the seat) appearance can be configured.
First Person View
Mode
Mode | Description |
---|---|
DEFAULT | Players see themselves sitting upright at all times |
INVISIBLE | Players are made invisible and cannot see themselves |
HEAD | Players can only see their own head |
STANDING | Players see themselves standing/walking/flying as the train moves. Their movement is controlled by the server. |
THIRD_P | A fake player entity is spawned, causing players to see their own head when they look vertically. The real player is made invisible. |
DYNAMIC | Uses DEFAULT when upright, and THIRD_P when moving vertical/upside-down |
Eye Position
Instead of positioning the passenger by the butt, positions the player by the eyes/line of sight. If it is important that the player camera is positioned at a certain position in first person, this can be enabled to do exactly that. The position of the eyes are displayed using an arrow, and the menu also includes a preview button to see what the passenger would see.
Switching it back to 'automatic' disables this feature, positioning the passenger by the butt again.
View Locking
Some first-person view locking options are available. This restricts the player's ability to look around.
Mode | Description |
---|---|
No view locking | The player can look around freely |
Move view when seat moves (choppy) | Sends relative movement packets to rotate the camera when the seat moves. This can be quite choppy. |
Free look in spectator mode | Makes the player spectate another entity, while allowing (delayed) free movement. The camera moves when the seat moves. |
View locked in spectator mode | Makes the player spectate another entity. Does not allow any player input. The camera moves when the seat moves. |
Passenger Display
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.