require "core"

local items = core.get_items()
if items then
    for _, item in ipairs( items ) do
        print( "item name:" .. item.name )
    end
end