Schematicannon

This device can manipulate the Schematicannon, including the ability to deploy a schematic.

This is an example of how to access the device.

local d = require("devices")
local cannon = d:find("schematicannon")
print(cannon:getState())

API

Device name: schematicannon

Methods

getChecklist():table
This method gets the checklist as a table akin to what Clipboard#getClipboardEntries returns.

getState():string
This method gets the current state of the cannon.

setState(state:string)
This method sets the state of the cannon.

getSchematicFile():string
This method gets the path of the current schematic file.

setSchematicFIle(filePath:string)
This method sets the path of the target schematic file.

setSchematicPosition(x:number, y:number, z:number)
This method deploys the target schematic at the given position.

getReplaceMode():string
This method gets the current replace mode setting.

setReplaceMode(mode:string)
This method sets the replace mode setting.

getSchematicProgress():number
This method gets the current progress of the cannon.