ModsFinder

vred's DP Lib

by vred_

vred's DP Lib is a data-pack library that lets creators define custom weapons and their behaviour through components, function tags and command-driven effects.

FabricForgeNeoForgeQuiltServer required, client optionalAll rights reserved1.21 – 1.21.1

What it does

The library provides a set of data components and behaviour components that a data pack can reference when it defines a custom item. Each weapon id is made of two parts: a namespace taken from the component namespace, and a weapon id part taken from the folder inside the current data pack. Both folders must exist for the weapon to resolve, and the item id is not defined by the library alone.

Behaviour is wired with function tags and .mcfunction files. A weapon can run a command when it hits an entity, when its holder receives a hit, when it kills an entity, or when the player taps sneak in a rapid pair while holding the item in either hand. The example data pack shipped with the mod shows a bow that gives an arrow on hit, a stick that grants speed on a double sneak, and boots that give jump boost and particles on a sneak tap.

The mod runs on the server, so the server has to install it, while the client may run it as an optional addition. Files are published for Fabric, Forge, NeoForge and Quilt, and the data pack is also available for servers. Builds cover 1.21 – 1.21.1, and the library is required by Elementelum. The code is under All rights reserved and is not open source.

Key features

  1. Custom weapon data

    Data components let a data pack assign properties to a weapon, such as the behaviour attached to it.

  2. Hit and recieving-hit triggers

    Commands can run when a weapon hits an entity or when the holder is hit, including a knockback of 2 blocks while shielding.

  3. Kill reward effect

    A weapon can grant strength 2 for a few seconds after the holder kills an entity.

  4. Double sneak triggers

    Tapping sneak twice in quick succession can run a function that gives speed or jump boost.

Compatibility

Latest build for each game version and loader.

1.21.10.1.2+mod0.1.2+mod0.1.2+mod0.1.2+mod
1.210.1.2+mod0.1.2+mod0.1.2+mod0.1.2+mod
ReleaseBetaAlphaNot available

Only full game releases are shown. This mod publishes no snapshot builds.

Required by 1 mod

How it compares

Full comparison

TP-Core is server-side required and client optional, open source under the GNU General Public License v3.0 or later, and covers 1.21 – 1.21.1, so it sits in the same space as this library. Entity Custom Data is also server required with client optional, open source under the BSD 2-Clause License, and covers 1.21 – 1.21.4, a wider range than vred's DP Lib. Default Components covers 1.21 – 1.21.10 on Fabric and Quilt only.

ModLoadersGame versionsEnvironmentUpdated
vred's DP LibFabric, Forge, NeoForge and Quilt1.21 – 1.21.1Server required, client optional2026-03-12
TP-CoreFabric, Forge, NeoForge and Quilt1.21 – 1.21.1Server required, client optional2024-08-15
Entity Custom DataFabric, Forge, NeoForge and Quilt1.21 – 1.21.4Server required, client optional2025-01-13
Default ComponentsFabric and Quilt1.21 – 1.21.10Server required, client optional2025-10-19

Questions

Does the server need vred's DP Lib?

Yes. It is required on the server and optional for players.

Which loaders does vred's DP Lib support?

Files are published for Fabric, Forge, NeoForge and Quilt. The latest file for each is 0.1.2 for 1.21.1, released 2026-03-12.

Does Elementelum need vred's DP Lib?

Yes. Elementelum is one of the mods that require this library, so it must be installed with it.

In the catalog

vred's DP Lib is one of 3,514 Library mods on ModsFinder, and one of 2,348 Library mods for Fabric. 32,366 mods support Minecraft 1.21.1.

More from vred_

All projects

Similar mods

What the author says

This one doesn't really do anything important, just defines the id of an item. This one very important, as it's required for upcoming components. id contains 2 parts, one of these is the weapon_id, which is the part after the ":". It requires a folder named from weapon_id in the current datapack. As for the…
vred_, on the Modrinth page

Official listing

Owner
vred_
Published
2026-03-07
Updated on Modrinth
2026-03-12
Facts verified
2026-10-15

Tags