Scrap Mechanic Lua API
SM Docs is an unofficial, searchable interface for the Lua API reference published at scrapmechanic.com/api.
This site only aims to make the published reference easier to browse, search, and link to. It does not maintain a separate API specification or fill gaps in the source. Descriptions, signatures, availability labels, and omissions come from the published Scrap Mechanic API files. The published source may contain incomplete entries.
Source and freshness
- Original reference: scrapmechanic.com/api
- JSON source archive: json.zip
- Lua annotation archive: lua.zip
- Site build date: 2026-07-24 UTC
Lua
Scrap Mechanic uses LuaJIT which is covered by the Lua 5.1 reference manual. This site covers only the APIs exposed by Scrap Mechanic.
Reporting a discrepancy
Compare questionable content with the original reference. If both contain the same text or omission, the issue is in the published source. If this site links, formats, or interprets the source incorrectly, it is an interface issue and can be reported on GitHub.