CC: Rideable Turtles
骑上乌龟四处转转——或者让你的程序抓取并搬运生物。
CC: Rideable Turtles 为 CC: Tweaked 添加了一项功能:座位乌龟升级。给乌龟装上鞍具,它就成了你可以实际骑乘的东西,也是你的 Lua 代码用来将生物从 A 点移动到 B 点的工具。
? 驾驭你的乌龟
将鞍具安装在任何乌龟身上并坐上去。由你的乌龟程序控制方向;你则是乘客。由于骑手与乌龟的真实动画绑定,骑行体验极其丝滑——没有回弹、没有延迟、没有卡顿——并且在无人乘坐时零性能开销。
- 坐下:潜行 + 手持空物品右键点击。
- 下来:像船一样潜行即可。
- 鞍具会显示在乌龟的顶部。
? 用代码搬运生物
给你的乌龟分配工作。座位也是一个外围设备(peripheral),因此程序可以抓取面前/上方/下方的生物,将其带到任意位置,并在你想要的确切地点放下:
local seat = peripheral.find("turtle_seat")
seat.mountDown() -- 抓起乌龟下方的生物
-- ... 将其运过基地 ...
seat.dismount() -- 将其放在前方
建造生物出租车、自动化谷仓、分拣围栏、竞技场加载器——只要你能编写脚本,一切皆有可能。
✨ 特性
- 使用鞍具可骑乘任何乌龟——普通或高级均可。
- 如黄油般顺滑的移动,客户端和服务器端均追踪乌龟动画。
turtle_seat 外围设备:支持 mount / mountUp / mountDown、dismount / dismountUp /
dismountDown、hasRider、getRider。
- ComputerCraft 创造模式标签页中提供预制的可骑乘乌龟。
- 几乎可以携带任何东西——动物、怪物、村民,甚至是玩家。
- 对 Boss 安全:通过数据包可编辑的标签(支持
#c:bosses)排除 Boss,因此也可以轻松阻止模组添加的 Boss。
- 可配置:可切换程序化骑乘、玩家骑乘,以及被捕获的生物是否保留其 AI。
? 面向程序员
peripheral.find("turtle_seat") 为你提供完整的 API。getRider() 返回骑手的类型、名称以及是否为玩家;mount/dismount 调用作为乌龟动作运行,并返回 true 或 false, reason。完整示例:
pen_to_pen.lua。
? 依赖项
- Minecraft 1.21.1
- NeoForge
- CC: Tweaked(必需)
源码与文档:github.com/CptIdea/CC-Rideable
CC: Rideable Turtles
Hop on a turtle and ride along — or let your programs pick up and haul mobs around.
CC: Rideable Turtles adds one thing to CC: Tweaked: a
seat turtle upgrade. Saddle up a turtle and it becomes something you can actually ride,
and something your Lua code can use to move creatures from A to B.
? Ride your turtles
Attach a saddle to any turtle and sit on it. Your turtle program drives; you're the
passenger. Because the rider is glued to the turtle's real animation, the ride is perfectly
smooth — no rubber-banding, no lag, no stutter — and it costs nothing when no one's aboard.
- Sit down: sneak + right-click with an empty hand.
- Get off: sneak, just like a boat.
- The saddle shows on top of the turtle.
? Haul mobs with code
Give your turtles a job. The seat is also a peripheral, so programs can grab a mob in
front / above / below, carry it anywhere, and drop it off exactly where you want:
local seat = peripheral.find("turtle_seat")
seat.mountDown() -- scoop up the mob beneath the turtle
-- ... fly it across the base ...
seat.dismount() -- set it down in front
Build mob taxis, automated barns, sorting pens, arena loaders — whatever you can script.
✨ Features
- Ride any turtle with a saddle — normal or advanced.
- Buttery-smooth movement that tracks the turtle's animation client- and server-side.
turtle_seat peripheral: mount / mountUp / mountDown, dismount / dismountUp /
dismountDown, hasRider, getRider.
- Pre-made Rideable Turtles in the ComputerCraft creative tab.
- Carry almost anything — animals, monsters, villagers, even players.
- Boss-safe: bosses are excluded via a datapack-editable tag (
#c:bosses supported), so
modded bosses are easy to block too.
- Configurable: toggle programmatic mounting, player mounting, and whether captured mobs
keep their AI.
? For programmers
peripheral.find("turtle_seat") gives you the whole API. getRider() returns the rider's
type, name, and whether it's a player; the mount/dismount calls run as turtle actions and
return true or false, reason. Full example:
pen_to_pen.lua.
? Requirements
- Minecraft 1.21.1
- NeoForge
- CC: Tweaked (required)
Source & docs: github.com/CptIdea/CC-Rideable
评论 0
登录后参与评分
还没有评论,来抢沙发吧