Computers provide a couple of API callbacks. Note that these can only be called by the computer itself, or its direct neighbors (i.e. other computers that share a face with that computer). Also note that since robots cannot interact with external components they cannot start/stop/query computers, but computers can interact with robots sitting next to them.
falseotherwise. Note that this will also return
falseif the computer was already running. If the computer is currently shutting down, this will cause the computer to reboot instead.
falseotherwise. Also returns
falseif the computer is already stopped.
local component = require("component") local c = component.computer -- get primary computer, e.g. self print(c.isRunning()) -- definitely true if it's this computer c.stop() -- basically like computer.shutdown() if it's this computer
|Components||3D Printer - Abstract Bus - Access Point - Chunkloader - Computer - Crafting - Data Card - Database - Debug - Drone - Drive - EEPROM - Experience - Filesystem - Generator - Geolyzer - GPU - Hologram - Internet - Inventory Controller - Leash - Modem - Motion Sensor - Navigation - Piston - Redstone - Robot - Screen - Sign - Tank Controller - Tractor Beam - Tunnel - World Sensor|
|Others||Component Access - Signals|