▶️ ЗАБЕРИ СВОИ 8 ПОДАРКОВ 🎁 ПРИ СОЗДАНИИ СВОЕГО МАЙНКРАФТ СЕРВЕРА
Моды/Math Function
Math Function

Math Function

Let you use a command or an enchantment to build a function graph

Оцените первым
342
4
Все версииMath Function 2.1

Math Function 2.1

Beta05.07.2026

Список изменений

【中文更新日志】

2.1 版本更新 - 弹道运动逻辑全面重写:

  • 重写了箭矢、TNT 以及新增的烟花火箭的弹道计算,采用逐帧定位而非速度驱动,使轨迹精确贴合数学函数图像,消除原版因速度累积造成的偏差。
  • 引入路径碰撞预检测,每 tick 检查飞行路径上的方块与实体:箭矢碰撞后恢复原版物理(含重力),TNT 碰撞后立即爆炸。
  • 根据函数在当前点的切线斜率动态计算弹射物的俯仰角(pitch)和偏航角(yaw),飞行姿态更自然,朝向始终与曲线切线方向一致。
  • 调整水平速度(HORIZONTAL_SPEED = 0.3)和轨迹缩放(TRAJECTORY_SCALE = 1.0),使轨迹表现更平滑,避免原版可能出现的跳跃感。
  • 修复初始高度 f(0) 的定位逻辑,以发射点(origin)为参考基准,结合水平投影距离计算目标位置,确保不同发射角度下轨迹均正确。

【English Changelog】

Version 2.1 - Trajectory logic completely rewritten:

  • Rewrote the trajectory calculation for arrows, TNT, and newly added fireworks, using per-tick position interpolation instead of velocity-driven motion, ensuring precise adherence to the mathematical function curve and eliminating deviations caused by accumulated velocity.
  • Introduced pre-collision detection along the flight path; arrows revert to vanilla physics (with gravity) upon collision, and TNT explodes immediately.
  • Dynamically sets pitch and yaw based on the tangent slope at each point, resulting in more natural flight attitudes aligned with the curve tangent.
  • Adjusted HORIZONTAL_SPEED (now 0.3) and TRAJECTORY_SCALE (now 1.0) parameters for smoother trajectory performance, avoiding the stuttering effect of the previous version.
  • Fixed initial height f(0) positioning: now uses the launch origin as reference and computes target positions from horizontal projection distance, ensuring correct trajectories for any firing angle.

Файлы

function_math-2.1-neoforge-1.21.1.jar(52.51 KiB)
Основной
Скачать

Метаданные

Канал релиза

Beta

Номер версии

2.1

Загрузчики

NeoForge

Версии игры

1.21.1

Загрузок

20

Дата публикации

05.07.2026

Загрузил

ID версии

Главная