Unified API

A comprehensive data-driven multiloader modding api built for both modders and data-packers

Редакция NLZONE · 2 мин чтения · 1 просмотр
Unified API
Скачать Unified API1.21.11 – 26.3 · с официальной страницы: modrinth.com
Перейти к загрузке

Что это

A comprehensive data-driven multiloader modding api built for both modders and data-packers

  • Тип: мод
  • Загрузчик: fabric, neoforge
  • Версии Minecraft: 1.21.11 – 26.3
  • Скачиваний на Modrinth: 46 192

Подробно

Unified API is a cross-loader API for both Fabric & NeoForge that enables you to create multiloader mods at no additional effort.

It is also a data-focused library that provides powerful new features to datapacks and resource packs, including data-driven blocks, items, entity variants and much more.

Additionally, this library is an advanced data generator for modders, with unified registration generators that put all your block, item and entity code in the one place.

The goal of this project is to provide an up-to-date, efficient & flexible way of creating modded content at a much faster pace than what is typically afforded both by competing multiloader projects and the official loaders themselves.

To prove the true extent of these features, you'll need to visit the Unified API Documentation.

Register your content in one place. All behaviour is handled by vanilla and Unified API-specific JSON, generated from this code. JSON can then be overriden by users or other projects for full customisability.

public static final SuppliedItem EXAMPLEITEM = ITEMS.register( "exampleitem", VanillaItemCodecs.ITEM.create(), builder -> builder .properties(properties -> properties .stacksTo(16) .rarity(Rarity.UNCOMMON) ) .assets(assets -> assets .handheld() ) .data(data -> data .dropSelf() ) );

Blocks, Items, Entities, Creative Tabs, Sound Events and more can all be created via JSON.

json5 { "type": "minecraft:block", "properties": { // properties go here } }

In a multiloader environment, your content needs to be deferred. UnifiedRegistries coupled with Supplied handles this much like other multiloader projects, with some convenient bonuses.

Modify biome attributes or features, change default components, inject loot tables or alter individual entries, create mob variants and much more - supported via both code-driven events and data-driven listeners.

Furthermore, there is a full networking api, data attachments, structure-specific music and anything else you'd expect to need when making complex mods.

Common, tedious-to-create content like woodsets, brick sets, colored sets, equipment sets and more can be generated as JSON in an instant, with all functionalit

Как установить

Скачайте файл на официальной странице ниже и положите его в папку mods (для модов) или plugins (для плагинов) вашего сервера или клиента. Для модов нужен совместимый загрузчик. Версия должна совпадать с версией Minecraft.

Текст подготовлен автоматически из описания на Modrinth и ждёт проверки редакцией.

Редакция NLZONE

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

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

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

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