LordOdin's Recipe Combinator


LordOdin's Recipe Combinator is implemented as a simple 1×1 assembling machine — not a complex scripted entity. When wired and configured cleverly, it can function as a recipe combinator, but without any per-tick logic or scripting overhead. This mod adds just one entity, and has zero performance impact compared to tick-based implementations.

Utilities
9 months ago
2.0
257
Circuit network

i Exclude from Even Distribution

a month ago

The even distribution mod will place items in this entity - since it is an assembler with a recipe set. Since it will never really craft anything, nor will it have a way of expelling ingredients when a recipe changes it will get messy for people using Even Distribution. You can tell Even Distribution to exclude your entities via remote call.

''' lua
-- Returns the version of this remote API
-- Usage example: remote.call("even-distribution", "version")
function this.version()
return 1
end

-- Add an entity to be ignored by CTRL+Click Drag and SHIFT+C
-- Usage example: remote.call("even-distribution", "add_ignored_entity", "wooden-chest")
function this.add_ignored_entity(entity)
global.remoteIgnoredEntities = global.remoteIgnoredEntities or {}
global.remoteIgnoredEntities[entity] = true
end

-- Remove an entity from the ignored list
-- Usage example: remote.call("even-distribution", "remove_ignored_entity", "wooden-chest")
function this.remove_ignored_entity(entity)
global.remoteIgnoredEntities = global.remoteIgnoredEntities or {}
global.remoteIgnoredEntities[entity] = nil
end

-- Get the list of ignored entities
-- Usage example: remote.call("even-distribution", "get_ignored_entities")
-- --> { ["wooden-chest"] = true, ["steel-chest"] = true }
function this.get_ignored_entities(entity)
return global.remoteIgnoredEntities or {}
end
'''

New response