Scarpet additions
by replaceitem
Scarpet additions extends the Scarpet language of the Carpet mod with color conversion, HTTP requests and HTML escaping functions.
What it does
The mod adds a set of functions to the Scarpet scripting language that Carpet provides. Scarpet additions requires Carpet, and the Carpet mod must be installed alongside it on Fabric. Because the environment is server-side only, players join without installing anything, and only the server needs the mod.
Color helpers convert a color between RGB, RGBA and HSB input models and RGB, RGBA, HEX and NUM outputs, depending on the model given. Other functions send HTTP requests with a chosen method, custom headers and options, and they can block the script or run as a task. Responses are returned with their body parsed as JSON or HTML escaped, and helpers for escaping and unescaping HTML and for encoding and decoding JSON sit alongside them.
Files are published for Fabric only, across 22 release versions in the 1.19 – 26.3 range. The latest Fabric file is 1.1.4 for 26.3, dated 2026-04-08. The code is released under the MIT License and is open source, and public links to the source code, issue tracker and wiki are available.
Key features
Color conversion
A function changes a color's values into another model, such as RGB numbers into a hex string or a packed number.
HTTP requests
Scripts can send a request to a URI with a method such as GET, POST or DELETE, which defaults to GET.
Request options
A map of options sets the headers, and the call can run blocking or as a task, returning a map of response entries.
HTML escaping
Functions escape and unescape HTML strings, and encode and decode JSON for use inside scripts.
Compatibility
Latest build for each game version and loader.
26.x5 of 5 versions with builds
1.21.x8 of 8 versions with builds
1.20.x6 of 6 versions with builds
1.19.x3 of 3 versions with builds
Only full game releases are shown. This mod publishes no snapshot builds.
Requirements
Dependencies declared by the latest file for each loader.
Required 1
Use cases
Who it’s for: Server owners and script authors who already run Carpet and want extra functions in their Scarpet programs.
How it compares
UltralightFabric is a client-side only Fabric mod for 1.18.1, open source under the GNU Lesser General Public License v3.0 only, so it runs on the client alone. Web Requests is a client and server mod for 1.21.5 under the GNU General Public License v3.0 only, and every player needs it too. HttpInfoServer is client-side only for 1.20.4 – 1.20.6 under the Apache License 2.0, serving information over HTTP rather than adding script functions.
| Mod | Loaders | Game versions | Environment | Updated |
|---|---|---|---|---|
| Scarpet additions | Fabric | 1.19 – 26.3 | Server-side only | 2026-04-08 |
| UltralightFabric | Fabric | 1.18.1 | Client-side only | 2021-12-31 |
| Web Requests | Fabric | 1.21.5 | Client and server | 2025-04-20 |
| HttpInfoServer | Fabric | 1.20.4 – 1.20.6 | Client-side only | 2024-05-28 |
Questions
Does Scarpet additions need Carpet?
Do players need to install Scarpet additions?
Which game versions have files?
In the catalog
Scarpet additions is one of 3,514 Library mods on ModsFinder, and one of 2,348 Library mods for Fabric. 8,071 mods support Minecraft 26.3.
More from replaceitem
Similar mods
What the author says
Converts a color from one model to another. output -> String: Output color model, can be RGB, RGBA, HEX or NUM
Official listing
- Modrinth page
- modrinth.com/mod/scarpet-additions
- Owner
- replaceitem
- Published
- 2022-06-17
- Updated on Modrinth
- 2026-04-08
- Facts verified
- 2026-10-15
