TrainCarts/Attachments/Item
Appearance
By pressing Jump (spacebar) a menu can be opened to select a different item or block. If a resource pack is configured, an inventory menu is opened with the custom models that exist in the resource pack. Otherwise, a grid of blocks and items is displayed.
Additional menus can be opened by pressing Up/Down (W/S). It is here that special properties such as Unbreakable and Custom Model Data can be set. This might be important for custom resource pack models. For some items, such as tools, the durability of the item is configurable using Left/Right (A/D) input.
Instead of using the in-map menus you can also drop an item from your inventory with this menu open to set an item.
Item Model Dialog
When you have a resource pack configured in your server.properties
an item model search dialog becomes available. This dialog has easier click navigation of the entire resource pack, and includes a search dialog. You can open this dialog anywhere as a creative menu using the /train model search
command.
Position
When the item type is selected, an additional "mode" and "transform" option is made available in the Position menu. This controls how the item is displayed. If the server version is below 1.20, then the mode option is unavailable and only display using armorstands is supported.
Mode
Mode | Function |
---|---|
Hybrid | Uses a display entity for Minecraft clients on version 1.20 or later (viaversion support). Uses an armorstand for clients on versions before that. Display scale is not configurable. |
Armorstand | Uses an armorstand to display the item. Rotation will be less smooth than with display entities. |
Display | Uses a display entity to display the item. Rotation will be smooth, and scale can be configured in the Position menu. |
Transform
Sets what equipment slot the item is put in. In hybrid mode, shows a display or armorstand icon to represent how the item is positioned. This is important for smooth rotations. A yellow "S" means the armorstand is small, or, 'baby'. The available slots are head, left hand, right hand, chestplate, legs and feet. For the display mode, additional options are available such as GUI, ground and fixed (item frame).
Size
If the mode is set to display, then the item scale size (x/y/z) can be set as well. Pressing down (S) on the z-axis selects all three to uniform-scale the item.
Clip
If the mode is set to display, then a clip size can be set. By default this is set to disabled, which disables view clipping entirely. It can help client performance to set this clip size to something roughly the size of the item. That way when players don't look at the item, it is not rendered.
Armorstands don't support this feature, and they have a problem with models disappearing when looking away. For this reason, stick to hybrid or display mode if you can.