CC: Drones+
适用于 CC: Tweaked 的无人机模组
这是 CC: Drones 的一个分支,最初由 JSJBDEV 创建。
目前无人机可以:
- 向前移动(使用
drone.engineOn(true))
- 转向(使用
drone.left(number) 和 drone.right(number))
- 上升和下降(使用
drone.up(number) 和 drone.down(number))
- 向前和向后看(
drone.lookForward() drone.lookBack())
- 查看无人机的旋转角度(
drone.rotation())
- 检查无人机是否发生碰撞(
drone.isColliding())
- 开启无人机的悬停功能(
drone.hoverOn(true))
无人机升级模块:
采矿升级模块:
- 向前挖掘(
drone.breakForward())
携带升级模块:
- 拾取下方的方块(并保留其数据)(
drone.pickupBlock())
- 放置方块(
drone.dropBlock())
- 拾取下方的实体(
drone.pickUpEntity())
- 放下下方的实体(
drone.dropEntity())
调制解调器升级模块:
合成表
如需查看合成配方,请下载一个配方查看器模组,例如 JEI、REI 或 EMI。
编程
将无人机工作台作为外围设备使用时,你可以使用两个命令;或者你也可以制作无人机控制器。
(假设 a 为封装后的外围设备,例如 a = peripheral.wrap("left"))
a.api() 将在安装无人机 API 后重启计算机,以便于编程
a.export(path) 会将位于指定路径的 Lua 程序发送给距离工作台 2 格内的第一架无人机,随后该无人机会重启并开始执行该程序
注意:自版本 0.3.0 起,本节内容涉及的功能已被弃用。
后续开发计划
我有一些想要添加的功能,但我不确定何时(或如何)实现它们:
- 无人机对环境进行勘测,这些数据可以在全息显示器中查看
- 无人机摄像头(类似旁观者模式)
- 无人机区块加载器
- 无人机护盾(可能消耗能量?可能需要无人机充能站),也可能具备战斗能力(即某种武器)
- 无人机升级系统,类似于 Steve's Carts 2(支持侧向安装的升级模块)
- 可能的方块与实体传感器(可能是勘测功能的一部分,也可能不是)
说明
这是一个出于热爱的项目,也是一个开发中的构建版本。我不知道自己何时会继续投入精力,但如果一段时间没有更新,请放心,该项目并未被放弃。
权限
请查看 此处 以了解相关权限信息。任何时候,如果 JSJBDEV 决定不再允许此模组发布,他可以随时通过 Discord 联系我,我的用户名是 awesomebossdj7
CC: Drones+
Drones for CC: Tweaked
A fork of CC: Drones, Originally created by JSJBDEV
currently drones can:
- Go forward (using
drone.engineOn(true))
- Turn (using
drone.left(number) and drone.right(number))
- Go up and down (using
drone.up(number) and drone.down(number))
- Look forward and back (
drone.lookForward() drone.lookBack())
- See the Drones rotation (
drone.rotation())
- See if the drone is colliding (
drone.isColliding())
- Turn the drones hover function on (
drone.hoverOn(true))
Drone Upgrades:
Mining Upgrade:
- Mine forward (
drone.breakForward())
Carry Upgrade:
- Pick up blocks (and keep there data) below (
drone.pickupBlock())
- Drop the block (
drone.dropBlock())
- Pick up entities below (
drone.pickUpEntity())
- Drop the entity below (
drone.dropEntity())
Modem Upgrade:
- Get the drone's pos (
drone.getPos())
Recipes
For recipes, refer download a recipe viewer mod, rather that be JEI, REI or EMI
Programming
using the Drone Workbench as a peripheral you can use two commands, Or you can craft the Drone Controller.
(let a be the wrap e.g a = peripheral.wrap("left"))
a.api() will reboot the computer after installing the drone api for ease of programming
a.export(path) will take the lua program at path and send it to the first drone within 2 blocks of the workbench, this will then reboot the drone and start it executing
NOTE: as of 0.3.0, this section is talking about a deprecated feature.
Further development
There are a few things I want to add, but I don't know when (or how) I'll add them:
- Drones survey environments, this data can be reviewed in a holographic display
- Drone cameras (like spectator mode)
- Drone chunk loaders
- Drone shields (maybe running on energy? would need a drone charger), possibly combat (so a weapon of sorts)
- Drone upgrade system, similar to Steve's Carts 2 (sided upgrades)
- possibly block and entity sensor (might be survery, might not be)
Note
This is a passion project, and a development build, I do not know when I will work on this, but if I don't update for a while, just know, its not abandoned.
Permission
Look here to see permission, at anytime if JSJBDEV decides he doesn't want it up, he is free to message me on discord at awesomebossdj7
评论 0
登录后参与评分
还没有评论,来抢沙发吧