MantleJS
一个用于 Mantle 的 KubeJS 附加模组。
当前内容
- 自定义 Mantle 书籍
错误报告
在 GitHub 上报告错误。
教程
请参阅 GitHub。
创建 Mantle 书籍的示例。
// 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");
});
你是这个资源的作者?登录后可认领此资源。
评论 0
登录后参与评分
还没有评论,来抢沙发吧