About Artisanal Reskins: Sprite Utils
From Factorio Mod PortalA comprehensive set of standalone icon and sprite utilities for Factorio mod development. Originally developed to support the Artisanal Reskins ecosystem, this library provides robust tools for manipulating icons, sprites, and prototypes with full type safety and extensive validation.
Artisanal Reskins: Sprite Utils
A comprehensive set of standalone icon and sprite utilities for Factorio mod development. Originally developed to support the Artisanal Reskins ecosystem, this library provides robust tools for manipulating icons, sprites, and prototypes with full type safety and extensive validation.
Features
- Icon Manipulation: Create, scale, transform, and extract icons from prototypes
- Sprite Utilities: Convert icons to sprites, create 4-way animations from sprite sheets
- Prototype Scaling: Rescale entity prototypes and their associated remnants
- Type Safety: Full LuaLS type annotations and comprehensive error handling for improved
integration with the Factorio Modding Tool Kit
- Validation: Extensive parameter validation with descriptive error messages
Installation
Add reskins-sprite-utils as a dependency in your info.json:
{
"dependencies": ["reskins-sprite-utils"]
}
Quick Start
-- Import the modules you need
local utils_icons = require("__reskins-sprite-utils__.icons")
local utils_sprites = require("__reskins-sprite-utils__.sprites")
-- Get an existing icon from a prototype without worrying how it was defined, let alone how completely.
-- Have confidence that it will be a valid icons array, every time.
local existing_icon = utils_icons.get_icon_from_named_prototype("iron-plate", "item")
-- Already have the prototype? Even simpler:
local entity = data.raw["assembling-machine"]["assembling-machine-1"]
existing_icon = utils_icons.get_icon_from_prototype(entity)
-- Create a sprite from icon data to assign it to e.g. an entity that should
-- have a different icon when on the ground versus your inventory.
local sprite = utils_sprites.create_sprite_from_icons(existing_icon, 1.0)
-- Create a new oil refinery that's only 3x3 and otherwise looks the same as
-- the existing oil refinery, only smaller, and the remnants, too!
local small_refinery = util.merge({
{ name = "small-oil-refinery" },
data.raw["assembling-machine"]["oil-refinery"],
})
local small_refinery_corpse = util.merge({
{ name = "small-oil-refinery-remnants" },
data.raw.corpse[small_refinery.corpse],
})
small_refinery.corpse = small_refinery_corpse.name
utils_sprites.rescale_prototype(small_refinery, 3 / 5)
utils_sprites.rescale_remnants_of_prototype(small_refinery, 3 / 5)
data:extend({ small_refinery, small_refinery_corpse })
When scaling prototypes, the scalar parameter represents the ratio of new size to original size:
scalar = 2.0: Double the sizescalar = 0.5: Half the sizescalar = 3/5: Scale a 5x5 entity to 3x3
Contributing
This library is part of the Artisanal Reskins project. Contributions, bug reports, and feature requests are welcome on the project's repository.
Highlights
From source dataGame versions
Built for Factorio 2.1.
Footprint
Rated a light load on a server.
License
Published under MIT.
Artisanal Reskins: Sprite Utils on Nxeon
From our catalogue- One-click install
- Supported on Nxeon Factorio servers. We download it from Factorio Mod Portal, place it, and restart the server.
- Server side
- Required on the server
- Server load
- light
- Smallest plan we suggest
- Factorio — 2 GB (2 GB RAM). This follows our own load rating above, not a benchmark.
- Latest build
- 0.3.2, released 2026-11-15
Recent builds
| Build | Released | Game versions | Loaders |
|---|---|---|---|
| 0.3.2 | 2026-11-15 | 2.1 | n/a |
| 0.3.1 | 2026-11-10 | 2.1 | n/a |
| 0.3.0 | 2026-11-02 | 2.1 | n/a |
| 0.2.1 | 2026-07-20 | 2.1 | n/a |
| 0.2.0 | 2026-06-26 | 2.1 | n/a |
| 0.1.1 | 2026-06-07 | 2.0 | n/a |
Run Artisanal Reskins: Sprite Utils on a Factorio server
Pick a server or deploy a new one above; it is installed in one click.
What kind of mod it is
From the catalogCosmetics, visuals & audio
Skins, textures, shaders, models and sound — how the game looks and sounds.
Runs on your server
From source side supportFactorio Mod Portal lists Artisanal Reskins: Sprite Utils as required on the server. Check its Factorio Mod Portal page to see whether players need it too.
Compatibility
- Game
- Factorio
- Runs on
- Serverrequired on the server
- Game versions
- 2.1
Verified at the source
- ✓Factorio Mod PortalOfficial listing, checked 2026-11-16Open ↗
- ✓AuthorKirazy, as published on Factorio Mod Portal
- ✓LicenseMITFree

