HomeJavaDatapacksArrow Despawner
Arrow Despawner
DatapacksJava

Arrow Despawner

by Juneaux-Maeder · on Modrinth

This is a datapack that reduces the time arrows shot by other mobs are stuck in the ground down to 10 seconds (vanilla is 60)

⬇ Download on Modrinth

This datapack changes the max inGround value for Arrows to 10 seconds (200 ticks).

The vanilla arrow despawn time is a minute, which was causing severe lag combined with the mods Guard Villagers and Traben's 3D Arrows, during Raids and such. I imagine this datapack will also help people who use mods where they recruit villagers such as Villager Recruits

awesome sauce

If you want to adjust the amount of time arrows stay stuck in the ground, unzip the datapack, go to this file path: arrow_despawner/data/arrow_timer/functions/tick.mcfunction

and adjust the command: "execute as @e[type=arrow,tag=stuck_arrow,scores={arrow_timer=200..}] at @s run kill @s"

You can change the {arrow_timer=200..} to 600 ticks, which is 30 seconds, or even past the vanilla 1200 ticks (1 minute).

By default I have kept arrows shot by the player from despawning until 6000 ticks--5 minutes--which is the vanilla default. But you can of course change this value as well.

This was created for 1.20.1, but should work for all the other versions listed.

Happy mine and crafting!

Quick facts

Install steps are the general flow for this file type — see the MC Java Mods guides for the full walkthrough.

Verified by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more