COWMODSКаталог модов

MantleJS

A KubeJS addon for Mantle things

Автор: Pelemenguin6821обновлён 7 авг. 2025 г.
Оптимизация

Описание

MantleJS

A KubeJS addon for Mantle things.

Current contents

  • Custom Mantle books

Bug report

Report bugs on GitHub.

Tutorials

See GitHub.

An example to create a Mantle book.

// Script type: STARTUP
MantleJSEvents.bookRegistry(event => {
    // Create the book here
    event.create("test")
        // Specify the book repository
        .addBookRepository("kubejs:book/test");
});
StartupEvents.registry('item', event => {
    // Create a book item
    event.create("test_book", "mantle:book")
        // Set the book data
        .setBookData("test");
});

Последние версии

Все версии →
alpha

MantleJS[1.20.1] v0.1 Alpha.3

0.1-alpha.3
7 авг. 2025 г.602Minecraft: 1.20.1forge
Скачать
Что нового
Fixed bug: - Cannot record pages added by custom transformers when closing a book. This causes that, when open the book next time, it cannot automatically turn to the last-opened page. New feature: - Allow directly create a `PageDataJS` via static methods `createNew`, `createNewCustom` and `createEmpty`. Java class `PageDataJS` still needs to be loaded manually using `Java.loadClass()`. This is because pages creating via methods above needs more manual operations such as setting their `parent`. So `PageDataJS` is not provided directly by a global constant, to avoid confusing new developers.
alpha

MantleJS[1.20.1] v0.1 Alpha.2

0.1-alpha.2
31 июл. 2025 г.35Minecraft: 1.20.1forge
Скачать
Что нового
Add an `BookTextComponentData` interface to create `TextComponentData`. - `BookTextComponentData.literal(string)` - `BookTextComponentData.of(Component)`
alpha

MantleJS[1.20.1] v0.1 Alpha.1

1.20.1-0.1-alpha.1
20 июл. 2025 г.45Minecraft: 1.20.1forge
Скачать
Что нового
First release. # Contents - Allow adding custom Mantle books. - A new item type `mantle:book`. - Custom book transformers. - Custom page types. - Access for Mantle's built-in book elements.