{"id":55890,"date":"2026-06-03T05:22:05","date_gmt":"2026-06-03T02:22:05","guid":{"rendered":"https:\/\/vpesports.com\/minecraft\/mods\/deltatime-datapack\/"},"modified":"2026-06-03T05:22:05","modified_gmt":"2026-06-03T02:22:05","slug":"deltatime-datapack","status":"publish","type":"mod","link":"https:\/\/vpesports.com\/minecraft\/mods\/deltatime-datapack\/","title":{"rendered":"Deltatime"},"content":{"rendered":"<p># WARNING!<br \/>\n&#8211; this pack was designed to be used with Multi world border mod<br \/>\n&#8211; if you don&#8217;t use this mod, you need to adjust the minimal diameter of the worldborder in the datapack (decreasing accuracy) to avoid getting unexpected worldborder damage<\/p>\n<p>## Scoreboard values<br \/>\nScoreboard objective: deltatime<br \/>\n&#8211; tickdelta -> previous tick duration (defaultly in milliseconds) (maxes out at 10 seconds by default)<br \/>\n&#8211; tickstoadd -> number to add to a counter, which you don&#8217;t want to be affected by lags (more info below on how to use it effectively)<br \/>\n&#8211; accuracy <- the accuracy of the timings (defaults to 1000 -> milliseconds)<br \/>\n  &#8211; for even more accuracy, you need to edit this datapack&#8217;s worldborder&#8217;s minimal values<br \/>\n  &#8211; for even even more accuracy, you need to use my mod with the same name<\/p>\n<p>## How to use tickstoadd<br \/>\nexample:<br \/>\n&#8220;`<br \/>\nscoreboard players operation untilactionprev objective = untilaction objective<br \/>\nscoreboard players operation untilaction objective -= tickstoadd deltatime<br \/>\nexecute if score untilaction objective matches ..20 unless score untilactionprev objective matches ..20 run function my:action1<br \/>\nexecute if score untilaction objective matches ..0 unless score untilactionprev objective matches ..0 run function my:action2<br \/>\n&#8220;`<br \/>\n&#8211; In this example, we are trying to run &#8220;function my:action2&#8221; after &#8220;untilaction objective&#8221; ticks run and a &#8220;function my:action1&#8221; 1 second before it.<br \/>\n&#8211; If we want to make it independant of server performance, we need to add a larger number of ticks to the counter, if the server lags.<br \/>\n&#8211; This means that there is a possibility that the counter jumps over the 20 or 0.<br \/>\n&#8211; In order to prevent the actions from not executing, we need to have another variable, which tells us the tickcount before the tickstoadd get added (subtracted). Then we need to check if the previous count is higher than our desired value and the current count is exactly or less than our desired value.<\/p>\n<p>If you just want to time one action, you can just check for ..0 without the helper variable<\/p>\n<p>(note that if you set the counter to a lower\/higher (according to the direction of counting) value while the counter is counting and you won&#8217;t also change the previous count, it will execute everything in between the previous and current value)<\/p>\n<p>## How does the datapack work?<br \/>\n&#8211; worldborder in minecraft does not time itself based on ticks but on real seconds<br \/>\n&#8211; this makes it possible to calculate the time by changing the border&#8217;s size with a set duration<br \/>\n&#8211; the next tick just get the border&#8217;s size and calculate how much time passed based on how much has the border changed<\/p>\n<p>Also check out the mod version for even better accuracy! (although even less maintained)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Keep track of the real time even on laggy servers (uses the worldborder method)<\/p>\n","protected":false},"featured_media":55891,"template":"","meta":{"_minecraft_slug":"deltatime-datapack","_minecraft_project_id":"FfDHZC8G","_minecraft_author":"SmajloSlovakian","_minecraft_license":"GPL-3.0-or-later","_minecraft_downloads":650,"_minecraft_follows":1,"_minecraft_client_side":"optional","_minecraft_server_side":"required","_minecraft_storage_type":"zip","_minecraft_archive_name":"deltatime-datapack.zip","_minecraft_size_bytes":95622,"_minecraft_version_count":4,"_minecraft_updated_at":"2026-05-16T06:43:19.003301Z","_minecraft_date_created":"2024-04-12T07:28:41.783086Z","_minecraft_date_modified":"2024-06-25T14:44:19.898349Z","_minecraft_project_url":"https:\/\/modrinth.com\/mod\/deltatime-datapack","_minecraft_icon_attachment_id":55891,"_minecraft_imported_at":"2026-06-03T02:22:06+00:00","_minecraft_import_hash":"ac4465dacea78cf028463f9a370730e2","_minecraft_versions":"","_minecraft_links":"","_minecraft_gallery":"","_minecraft_api_metadata":""},"mod_category":[43,84,89,873,126,90,92],"mod_loader":[86],"minecraft_version":[59,36,60,93,94,62],"class_list":["post-55890","mod","type-mod","status-publish","has-post-thumbnail","hentry","mod_category-cursed","mod_category-datapack","mod_category-game-mechanics","mod_category-library","mod_category-management","mod_category-optimization","mod_category-utility","mod_loader-datapack","minecraft_version-1-20","minecraft_version-1-20-1","minecraft_version-1-20-2","minecraft_version-1-20-3","minecraft_version-1-20-4","minecraft_version-1-21"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Deltatime - 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\/deltatime-datapack\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Deltatime - Minecraft\" \/>\n<meta property=\"og:description\" content=\"Keep track of the real time even on laggy servers (uses the worldborder method)\" \/>\n<meta property=\"og:url\" content=\"https:\/\/vpesports.com\/minecraft\/mods\/deltatime-datapack\/\" \/>\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=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/deltatime-datapack\\\/\",\"url\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/deltatime-datapack\\\/\",\"name\":\"Deltatime - Minecraft\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/deltatime-datapack\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/deltatime-datapack\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/wp-content\\\/uploads\\\/2026\\\/06\\\/deltatime-datapack-icon-972c99e1928c6cd369ae72dd75068f054129126f.png\",\"datePublished\":\"2026-06-03T02:22:05+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/deltatime-datapack\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/deltatime-datapack\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/deltatime-datapack\\\/#primaryimage\",\"url\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/wp-content\\\/uploads\\\/2026\\\/06\\\/deltatime-datapack-icon-972c99e1928c6cd369ae72dd75068f054129126f.png\",\"contentUrl\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/wp-content\\\/uploads\\\/2026\\\/06\\\/deltatime-datapack-icon-972c99e1928c6cd369ae72dd75068f054129126f.png\",\"width\":32,\"height\":32},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/deltatime-datapack\\\/#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\":\"Deltatime\"}]},{\"@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":"Deltatime - 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\/deltatime-datapack\/","og_locale":"en_US","og_type":"article","og_title":"Deltatime - Minecraft","og_description":"Keep track of the real time even on laggy servers (uses the worldborder method)","og_url":"https:\/\/vpesports.com\/minecraft\/mods\/deltatime-datapack\/","og_site_name":"Minecraft","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/vpesports.com\/minecraft\/mods\/deltatime-datapack\/","url":"https:\/\/vpesports.com\/minecraft\/mods\/deltatime-datapack\/","name":"Deltatime - Minecraft","isPartOf":{"@id":"https:\/\/vpesports.com\/minecraft\/#website"},"primaryImageOfPage":{"@id":"https:\/\/vpesports.com\/minecraft\/mods\/deltatime-datapack\/#primaryimage"},"image":{"@id":"https:\/\/vpesports.com\/minecraft\/mods\/deltatime-datapack\/#primaryimage"},"thumbnailUrl":"https:\/\/vpesports.com\/minecraft\/wp-content\/uploads\/2026\/06\/deltatime-datapack-icon-972c99e1928c6cd369ae72dd75068f054129126f.png","datePublished":"2026-06-03T02:22:05+00:00","breadcrumb":{"@id":"https:\/\/vpesports.com\/minecraft\/mods\/deltatime-datapack\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/vpesports.com\/minecraft\/mods\/deltatime-datapack\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/vpesports.com\/minecraft\/mods\/deltatime-datapack\/#primaryimage","url":"https:\/\/vpesports.com\/minecraft\/wp-content\/uploads\/2026\/06\/deltatime-datapack-icon-972c99e1928c6cd369ae72dd75068f054129126f.png","contentUrl":"https:\/\/vpesports.com\/minecraft\/wp-content\/uploads\/2026\/06\/deltatime-datapack-icon-972c99e1928c6cd369ae72dd75068f054129126f.png","width":32,"height":32},{"@type":"BreadcrumbList","@id":"https:\/\/vpesports.com\/minecraft\/mods\/deltatime-datapack\/#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":"Deltatime"}]},{"@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\/55890","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\/55891"}],"wp:attachment":[{"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/media?parent=55890"}],"wp:term":[{"taxonomy":"mod_category","embeddable":true,"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/mod_category?post=55890"},{"taxonomy":"mod_loader","embeddable":true,"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/mod_loader?post=55890"},{"taxonomy":"minecraft_version","embeddable":true,"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/minecraft_version?post=55890"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}