vred's DP Lib

A data-pack "library" makes the creation of custom weapons easier.

Редакция NLZONE · 2 мин чтения · 1 просмотр
vred's DP Lib
Скачать vred's DP Lib1.21 – 1.21.1 · с официальной страницы: modrinth.com
Перейти к загрузке

Что это

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 и ждёт проверки редакцией.

Редакция NLZONE

Пишем о серверах, модах и играх, в которые играем сами. Нашли ошибку — напишите нам, исправим.

Комментарии 0

Комментарии к этому материалу отключены.

Читайте также