▶️ ЗАБЕРИ СВОИ 8 ПОДАРКОВ 🎁 ПРИ СОЗДАНИИ СВОЕГО МАЙНКРАФТ СЕРВЕРА
Плагины/MonolithAPI
MonolithAPI

MonolithAPI

A modern API for creating custom blocks on Paper servers

Оцените первым
12
0

Monolith API

A modern API for creating custom blocks on Paper servers.

Modrinth Minecraft

Simple • Type-safe • Java compatible • Extensible


Overview

Monolith API is a framework for creating custom blocks on Paper servers.

Instead of replacing vanilla mechanics or requiring a resource pack, Monolith allows plugins to register new logical block types based on vanilla materials while providing completely custom behavior.

Every custom block can react to events, be converted to and from an item, be placed into the world and retrieved later through the API.

The library is written in Kotlin but designed to be equally comfortable for Java developers.


🧭 Navigation

Explore the comprehensive documentation to master the API:

1. Getting Started

  • Introduction & Features — Core philosophy and key capabilities.
  • Installation Guide — Setting up Maven, Gradle, and plugin.yml.
  • API Entry Point — How to access the API in Java and Kotlin.

2. Core Concepts

  • Defining Custom Blocks — Creating your first BlockDefinition.
  • Registration Lifecycle — Using MonolithRegisterEvent correctly.
  • Items) — Converting blocks to ItemStacks.

3. Advanced Mechanics

  • Event System & Behaviors — Understanding global vs. local event dispatch.
  • Persistent Data (DataContainer)) — Saving custom state to blocks.
  • Custom Data Types#43-registering-custom-data-types) — Serializing complex objects.
  • Vec3i — Advanced coordinate math and proximity checks.

4. World Management)

  • PlacedBlock API#61-retrieving-placedblock-instances) — Accessing blocks already in the world.
  • Placement & Destruction#62-programmatic-placement-and-destruction) — Programmatic world manipulation.
  • Built-in Commands

Installation

plugin.yml

depend:
  - MonolithAPI

Maven

<dependency>
    <groupId>io.github.zawarka03</groupId>
    <artifactId>monolith-api</artifactId>
    <version>VERSION</version>
    <scope>provided</scope>
</dependency>

Gradle

dependencies {
    compileOnly("io.github.zawarka03:monolith-api:VERSION")
}
Партнёрский материал

Сервер для плагина MonolithAPI - как у профи

Плагин MonolithAPI создан для серверов: на своём сервере вы настраиваете его под себя и решаете, кому играть. Создать сервер с плагином MonolithAPI для друзей можно за пару минут - BungeeHost всё уже подготовил.

Часто задаваемые вопросы

Совместимость

Minecraft: Java Edition

26.2.x26.1.x1.21.x1.20.x1.19.x1.18.x

Платформы

Поддерживаемые окружения

Сервер

Ссылки


Создатели

Детали

Лицензия:
Опубликован:2 месяца назад
Обновлён:1 месяц назад
Главная