CC: Sable 是 Create: Simulated! 的 Sable 后端的一个 CC: Tweaked 扩展模组!
目前,它为所有游戏内计算机提供了子层级 API(sublevel)。其方法仅在计算机位于子层级(物理对象)时才能正确调用。此外,它还提供了空气动力学 API(aero,aerodynamics),供所有游戏内计算机访问与维度相关的物理信息!
本模组还捆绑了 CC: Advanced Math 数据包,以提供额外的数学工具,特别是用于处理三维空间中旋转的 quaternion 模块。这被用于将子层级的方向转换为更易于 Lua 使用的格式。
额外参考
LuaBezierResourceFunction
该对象从 aero.getRaw 和 aero.getDefault 返回的表中获取,具体来自 pressureFunction 键。
getPoints(): table
此方法返回沿贝塞尔曲线分布的点数组,每个点包含 altitude、value 和 slope 字段。
evaluateFunction(altitude: number): number
此方法根据沿贝塞尔曲线的高度评估函数值。
更多方块详情
本模组还会向任何调用方块详情的方法(如 turtle.inspect())添加方块的物理属性。
这些新详情将在 "sable" 键下列出,并包含以下键值对:
mass: numberfriction: numberrestitution: numbervolume: numberfloatingScale: numberfloatingMaterial: table(可为空)factHorizontalFriction: numberfactVerticalFriction: numberslowHorizontalFriction: numberslowVerticalFriction: numberliftStrength: numbertransitionSpeed: numberpreventSelfLift: booleanscaleWithGravity: booleanscaleWithPressure: boolean
CC: Sable is a CC: Tweaked addon for the Sable backend of Create: Simulated!
Currently, it provides the Sub-Level API (sublevel) for all in-game computers! Its methods can only be properly called when the computer is on a Sub-Level (physics object). It also provides the Aerodynamics API (aero,aerodynamics) for all in-game computers to access dimension-specific physics information!
This mod also comes bundled with the CC: Advanced Math datapack for extra math utilities, namely the quaternion module for handling rotations in 3D space. This is used to convert the orientation of Sub-Levels into a more usable format for Lua.
Extra References
LuaBezierResourceFunction
This object is gotten from the tables returned by aero.getRaw and aero.getDefault, specifically from the pressureFunction key.
getPoints(): table
This method returns an array of points along the bezier curve with altitude, value, and slope as fields for each point.
evaluateFunction(altitude: number): number
This method evaluates the function given the altitude along the bezier curve.
More Block Details
This mod also adds the physics properties of blocks to any method calling to block details, such as turtle.inspect().
These new details will be listed under the "sable" key and have the following key-value pairs:
mass: numberfriction: numberrestitution: numbervolume: numberfloatingScale: numberfloatingMaterial: table(can be empty)factHorizontalFriction: numberfactVerticalFriction: numberslowHorizontalFriction: numberslowVerticalFriction: numberliftStrength: numbertransitionSpeed: numberpreventSelfLift: booleanscaleWithGravity: booleanscaleWithPressure: boolean
下载 CC: Sable
下载 CC: Sable
下载 CC: Sable
下载 CC: Sable
下载 CC: Sable
下载 CC: Sable
下载 CC: Sable
下载 CC: Sable
下载 CC: Sable
下载 CC: Sable
更新日志
sable键下新增方块详情!- 将 CC: Advanced Math 更新至 0.3.6!
- 更新文档和 README!
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
一个用于收集生物掉落物的多区块模组。
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
查看物品与配方
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
适用于 MC 1.18+ 的 Effekseer 加载器
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
评论 0
登录后参与评分
还没有评论,来抢沙发吧