Difference between revisions of "TrainCarts/API"
Jump to navigation
Jump to search
Bergerkiller (talk | contribs) (Created page with "« Go back TrainCarts is written in a way to allow third-party plugins to extend it. Various mechanics are built-in api's implemented by TrainCarts, such as th...") |
Bergerkiller (talk | contribs) (Marked this version for translation) |
||
(6 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | [[TrainCarts|« Go back]] | + | <languages/> |
+ | <translate> | ||
+ | <!--T:1--> | ||
+ | [[Special:MyLanguage/TrainCarts|« Go back]] | ||
+ | <!--T:2--> | ||
TrainCarts is written in a way to allow third-party plugins to extend it. Various mechanics are built-in api's implemented by TrainCarts, such as the different vanilla rails, signs and more. For programmers, this page details the different modules in TrainCarts that can be used in third-party plugins. | TrainCarts is written in a way to allow third-party plugins to extend it. Various mechanics are built-in api's implemented by TrainCarts, such as the different vanilla rails, signs and more. For programmers, this page details the different modules in TrainCarts that can be used in third-party plugins. | ||
− | |||
− | |||
+ | |||
+ | == Custom Signs == <!--T:3--> | ||
+ | |||
+ | <!--T:4--> | ||
+ | The '''SignAction''' API allows custom signs to be registered with the plugin so that trains can activate them, much like the built-in [[Special:MyLanguage/TrainCarts/Signs|TrainCarts signs]]. | ||
+ | |||
+ | <!--T:5--> | ||
[[Special:MyLanguage/TrainCarts/API/SignAction|» SignAction API]] | [[Special:MyLanguage/TrainCarts/API/SignAction|» SignAction API]] | ||
− | |||
− | |||
+ | |||
+ | == Custom Track == <!--T:6--> | ||
+ | |||
+ | <!--T:7--> | ||
+ | The '''RailType''' and '''RailLogic''' API allows custom rail types to be registered. Vanilla Minecart Track uses this same API. | ||
+ | |||
+ | <!--T:8--> | ||
[[Special:MyLanguage/TrainCarts/API/Rail|» Rail API]] | [[Special:MyLanguage/TrainCarts/API/Rail|» Rail API]] | ||
− | |||
− | |||
+ | |||
+ | == Custom Attachments == <!--T:9--> | ||
+ | |||
+ | <!--T:10--> | ||
+ | Custom '''Attachment Types''' can be registered to extend what visible capabilities trains can support. Once registered, they become selectable in the in-game [[Special:MyLanguage/TrainCarts/Attachments|attachment editor menu]]. | ||
+ | |||
+ | <!--T:11--> | ||
[[Special:MyLanguage/TrainCarts/API/Attachments|» Attachments API]] | [[Special:MyLanguage/TrainCarts/API/Attachments|» Attachments API]] | ||
+ | |||
+ | </translate> |
Latest revision as of 12:31, 3 September 2024
TrainCarts is written in a way to allow third-party plugins to extend it. Various mechanics are built-in api's implemented by TrainCarts, such as the different vanilla rails, signs and more. For programmers, this page details the different modules in TrainCarts that can be used in third-party plugins.
Custom Signs
The SignAction API allows custom signs to be registered with the plugin so that trains can activate them, much like the built-in TrainCarts signs.
Custom Track
The RailType and RailLogic API allows custom rail types to be registered. Vanilla Minecart Track uses this same API.
Custom Attachments
Custom Attachment Types can be registered to extend what visible capabilities trains can support. Once registered, they become selectable in the in-game attachment editor menu.