跳到正文

Sulfur Cube Steering

作者:XiaoColorful

Steers Sulfur Cubes by the angle between the shot and the cube center instead of the raw knockback direction

收藏

截图

介绍

中文介绍正在准备中,下面暂时显示原文。

Sulfur Cube Steering

Makes Sulfur Cubes steer the way their knockback direction suggests: the push is rotated relative to the shot instead of being applied straight along the projectile’s velocity, so aiming at the side of a cube (for example while driving an ice boat) turns it.

How it works

SulfurCube#knockback only ever sees the projectile’s velocity, so hitting the left or right edge of the hitbox produced the same push. This mod mixins the horizontal knockback angle:

  • The reference direction is always the incoming direction (projectile velocity, or the attacker’s look vector for melee).
  • The deflection is derived from how far the aim line passes from the cube’s center: ratio = perpendicular distance / half-width in that direction (0 = aimed at the center, 1 = grazing an edge).
  • The deflection angle follows a logarithmic curve and is applied as a rotation of the incoming direction, capped at 85°, so the cube can never be pushed back toward the attacker.
  • The knockback magnitude is scaled by 1 / cos(θ), so the component along the original heading stays unchanged and only the lateral component grows.
  • No hit point is read, so far-side / overshoot hits cannot flip the direction.

常见问题

Sulfur Cube Steering 支持哪些 Minecraft 版本?

Sulfur Cube Steering 支持 Minecraft Java 版 26.2–26.3,共 2 个版本,可用的加载器:NeoForge。下载时注意选择和你游戏版本一致的文件。

Sulfur Cube Steering 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 NeoForge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。

评论

登录后评论和评分

XiaoColorful 的其他作品

查看全部 →