Artifact 597f09c699a484f4a85d6ee506f298b73d1462393ac118922888cb31cb2914c6:
- File mods/starsoul/item.lua — part of check-in [abe3882d1c] at 2024-03-29 20:50:28 on branch trunk — initial commit (user: lexi, size: 387) [annotate] [blame] [check-ins using]
local lib = starsoul.mod.lib local I = starsoul.item function I.mk(item, context) local st = ItemStack(item) local md = st:get_definition()._starsoul 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