Minecraft datapack that prevents thrown tridents from despawning
  • mcfunction 100%
Find a file
vlw 4423194748 docs: add links to mcfstd in README (#1)
This PR adds links to the mcfstd repo in the README

Reviewed-on: #1
2026-07-24 19:47:25 +02:00
data initial commit 2026-07-19 16:37:30 +02:00
.gitignore initial commit 2026-07-19 16:37:30 +02:00
LICENSE initial commit 2026-07-19 16:37:30 +02:00
pack.mcmeta initial commit 2026-07-19 16:37:30 +02:00
README.md docs: add links to mcfstd in README (#1) 2026-07-24 19:47:25 +02:00

Tridents Forever

A Minecraft Java Edition datapack that prevents all thrown tridents (including drowned) from despawning.

Requires Minecraft Java Edition and the mcfstd datapack framework.

Tested on

Installation

  1. Place both mcfstd and tridents-forever in your world's datapacks directory.
  2. Run /reload.
  3. Make sure mcfstd is enabled before this datapack if Minecraft asks for datapack ordering.

The datapack starts automatically on reload.

Commands

Start or re-enable the datapack:

/function tridents_forever:start

Stop the datapack:

/function tridents_forever:stop

Reset the state managed by this datapack:

/function tridents_forever:uninstall

How it works

Java thrown tridents are minecraft:trident entities. Their life field counts upward while the trident is not moving, and tridents despawn once that value reaches the vanilla threshold. This datapack resets life to 0s every 600 ticks.