{"id":49755194,"url":"https://github.com/runtoolkit/datalib","last_synced_at":"2026-05-24T21:00:43.228Z","repository":{"id":356896320,"uuid":"1233895476","full_name":"runtoolkit/dataLib","owner":"runtoolkit","description":"Advanced Minecraft Java datapack library for storage, predicates, events, and utilities.","archived":false,"fork":false,"pushed_at":"2026-05-24T16:50:15.000Z","size":1415,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-24T17:24:39.818Z","etag":null,"topics":["datapack","library","minecraft","vanilla"],"latest_commit_sha":null,"homepage":"","language":"mcfunction","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/runtoolkit.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":".github/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":".github/SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":"NOTICE","maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-09T13:44:59.000Z","updated_at":"2026-05-24T16:49:57.000Z","dependencies_parsed_at":null,"dependency_job_id":"2422d5df-8b7c-4ce2-8266-c31ae2bb7a1d","html_url":"https://github.com/runtoolkit/dataLib","commit_stats":null,"previous_names":["runtoolkit/datalib"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/runtoolkit/dataLib","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/runtoolkit%2FdataLib","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/runtoolkit%2FdataLib/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/runtoolkit%2FdataLib/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/runtoolkit%2FdataLib/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/runtoolkit","download_url":"https://codeload.github.com/runtoolkit/dataLib/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/runtoolkit%2FdataLib/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33450402,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-24T19:21:36.376Z","status":"ssl_error","status_checked_at":"2026-05-24T19:21:10.562Z","response_time":57,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["datapack","library","minecraft","vanilla"],"created_at":"2026-05-10T20:08:06.089Z","updated_at":"2026-05-24T21:00:43.184Z","avatar_url":"https://github.com/runtoolkit.png","language":"mcfunction","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🔧 dataLib\n**Minecraft Java Edition 1.20.3–26.1+ | Multiplayer-Safe | Pure Datapack**\n\n---\n\n\n\u003e Current version: **v5.1.0**\n---\n\n---\n\u003e 🛡️ **This is a Minecraft Datapack — it contains no executables or scripts outside of `.mcfunction` files.**\n\u003e Some antivirus software may flag `.mcfunction` files as suspicious due to macro-like syntax. This is a **false positive**. The pack has been scanned on [VirusTotal](https://www.virustotal.com) and returned clean.\n\u003e **Only download from this official repository.** Do not trust redistributed or repackaged versions from third-party sources.\n\n---\n\n## 📦 Installation\n\n```\n1. Place dataLib-v5.1.0 into \u003cworld\u003e/datapacks/\n2. /reload\n3. /function dl_load:load/yes\n4. /tag @s add datalib.admin\n```\n\n---\n\n## 🏗️ Storage Architecture\n\n```\ndatalib:engine  (persistent data)\n├── global\n│   ├── version: \"v5.1.0\"\n│   └── tick: \u003cint\u003e\n├── players\n│   └── Steve { coins:150, level:5, xp:2300, online:1b, ... }\n├── queue\n│   └── [{func:\"mypack:event/end\", delay:100}]\n├── cooldowns\n│   └── Steve { fireball: 2460, dash: 1870 }  ← expiry ticks\n└── events\n    └── on_join: [{func:\"mypack:welcome\"}, {func:\"mypack:xp_bonus\"}]\n\ndatalib:input   (sending data to a function)\ndatalib:output  (receiving results from a function)\n```\n\n---\n\n## 🔍 Predicate Reference\n\nUsed with `execute if predicate \u003cid\u003e`.\n\n| Predicate | Description |\n|---|---|\n| `datalib:is_survival` | Player is in survival mode |\n| `datalib:is_creative` | Player is in creative mode |\n| `datalib:has_empty_mainhand` | Main hand is empty |\n| `datalib:is_full_health` | Player is at full health (20 HP) |\n| `datalib:is_sneaking` | Player is sneaking |\n| `datalib:is_sprinting` | Player is sprinting |\n| `datalib:is_burning` | Player is on fire |\n| `datalib:is_on_ground` | Player is on the ground |\n| `datalib:is_daytime` | Daytime (0–12000 ticks) |\n| `datalib:is_raining` | It is raining |\n| `datalib:is_thundering` | There is a thunderstorm |\n| `datalib:in_overworld` | Player is in the Overworld |\n| `datalib:in_nether` | Player is in the Nether |\n| `datalib:in_end` | Player is in the End |\n\nFull reference: [Predicate Reference](../../wiki/Predicate-Reference)\n\n---\n\n## 📦 Dependencies\n\n### Lantern Load\n**Repository:** https://github.com/LanternMC/load  \n**License:** BSD 0-Clause (public domain)\n\nProvides deterministic load order, version tracking, and pre/load/post-load hooks.\n\n```mcfunction\n# Check if dataLib is loaded\nexecute if score dataLib load.status matches 1.. run say dataLib is loaded\n\n# Get version (major*10000 + minor*100 + patch → v5.1.0 = 50000)\nscoreboard players get dataLib load.status\n```\n\n### StringLib\n**Repository:** https://github.com/CMDred/StringLib  \n**License:** MIT\n\nBundled under the `stringlib` namespace. Exposed via `datalib:core/lib/string/*`.\n\n| Function | Description |\n|---|---|\n| `lib/string/concat` | Join a string array |\n| `lib/string/find` | Find substring index |\n| `lib/string/replace` | Replace substring |\n| `lib/string/split` | Split by separator |\n| `lib/string/insert` | Insert at index |\n| `lib/string/to_lowercase` | Lowercase (A–Z, fast) |\n| `lib/string/to_uppercase` | Uppercase (a–z, fast) |\n| `lib/string/to_number` | String → numeric NBT |\n| `lib/string/to_string` | Value → string |\n\nAll functions read from `datalib:input` and write to `datalib:output string.result`.\n\n```mcfunction\ndata modify storage datalib:input string set value \"Hello World\"\ndata modify storage datalib:input find set value \"World\"\ndata modify storage datalib:input replace set value \"Everyone\"\nfunction datalib:core/lib/string/replace\n# datalib:output string.result → \"Hello Everyone\"\n```\n\n\n## 💬 Support\n\n[![Issues](https://img.shields.io/github/issues/runtoolkit/DataLib?style=for-the-badge)](https://github.com/runtoolkit/DataLib/issues)\n[![Discussions](https://img.shields.io/github/discussions/runtoolkit/DataLib?style=for-the-badge\u0026logo=github\u0026color=blue)](https://github.com/runtoolkit/DataLib/discussions)\n\n---\n\n*dataLib v5.1.0 | MC Java 1.20.3–26.1+ | Pure Datapack*\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fruntoolkit%2Fdatalib","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fruntoolkit%2Fdatalib","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fruntoolkit%2Fdatalib/lists"}