本文原文均来自github的wiki
可编程方块的编程方法
无论是用CC还是OC,你都需要一个电脑来与可编程方块相连。
CC:CC的脚本都由WD方块进行预加载。直接将电脑摆放在机器旁或着用网线使其相连。使用
功能的方法描述 机械 energy 返回当前和最大能量(Return the current and max energy) 所有用能量的方块 state 返回当前机械的状态(Return the current state of the machine) 激光采矿机/激光树厂/船体扫描仪 start 开始工作(Start a new operation) 激光采矿机/激光树厂 stop 停止工作(Stop the current operation) 激光采矿机/激光树厂 laserMediumDirection 返回当前输出方向(Returns medium direction) 激光采矿机/激光树厂 laserMediumCount 返回当前连接的激光介质数量(Returns number of medium connected) 激光采矿机/激光树厂 isAssemblyValid* 返回当前的隐形装置结构是否有效(Return whether cloaking multiblock is valid) 隐形装置 getResultsCount 返回当前扫描到的飞船数量(Return the number of results) 雷达 getResult 返回一个扫描到的飞船(Return one of the result) 雷达 energy 返回当前能量,最大能量和产能效率(Returns energy, max energy, energy rate) 镜像体反应堆芯 instability Returns the 4 instability values (100 is the point when the reactor explodes) Enantiomorphic reactor core release Sets the reactor to output all energy or disables outputting of energy Enantiomorphic reactor core releaseRate Releases at most that much energy per tick Enantiomorphic reactor core releaseAbove Releases any energy above arg0 amount Enantiomorphic reactor core hasReactor Returns true if the laser can see a reactor and false otherwise Enantiomorphic reactor laser side Returns 0-3 depending on which side of the reactor its on Enantiomorphic reactor laser sendLaser Sends a laser of that much energy to stabilize the reactor Enantiomorphic reactor laser scan* Create a schematic from a ship Scanner fileName* Return the schematic filename Scanner deploy* Build a ship from a schematic Scanner 未完待续