{"id":88138,"date":"2026-06-05T03:54:24","date_gmt":"2026-06-05T00:54:24","guid":{"rendered":"https:\/\/vpesports.com\/minecraft\/mods\/joannet-library\/"},"modified":"2026-06-05T03:54:24","modified_gmt":"2026-06-05T00:54:24","slug":"joannet-library","status":"publish","type":"mod","link":"https:\/\/vpesports.com\/minecraft\/mods\/joannet-library\/","title":{"rendered":"JoanNet Neue &#8211; MTR-NTE JavaScript Library"},"content":{"rendered":"<p># STAY TUNED FOR A NEW (and a better&#8230;) JOANNET LIBRARY!<br \/>\n&#8212;<\/p>\n<p># JoanNet Version 0.1 documentation:<br \/>\n## This library is NOT compatible with MTR 4, only MTR 3.<br \/>\n## Built-in Features<\/p>\n<p>### `fetch(url: String)`<br \/>\n**\u26a0\ufe0f Internal use only. Do not use.**<br \/>\nPerforms a GET request using the provided URL.<br \/>\n&#8220;`js<br \/>\nfunction fetch(url) { return response }<br \/>\n&#8220;`<br \/>\n****<\/p>\n<p>### `fetchDepartures(stationID: String, url: String, port: Number, secure: Boolean)`<br \/>\n**Requires `fetch()` to be imported.**<br \/>\nRetrieves the next departures from a station using its code. Optional parameters allow you to set a custom base URL, port, and HTTPS mode. If all three are `null`, it defaults to:<br \/>\n`http:\/\/localhost:8888\/arrivals?stationId=<stationID>`<br \/>\n&#8220;`js<br \/>\nfunction fetchDepartures(stationID, url, port, secure) { return Array<Object> }<br \/>\n&#8220;`<br \/>\n****<\/p>\n<p>### `fetchDeparturesFromPlatform(stationID: String, platformID: String, url: String, port: Number, secure: Boolean)`<br \/>\n**Requires `fetch()` to be imported.**<br \/>\nGets the next departures from a specific platform of a station. URL, port, and HTTPS are optional. Defaults to:<br \/>\n`http:\/\/localhost:8888\/arrivals?stationId=<stationID>`<br \/>\n&#8220;`js<br \/>\nfunction fetchDeparturesFromPlatform(stationID, platformID, url, port, secure) { return Array<Object> }<br \/>\n&#8220;`<br \/>\n****<\/p>\n<p>### `fetchFirstDepartureFromPlatform(stationID: String, platformID: String, url: String, port: Number, secure: Boolean)`<br \/>\n**Requires `fetch()` to be imported.**<br \/>\nReturns **only the first** upcoming departure for a specific platform. Same URL behavior as above.<br \/>\n&#8220;`js<br \/>\nfunction fetchFirstDepartureFromPlatform(stationID, platformID, url, port, secure) { return Object }<br \/>\n&#8220;`<br \/>\n****<\/p>\n<p>### `fetchMTRData(url: String, port: Number, secure: Boolean)`<br \/>\n**Requires `fetch()` to be imported.**<br \/>\nFetches all MTR data and combines the dimensions into one object. Optional base URL, port, and HTTPS settings apply. Defaults to:<br \/>\n`http:\/\/localhost:8888\/data`<br \/>\n&#8220;`js<br \/>\nfunction fetchMTRData(url, port, secure) { return Object }<br \/>\n&#8220;`<br \/>\n****<\/p>\n<p>### `formatStop(stationName: String)`<br \/>\nFormats a station name by trimming whitespace, removing emojis, and replacing single pipe characters.<br \/>\nIf the name has multiple parts, extra names are grouped in parentheses.<\/p>\n<p>&#8211; Example 1: `&#8221;East Hills||Pittsburgh|East&#8221;` \u2192 `&#8221;East Hills (Pittsburgh\/East)&#8221;`<br \/>\n&#8211; Example 2: `&#8221;West Ham \ud83c\udf56||Stewie||South \ud83e\udded&#8221;` \u2192 `&#8221;West Ham (Stewie, South)&#8221;`<br \/>\n&#8220;`js<br \/>\nfunction formatStop(stationName) { return String }<br \/>\n&#8220;`<br \/>\n****<\/p>\n<p>### `getCurrentFormattedTime()`<br \/>\n#### \u26a0\ufe0f DEPRECATED: Use `getTime(ms)` instead.<br \/>\nReturns the current time as `&#8221;HH:MM&#8221;`.<br \/>\n&#8220;`js<br \/>\nfunction getCurrentFormattedTime() { return String }<br \/>\n&#8220;`<br \/>\n****<\/p>\n<p>### `getCurrentStation(dataset: Object, stationID: String)`<br \/>\n#### \u26a0\ufe0f DEPRECATED: Dataset functions will be removed in future versions.<br \/>\nReturns the station data for a given station ID from the provided dataset.<br \/>\nFails if the station is not found or if `stationID` is not a string.<br \/>\n&#8220;`js<br \/>\nfunction getCurrentStation(dataset, stationID) { return Object }<br \/>\n&#8220;`<br \/>\n****<\/p>\n<p>### `getRemainingMinutes(arrivalTime: Number)`<br \/>\nReturns the number of minutes remaining until the given arrival time.<br \/>\nReturns `0` if there&#8217;s an error or if arrival is in less than 1 minute.<br \/>\nFails if `arrivalTime` is undefined or not a number.<br \/>\n&#8220;`js<br \/>\nfunction getRemainingMinutes(arrivalTime) { return Number }<br \/>\n&#8220;`<br \/>\n****<\/p>\n<p>### `getStationData(xPos: Number, zPos: Number, url: String, port: Number, secure: Boolean)`<br \/>\n**Requires `fetchMTRData()` to be imported.**<br \/>\nReturns the closest station to the given coordinates. URL, port, and HTTPS are optional. Defaults to:<br \/>\n`http:\/\/localhost:8888\/data`<\/p>\n<p>> \u26a0\ufe0f **Important**: The MTR API won&#8217;t list a station unless a route serves it. Place this script only *after* service has started.<\/p>\n<p>&#8220;`js<br \/>\nfunction getStationData(xPos, zPos, url, port, secure) { return Object }<br \/>\n&#8220;`<br \/>\n****<\/p>\n<p>### `getStationsOfRouteFrom(dataset: Object, routeName: String, stationName: String)`<br \/>\n#### \u26a0\ufe0f DEPRECATED: Dataset functions will be removed in future versions.<br \/>\nReturns a list of the remaining stations on a route from a given station.<br \/>\nRoute and station names must match exactly with those in the MTR API.<br \/>\n&#8220;`js<br \/>\nfunction getStationsOfRouteFrom(dataset, routeName, stationName) { return Array<String> }<br \/>\n&#8220;`<br \/>\n****<\/p>\n<p>### `getTime(ms: Number?)`<br \/>\nReturns the time in `&#8221;HH:MM&#8221;` format.<br \/>\nIf `ms` is `null`, returns the current system time.<\/p>\n<p>&#8211; `getTime(1750843821742)` \u2192 `&#8221;11:30&#8243;`<br \/>\n&#8211; `getTime(null)` \u2192 `&#8221;09:35&#8243;` (e.g. if run on June 25, 2025 at 09:35:14)<\/p>\n<p>&#8220;`js<br \/>\nfunction getTime(ms) { return String }<br \/>\n&#8220;`<\/p>\n<p>&#8212;<\/p>\n<p>## Troubleshooting<\/p>\n<p>**Q: The scripts run slowly or produce errors on some models.**<br \/>\n**A:** Low-spec computers may struggle with multiple script models. Try reducing the number of active models in the render area or lower their refresh rate.<br \/>\nMore info: https:\/\/wiki.minecrafttransitrailway.com\/mtr_addon:nte:js:eyecandy<\/p>\n<p>&#8212;<\/p>\n<p>**Q: The model doesn&#8217;t appear in the resource pack.**<br \/>\n**A:** Reload the resource packs in-game using `F3 + T`.<\/p>\n<p>&#8212;<\/p>\n<p>**Q: `getStationData()` does not return the nearest station.**<br \/>\n**A:** Has the station already been assigned to a route and started service?<br \/>\nThe MTR API won&#8217;t recognize it until active service is detected.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>JavaScript library designed to work with decorative blocks that use scripts in my resource packs released for Minecraft with MTR-NTE mods.<\/p>\n<p>Only compatible with MTR version 3.<\/p>\n","protected":false},"featured_media":88139,"template":"","meta":{"_minecraft_slug":"joannet-library","_minecraft_project_id":"6UxtXlus","_minecraft_author":"JCIBravo","_minecraft_license":"MIT","_minecraft_downloads":691,"_minecraft_follows":4,"_minecraft_client_side":"required","_minecraft_server_side":"unsupported","_minecraft_storage_type":"zip","_minecraft_archive_name":"joannet-library.zip","_minecraft_size_bytes":43048,"_minecraft_version_count":3,"_minecraft_updated_at":"2026-05-16T09:28:48.520370Z","_minecraft_date_created":"2025-06-30T04:26:25.200027Z","_minecraft_date_modified":"2025-12-24T08:43:44.833873Z","_minecraft_project_url":"https:\/\/modrinth.com\/mod\/joannet-library","_minecraft_icon_attachment_id":88139,"_minecraft_imported_at":"2026-06-05T00:54:25+00:00","_minecraft_import_hash":"c0e2e61eaf17b1b8b001b626f4a6985a","_minecraft_versions":"","_minecraft_links":"","_minecraft_gallery":"","_minecraft_api_metadata":""},"mod_category":[4,88,6,35,45,92],"mod_loader":[9],"minecraft_version":[50,53,56,57,58,36],"class_list":["post-88138","mod","type-mod","status-publish","has-post-thumbnail","hentry","mod_category-blocks","mod_category-equipment","mod_category-minecraft","mod_category-modded","mod_category-models","mod_category-utility","mod_loader-minecraft","minecraft_version-1-17-1","minecraft_version-1-18-2","minecraft_version-1-19-2","minecraft_version-1-19-3","minecraft_version-1-19-4","minecraft_version-1-20-1"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>JoanNet Neue - MTR-NTE JavaScript Library - Minecraft<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/vpesports.com\/minecraft\/mods\/joannet-library\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"JoanNet Neue - MTR-NTE JavaScript Library - Minecraft\" \/>\n<meta property=\"og:description\" content=\"JavaScript library designed to work with decorative blocks that use scripts in my resource packs released for Minecraft with MTR-NTE mods. Only compatible with MTR version 3.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/vpesports.com\/minecraft\/mods\/joannet-library\/\" \/>\n<meta property=\"og:site_name\" content=\"Minecraft\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/joannet-library\\\/\",\"url\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/joannet-library\\\/\",\"name\":\"JoanNet Neue - MTR-NTE JavaScript Library - Minecraft\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/joannet-library\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/joannet-library\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/wp-content\\\/uploads\\\/2026\\\/06\\\/joannet-library-icon-1d60d4bc8102c14b28bfbcb9e5e1ce21c595318a_96.webp\",\"datePublished\":\"2026-06-05T00:54:24+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/joannet-library\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/joannet-library\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/joannet-library\\\/#primaryimage\",\"url\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/wp-content\\\/uploads\\\/2026\\\/06\\\/joannet-library-icon-1d60d4bc8102c14b28bfbcb9e5e1ce21c595318a_96.webp\",\"contentUrl\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/wp-content\\\/uploads\\\/2026\\\/06\\\/joannet-library-icon-1d60d4bc8102c14b28bfbcb9e5e1ce21c595318a_96.webp\",\"width\":64,\"height\":64},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/joannet-library\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Mods\",\"item\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"JoanNet Neue &#8211; MTR-NTE JavaScript Library\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/#website\",\"url\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/\",\"name\":\"Minecraft\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"JoanNet Neue - MTR-NTE JavaScript Library - Minecraft","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/vpesports.com\/minecraft\/mods\/joannet-library\/","og_locale":"en_US","og_type":"article","og_title":"JoanNet Neue - MTR-NTE JavaScript Library - Minecraft","og_description":"JavaScript library designed to work with decorative blocks that use scripts in my resource packs released for Minecraft with MTR-NTE mods. Only compatible with MTR version 3.","og_url":"https:\/\/vpesports.com\/minecraft\/mods\/joannet-library\/","og_site_name":"Minecraft","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/vpesports.com\/minecraft\/mods\/joannet-library\/","url":"https:\/\/vpesports.com\/minecraft\/mods\/joannet-library\/","name":"JoanNet Neue - MTR-NTE JavaScript Library - Minecraft","isPartOf":{"@id":"https:\/\/vpesports.com\/minecraft\/#website"},"primaryImageOfPage":{"@id":"https:\/\/vpesports.com\/minecraft\/mods\/joannet-library\/#primaryimage"},"image":{"@id":"https:\/\/vpesports.com\/minecraft\/mods\/joannet-library\/#primaryimage"},"thumbnailUrl":"https:\/\/vpesports.com\/minecraft\/wp-content\/uploads\/2026\/06\/joannet-library-icon-1d60d4bc8102c14b28bfbcb9e5e1ce21c595318a_96.webp","datePublished":"2026-06-05T00:54:24+00:00","breadcrumb":{"@id":"https:\/\/vpesports.com\/minecraft\/mods\/joannet-library\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/vpesports.com\/minecraft\/mods\/joannet-library\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/vpesports.com\/minecraft\/mods\/joannet-library\/#primaryimage","url":"https:\/\/vpesports.com\/minecraft\/wp-content\/uploads\/2026\/06\/joannet-library-icon-1d60d4bc8102c14b28bfbcb9e5e1ce21c595318a_96.webp","contentUrl":"https:\/\/vpesports.com\/minecraft\/wp-content\/uploads\/2026\/06\/joannet-library-icon-1d60d4bc8102c14b28bfbcb9e5e1ce21c595318a_96.webp","width":64,"height":64},{"@type":"BreadcrumbList","@id":"https:\/\/vpesports.com\/minecraft\/mods\/joannet-library\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/vpesports.com\/minecraft\/"},{"@type":"ListItem","position":2,"name":"Mods","item":"https:\/\/vpesports.com\/minecraft\/mods\/"},{"@type":"ListItem","position":3,"name":"JoanNet Neue &#8211; MTR-NTE JavaScript Library"}]},{"@type":"WebSite","@id":"https:\/\/vpesports.com\/minecraft\/#website","url":"https:\/\/vpesports.com\/minecraft\/","name":"Minecraft","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/vpesports.com\/minecraft\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/mod\/88138","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/mod"}],"about":[{"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/types\/mod"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/media\/88139"}],"wp:attachment":[{"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/media?parent=88138"}],"wp:term":[{"taxonomy":"mod_category","embeddable":true,"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/mod_category?post=88138"},{"taxonomy":"mod_loader","embeddable":true,"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/mod_loader?post=88138"},{"taxonomy":"minecraft_version","embeddable":true,"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/minecraft_version?post=88138"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}