StringLib
🟠 Updated over a year agoPreview

🔍 Analysis
- 🏆 #1465 of 2046 datapack mods in this game by downloads
📋 About This Mod
# StringLib A Minecraft Data Pack library that offers highly optimized implementations for many useful string manipulation utilities.\ Download: (https://modrinth.com/datapack/stringlib)\ For inquiries, please contact **@silicatYT** on Discord. ## Features - `concat`: Combine an arbitrary number of strings into a single string. - Example: `` → `"123456789"` - `find`: Get a list of indexes for instances of a string. You can also go in reverse and limit the number of results. - Example: `{String:"Looking for the last 'o' in this sentence", Find:"o", n:-1}` → `` - `replace`: Replace instances of a string with another string. You can also go in reverse and limit the number of replacements. - Example: `{String:"Bad example", Find:"Bad", Replace:"Great"}` → `"Great example"` - `to_uppercase / to_lowercase`: Convert a string to uppercase or lowercase. Choose between a fast and a full version, the latter supporting the entire Unicode range. - Example: `"This is uppercase"` → `"THIS IS UPPERCASE"` - `insert`: Insert a string at a specific index. - Example: `{String:"This is cool", Insertion:" really", Index:7}` → `"This is really cool"` - `to_string`: Convert any data storage entry to a string. - Example: `127b` → `"127"` - `to_number`: Convert a stringified number to a number. - Example: `"512"` → `512` - `split`: Split a string into multiple, based on a separator character or string. Decide whether to keep or remove empty strings. - Example: `"Hello World"` → `` - and more to come! ## How to use You can find the utility functions in `stringlib:util/...`. In each function, there is a detailed guide for how to use it, along with a list of all the parameters. ## Credit From CMDred: - **SilicatYT** ## Good to know - If you no longer need StringLib or want to upgrade to a newer version, you can run `/function stringlib:uninstall` to remove all the data storage and scoreboard entries. ## License As per the MIT License, you are allowed to redistribute, modify and use StringLib as long as we are credited for the original work.
# StringLib A Minecraft Data Pack library that offers highly optimized implementations for many useful string manipulation utilities.\ Download: (https://modrinth.com/datapack/stringlib)\ For inquiries, please contact @silicatYT on Discord.
## Features - `concat`: Combine an arbitrary number of strings into a single string. - Example: `["123","456","789]` → `"123456789"` - `find`: Get a list of indexes for instances of a string. You can also go in reverse and limit the number of results. - Example: `{String:"Looking for the last 'o' in this sentence", Find:"o", n:-1}` → `` - `replace`: Replace instances of a string with another string. You can also go in reverse and limit the number of replacements. - Example: `{String:"Bad example", Find:"Bad", Replace:"Great"}` → `"Great example"` - `to_uppercase / to_lowercase`: Convert a string to uppercase or lowercase. Choose between a fast and a full version, the latter supporting the entire Unicode range. - Example: `"This is uppercase"` → `"THIS IS UPPERCASE"` - `insert`: Insert a string at a specific index. - Example: `{String:"This is cool", Insertion:" really", Index:7}` → `"This is really cool"` - `to_string`: Convert any data storage entry to a string. - Example: `127b` → `"127"` - `to_number`: Convert a stringified number to a number. - Example: `"512"` → `512` - `split`: Split a string into multiple, based on a separator character or string. Decide whether to keep or remove empty strings. - Example: `"Hello World"` → `["Hello", "World]` - and more to come!
## How to use You can find the utility functions in `stringlib:util/...`. In each function, there is a detailed guide for how to use it, along with a list of all the parameters.
## Credit From CMDred: - SilicatYT
## Good to know - If you no longer need StringLib or want to upgrade to a newer version, you can run `/function stringlib:uninstall` to remove all the data storage and scoreboard entries.
## License As per the MIT License, you are allowed to redistribute, modify and use StringLib as long as we are credited for the original work.
📊 Mod Details
- Game
- Minecraft Data Packs
- Author
- SilicatYT
- Version
- 0.1.0
- Downloads
- 293
- Endorsements
- 6
- Category
- datapack
- Created
- 10/19/2024
- Updated
- 3/25/2025
- Game Versions
- 1.21.5, 1.21.6, 1.21.7, 1.21.8
- Tags
- library, utility
🔧 How to Install Minecraft Data Packs Mods
Download from Modrinth. Use Prism Launcher or drop into your mods folder.
📖 Full step-by-step install guide for Minecraft Data Packs →
Visit the official mod page for specific installation instructions for this mod.
🎮 Need cheat codes or console commands? Check ur gaming wiki for Minecraft Data Packs commands, item IDs, and more.
❓ Frequently Asked Questions
Which Minecraft Data Packs versions does StringLib support?
The author lists 1.21.5, 1.21.6, 1.21.7, 1.21.8. Other versions may work but are untested by the author.
What is the latest version of StringLib?
Version 0.1.0, published 2025-03-25 with 293 downloads recorded at the source.
Keep browsing — more Minecraft Data Packs mods await