Artifact aa837e16cfc28c56f19776fbe0d8f4e1657e94c1d2a565c2605a413d3bb64cc7:
- File mods/starlit/item.lua — part of check-in [187bf04c87] at 2024-04-29 22:49:02 on branch trunk — rename again (user: lexi, size: 384) [annotate] [blame] [check-ins using]
local lib = starlit.mod.lib local I = starlit.item function I.mk(item, context) local st = ItemStack(item) local md = st:get_definition()._starlit local ctx = context or {} if md and md.event then md.event.create(st, ctx) end if context.how == 'print' then if context.schematic and context.schematic.setup then context.schematic.setup(st, ctx) end end return st end