Throwing Disc Advanced

A disc item working cross versions that adds that new mechanic!

ThrowingDisc

Boomerang-style Throwing Discs (Copper, Iron, Gold, Diamond, Netherite) for Spigot / Paper 1.8 -> 26.x. Java 8 bytecode, one jar for every version. Folia is not supported.

Every disc is a vanilla Music Disc item (so it exists on every version). Right-click to throw it: it flies out, ricochets off walls, pierces through enemies, then curves back to you and is caught.

Install

  1. Drop ThrowingDisc-1.0.0.jar into plugins/ and start the server.
  2. Edit plugins/ThrowingDisc/config.yml and lang/en.yml, then /td reload.

Commands and permissions

Command What it does Permission
/td help, /td list help / list tiers none
/td give <player> <tier> [amount] give discs throwingdisc.admin
/td reload reload config + lang throwingdisc.admin
/td status version, item-tag mode, render mode, discs in the air throwingdisc.admin

/td = /tdisc = /throwingdisc. Other permissions: throwingdisc.use (default true), throwingdisc.craft (default true), throwingdisc.bypass.cooldown (op), and optionally throwingdisc.use.<tier> (general.per-tier-permissions).

Why it does not lag: a virtual projectile

  • No entity is ever spawned. A flying disc is a small Java object (position, direction, counters).
  • One scheduler task advances every disc; it only exists while at least one disc is in the air.
  • The flight is pure math (voxel ray-casting for walls, swept AABB tests for entities) and never loads chunks.
  • Visuals are drawn by an asynchronous renderer: the main thread only publishes a tiny frame (position + spin), and an async task builds the tilted, spinning, tier-coloured particle ring + trail and sends the packets. If a server rejects particle calls from async threads, the renderer falls back to the main thread by itself (/td status shows which one is active).
  • Level of detail: with many discs in the air the visuals thin out automatically (performance.lod-threshold).

Version compatibility

  • Items are Music Discs; modern names (MUSIC_DISC_13) are translated to legacy ones (GOLD_RECORD, RECORD_3...) on 1.8-1.12.
  • Item identity: PersistentDataContainer on 1.14+, an invisible lore marker on 1.8-1.12, exact coloured name on 1.13 (no durability tracking on 1.13).
  • Particles and sounds are resolved by name with fallbacks, so renamed constants never break the plugin.
  • Copper (1.17+) and Netherite (1.16+) recipes are skipped on versions that lack the ingredient; use /td give.
  • Recipe changes on 1.8-1.14 need a restart (those versions cannot remove recipes at runtime).

Building from source

mvn -q package (JDK 17-25, Maven 3.8+). Output: target/ThrowingDisc-1.0.0.jar. src/test/java/.../SimTest.java is a dependency-free test of the flight simulation (java main class).

Limitations

  • A disc that is in the air during a hard server crash is lost (discs are returned on quit, death, world change and shutdown).
  • Default numbers (damage, range, recipes) are balance suggestions - tune them in config.yml.

Throwing Disc Advanced Team

profile avatar
Owner
  • 9
    Projects
  • 50.6K
    Downloads

Student, Developer, Icon Designer, Son & Single.

More from iLirosqView all