Skip to content

MantleJS

By PelemenguinOwner

A KubeJS addon for Mantle things

<1,000 downloads Updated

No ratings yet

Be the first to rate it.

Rate it

Community listing page

Community listing page, reviews may not be monitored by the author.

About

Description

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");
});