
Что это
A data-pack "library" makes the creation of custom weapons easier.
- Тип: мод
- Загрузчик: datapack, fabric, forge, neoforge, quilt
- Версии Minecraft: 1.21 – 1.21.1
- Скачиваний на Modrinth: 1 270
Подробно
vred's Data-Pack Library (vred's DP Lib for short) is the first Data-Pack library I've ever made. The main scope of this project is to add useful tools for creating custom items faster and more easily. This tools is split into different sections: - Data Components - Behaviour Components - Function Tags - Misc
> Data Components These define information about the item. Which will be quite important! As general rule, every vred's DP lib component goes in the "..." part customdata={vredlib:{...}}
This one doesn't really do anything important, just defines the id of an item.
give @s stick[customdata={vredlib:{id:"example:coolstick"}}]
This one very important, as it's required for upcoming components. id contains 2 parts, one of these is the weaponid , which is the part after the ":". It requires a folder named from weaponid in the current datapack. As for the namespace, it will be taken from the next component, namespace .
give @s stick[customdata={vredlib:{id:"example:coolerstick",weaponid:coolerstick}}] This item won't do anything yet.
This one is also very important, as it's required for upcoming components too. id contains 2 parts, one of these is the namespace , which is the part before the ":". It requires a folder named from namespace in the current datapack.
give @s stick[customdata={vredlib:{id:"example:verycoolstick",weaponid:verycoolstick,namespace:example}}] This item won't do anything yet.
> Behaviour Components These will run functions in a specific condition. These require a certain slot to work with:
This will run a command on hit. The function that will be run is this:
give @s bow[customdata={vredlib:{id:"example:fastbow",weaponid:fastbow,namespace:example,hand:{onhiteffect:true}}}]
data/example/function/fastbow/onhit.mcfunction
When hitting an entity (either arrow or hand) it will give an arrow to the player.
This will run a command when recieving a hit. The function that will be run is this:
Как установить
Скачайте файл на официальной странице ниже и положите его в папку mods (для модов) или plugins (для плагинов) вашего сервера или клиента. Для модов нужен совместимый загрузчик. Версия должна совпадать с версией Minecraft.
Текст подготовлен автоматически из описания на Modrinth и ждёт проверки редакцией.
Комментарии 0
Комментарии к этому материалу отключены.
Читайте также
Smithing Upgradeable Tools
Make some tools upgradables in the smithing table 05.12.2026
Persistent Mining
Saves block breaking progress so you can continue mining later. 05.12.2026
EnderiumOre
Enderium is a new ore for the end, just as the nether has netherite now the end has Enderium 05.12.2026
Abyssal Shop
This Is A Simple Plugin With A Currency And Shop, Auction House, Sell, Gamble, And Operator Commands Such As /givemoney /setmoney… 05.12.2026
Bed Icons
combines the old bed icons with the new model in one pack 05.12.2026
Depiglining
Reverts speedrunning nerfs from 1.16.2+ like Piglin Brutes and bartering 05.12.2026