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.
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
Custom weapon data
Data components let a data pack assign properties to a weapon, such as the behaviour attached to it.
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.
Kill reward effect
A weapon can grant strength 2 for a few seconds after the holder kills an entity.
Double sneak triggers
Tapping sneak twice in quick succession can run a function that gives speed or jump boost.
Gallery
Compatibility
Latest build for each game version and loader.
Only full game releases are shown. This mod publishes no snapshot builds.
Required by 1 mod
How it compares
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.
| Mod | Loaders | Game versions | Environment | Updated |
|---|---|---|---|---|
| vred's DP Lib | Fabric, Forge, NeoForge and Quilt | 1.21 – 1.21.1 | Server required, client optional | 2026-03-12 |
| TP-Core | Fabric, Forge, NeoForge and Quilt | 1.21 – 1.21.1 | Server required, client optional | 2024-08-15 |
| Entity Custom Data | Fabric, Forge, NeoForge and Quilt | 1.21 – 1.21.4 | Server required, client optional | 2025-01-13 |
| Default Components | Fabric and Quilt | 1.21 – 1.21.10 | Server required, client optional | 2025-10-19 |
Questions
Does the server need vred's DP Lib?
Which loaders does vred's DP Lib support?
Does Elementelum need vred's DP Lib?
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_
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…
Official listing
- Modrinth page
- modrinth.com/mod/vreds-dp-lib
- Owner
- vred_
- Published
- 2026-03-07
- Updated on Modrinth
- 2026-03-12
- Facts verified
- 2026-10-15
