Repackager

This device allows the computer to manipulate the Repackager as well as any contained package!

This is an example of how to access the device.

local d = require("devices")
local repackager = d:find("repackager")
print(repackager:getAddress())

API

Device name: repackager

Methods

hasPackage():boolean
This method checks whether the Repackager currently contains a package.

makePackage():boolean
This method creates a package from the connected storage.

getAddress():string
This method retrieves the current address of the Repackager.

getPackageAddress():string
This method gets the target address of the package within the Repackager.

setPackageAddress(address:string)
This method sets the target address of the package within the Repackager.

getPackageItems():table
This method retrieves the item handler of the package as a table.

getPackageOrder():table
This method retrieves the order associated with the package if one exists.