2022-06-16 01:18:11 +02:00
|
|
|
local api = stairsplus.api
|
|
|
|
local register_craft_schema = api.register_craft_schema
|
|
|
|
|
|
|
|
for shape, shape_def in pairs(api.registered_shapes) do
|
2022-06-27 05:37:20 +02:00
|
|
|
if shape ~= "micro_8" and math.floor(shape_def.eighths) > 0 then
|
2022-06-16 01:18:11 +02:00
|
|
|
register_craft_schema({
|
|
|
|
type = "shapeless",
|
|
|
|
output = ("micro_8 %i"):format(shape_def.eighths),
|
|
|
|
recipe = {shape},
|
|
|
|
})
|
|
|
|
end
|
|
|
|
end
|