Skip to content

Instantly share code, notes, and snippets.

View Samma2009's full-sized avatar

Samma Samma2009

  • PixelStudio
  • Italy
View GitHub Profile
@Samma2009
Samma2009 / main.lua
Created February 9, 2026 19:01
Iron Logic mod example 1
local engine = require("engine"); -- Require the engine api (engine.lua file)
engine.registerNode({
uid = "this is an id (00000000-0000-0000-0000-000000000000)",
title = "this is a title",
value = 20, -- this is how much your node costs/sells for
pins = {
Pin1 = {
index = 0,
accepts = "any", -- accepted resource types
@Samma2009
Samma2009 / engine.lua
Created February 9, 2026 18:39
Iron Logic engine api
-- Engine API mockup for LSP
return {
registerNode = function(node, description) end,
debug_printnodes = function(uid) end,
scatterNode = function(node, count, color) end,
UIButton = function(text, func) end,
UILabel = function(text) end,
UIProgressbar = function(value, max, width) end,
sendSignal = function(pin, data) end,