Source-checkedCosmetics, visuals & audio

Artisanal Reskins: Sprite Utils

by Kirazy · for Factorio

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.

15KDownloads
15d agoLast updated
MITLicense
2.1Latest game version

About Artisanal Reskins: Sprite Utils

From Factorio Mod Portal

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.

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 size
  • scalar = 0.5: Half the size
  • scalar = 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 data

Game 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

BuildReleasedGame versionsLoaders
0.3.22026-11-152.1n/a
0.3.12026-11-102.1n/a
0.3.02026-11-022.1n/a
0.2.12026-07-202.1n/a
0.2.02026-06-262.1n/a
0.1.12026-06-072.0n/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 catalog
Listed on Factorio Mod Portal as “Mods”

Cosmetics, visuals & audio

Skins, textures, shaders, models and sound — how the game looks and sounds.

Runs on your server

From source side support

Factorio 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

Artisanal Reskins: Sprite Utils, answered

Generated from the mod’s own source data.

Do my players need to install Artisanal Reskins: Sprite Utils?

Factorio 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.

Is it free?

Yes. Artisanal Reskins: Sprite Utils is free to download from Factorio Mod Portal. Its license is MIT.

How do I add it to my Nxeon server?

Use “Add to a server” on this page, or open NxLabs from your dashboard. We install it, restart your server and switch it on.

NxLabs

Run Artisanal Reskins: Sprite Utils on a Factorio server.

Deploy in about a minute from $2.99 a month, then add Artisanal Reskins: Sprite Utils in one click.