This component is provided by the Items#crafting-upgrade for robots.
Component name: crafting
.
Callbacks:
craft([count: number]): boolean
count
is specified will only craft up that number of items. If count
is lower than the number of items created in one crafting operation, nothing will be crafted (e.g. trying to craft one stick). Up to one stack can be crafted at a time. The result of the crafting operation will be placed into the selected slot, the first free slot after it, or dropped if the robot's inventory is full.Example use:
local component = require("component") local c = component.crafting -- get primary crafting component c.craft(10) -- craft up to 10 items
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 - Microcontroller - Modem - Motion Sensor - Navigation - Net Splitter - Piston - Redstone - Redstone in Motion - Robot - Screen - Sign - Tank Controller - Tractor Beam - Transposer - Tunnel - World Sensor | |
---|---|---|
Others | Component Access - Signals | |
Cross-Mod Integration | Applied Energistics |