MonitoringMinecraft MonitoringMinecraft

Accurate Projectile Trajectory Preview

Мод NeoForge

Клиентский мод для Майнкрафт на NeoForge: отображает траекторию полёта снарядов в реальном времени с улучшенной точностью и без ограничений в мультиплеере.

225 скачиваний 2 подписчика
Оцените первым

Accurate Projectile Trajectory Preview

Forked from Projectile Trajectory Preview by maDU59 (MIT License)

Ever wondered where your arrow, snowball, or potion will land? This mod provides a visual preview of projectile trajectories, similar to PTP, but with improved prediction accuracy and no multiplayer limitations.

🔎 Features

  • Trajectory Visualization: Displays the expected path of your projectile before launching.
  • Target Highlighting: Trajectory color indicates a higher likelihood of hitting a target.

⚠️ Limitations and Notes

  • Minecraft projectile physics include random spread offsets, so the actual impact position may slightly differ from the preview.
  • However, trajectory prediction is designed to be more precise than the original PTP implementation.

🔬 Technical Changes Compared to Original PTP

  • This fork modifies both the simulation logic and multiplayer behavior:

Multiplayer behavior

  • Removed the server handshake check (serverHasMod)

  • Removed networking validation logic

  • Trajectory preview is now always available client-side (no server requirement)

Simulation changes

  1. Removed projectileInfo.order-based update system The original implementation updated motion using a configurable order array. This fork replaces it with a fixed per-tick update sequence:
  • position update

  • drag application

  • gravity application

This makes motion simulation consistent and closer to vanilla projectile behavior.

  1. Reworked entity collision handling
  • Reduced broad-phase AABB inflation from 1.0 to 0.3

  • Added distance-based spread-aware entity hit detection

  • Added a "guaranteed hit" detection flag when the ray intersects the true bounding box

  1. Improved spread simulation
  • Added distance-based spread offset:

spreadOffset = normalizedVelocity * (distanceFromStart * maxSpreadFactor)

  • Adjusted spread multiplier from * 3.0 to * 2.0

  • Spread is now simulated dynamically per step instead of being approximated

  1. Refined water physics handling
  • More explicit switching between normal drag/gravity and underwater values

  • Applied consistently during simulation loop

  1. Minor stability improvements
  • Early velocity zero-check (vel.lengthSqr() < 1e-8)

  • Added startPos tracking for spread calculation

📦 Modpacks

Feel free to include this mod in your modpacks.


Legal Information / Impressum: View Impressum on GitHub

Смотри также

Похожие подборки моды — по версиям Майнкрафта, загрузчикам и жанрам.

Сервера Майнкрафт

Играть интереснее на сервере — выбирай в рейтинге серверов Майнкрафт и заходи прямо сейчас.

SkyBars
SkyBars Java + BE
1692 онлайн
1.8 — 26.2 версия
🎮 ВЫЖИВАНИЕ ⚔️ АНАРХИЯ 🚗 ГТА РП 🎤 ГОЛОСОВОЙ ЧАТ 🎁 БЕСПЛАТНЫЙ ДОНАТ 🌟 СМП 💻 ПК+ТЕЛЕФОН
Minestory
7 онлайн
1.21 — 26.2 версия
Выживание • Экономика • Кланы • Приваты • Ивенты • PVP • Работа
BULLCRAFT
BULLCRAFT Java + BE
154 онлайн
26.2 версия
Анархия! PvP | Работают поршни и вагонетки
Battle Mine
Battle Mine Java + BE
6 онлайн
1.21.4 — 26.2 версия
ОТКРЫТИЕ! 20 + различных ивентов, 10+ различных боссов, много интересных механник
MineLauncher
Лаунчер Майнкрафт без лицензии — все версии
Бесплатный лаунчер для ПК и Андроид — все версии 26.2, 1.21.11, 26.1.2, 1.21.4. Fabric, NeoForge, Forge, шейдеры, моды и скины в один клик.
Без лицензии Fabric, NeoForge, Forge Моды, шейдеры, скины Все версии Майнкрафта ПК и Андроид Для слабых ПК Сервера в лаунчере
Скачать бесплатно
Windows и Андроид · Бесплатно · Без лицензии
Наш чат