# @nxg-org/mineflayer-trajectories

> Static shot class for mineflayer.

Latest version **1.2.1** (published 2026-04-08) · GPL-3.0 license · 0 weekly downloads

## Install

```sh
npm install @nxg-org/mineflayer-trajectories
pnpm add @nxg-org/mineflayer-trajectories
yarn add @nxg-org/mineflayer-trajectories
bun add @nxg-org/mineflayer-trajectories
```

## Health

**Score 55/100 (C)** — status: stable.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

## Facts

| | |
|---|---|
| Version | 1.2.1 |
| Published | 2026-04-08 |
| First published | 2021-12-20 |
| Weekly downloads | 0 |
| License | GPL-3.0 |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 7 |
| Unpacked size | 43.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | generel_schwerz |
| Maintainers | generel_schwerz, rob9315 |
| Keywords | mineflayer, mineflayer-pvp, mineflayer-plugin, mineflayer-custom-pvp |

## Links

- npm: https://www.npmjs.com/package/@nxg-org/mineflayer-trajectories
- Repository: https://github.com/nxg-org/mineflayer-trajectories
- Homepage: https://github.com/nxg-org/mineflayer-trajectories#readme
- Issues: https://github.com/nxg-org/mineflayer-trajectories/issues
- npm.io page: https://npm.io/package/@nxg-org/mineflayer-trajectories

## Dependencies (7)

- [vec3](https://npm.io/package/vec3.md) ^0.1.7
- [mineflayer](https://npm.io/package/mineflayer.md) ^4.0.0
- [minecraft-data](https://npm.io/package/minecraft-data.md) ^2.113.0
- [prismarine-item](https://npm.io/package/prismarine-item.md) ^1.11.2
- [prismarine-block](https://npm.io/package/prismarine-block.md) ^1.13.1
- [prismarine-physics](https://npm.io/package/prismarine-physics.md) ^1.3.1
- [@nxg-org/mineflayer-util-plugin](https://npm.io/package/@nxg-org/mineflayer-util-plugin.md) ^1.3.17

## Recent versions

- 1.2.1 (latest) — 2026-04-08
- 1.2.0 — 2024-08-20
- 1.1.1 — 2023-02-12
- 1.1.0 — 2022-02-13
- 1.0.15 — 2022-01-07
- 1.0.14 — 2022-01-05
- 1.0.13 — 2022-01-05
- 1.0.12 — 2021-12-28
- 1.0.11 — 2021-12-28
- 1.0.10 — 2021-12-28
- 1.0.9 — 2021-12-28
- 1.0.8 — 2021-12-28
- 1.0.7 — 2021-12-28
- 1.0.6 — 2021-12-28
- 1.0.5 — 2021-12-28
- … 4 more at https://npm.io/package/@nxg-org/mineflayer-trajectories/versions

## README

Based on the contents of the files from the `mineflayer-trajectories` project, here's a README file generated in the format you requested:

---

<p align="center">
  <img src="https://avatars.githubusercontent.com/u/79112097?s=200&v=4" />
</p>

<h2 align="center">mineflayer-trajectories :tm:</h2>
<h4 align="center">A comprehensive library for calculating projectile trajectories and physics in Minecraft bots.</h4>

<p align="center">
  <a href="https://discord.gg/zDzugD3ywn">
    <img src="https://img.shields.io/badge/discord-000000?style=for-the-badge&logo=discord" alt="Discord">
  </a>
</p>



<h3 align="center">Why use this library?</h3>

-----

This library offers precise and customizable projectile trajectory calculations in Minecraft. Unlike other implementations, it provides modular utilities for handling various Minecraft projectiles, from arrows to firework rockets. With physics simulations that include gravity, air resistance, and velocity calculations, this library is an essential tool for any advanced Minecraft bot that needs to interact with projectiles.

Examples will be added as the project undergoes more development.

<h3 align="center">What is left to be done?</h3>

-----

- [X] Basic projectile trajectory calculations
- [X] Gravity and air resistance modeling
- [ ] Advanced projectile interactions (e.g., collision detection)
- [ ] Multi-environment compatibility (e.g., underwater, in the Nether)
- [ ] Optimizing the physics engine for performance

<h3 align="center">API and Examples</h3>

-----

| Link | Description |
| --- | --- |
| [API](https://github.com/YourUsername/mineflayer-trajectories/blob/main/docs/API.md) | The documentation with the available methods and properties. |
| [Advanced Usage](https://github.com/YourUsername/mineflayer-trajectories/blob/main/docs/AdvancedUsage.md) | The documentation with the advanced usage of the library, including customization of trajectory calculations. |
| [Examples](https://github.com/YourUsername/mineflayer-trajectories/tree/main/examples) | The folder with the examples. |

---
_Source: https://npm.io/package/@nxg-org/mineflayer-trajectories · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
