Book Binder 图标

Book Binder

作者:rebot | 分类:模组

价格:0 墨喵币 下载量:0 点赞:0 版本 1.0.0
本资源为搬运资源,原资源地址: https://modrinth.com/mod/book-binder
资源信息

Minecraft 版本: 1.20.2 1.20.3 1.20.4

平台: datapack

标签: library

资源介绍

Pretty much what the summary says: "A small, outdated data pack for generating random books. Mainly meant to be incorporated into other data packs."



Functions


book_binder:book/upload {no arguments}: Attempts to upload the pages of the currently held book to storage. Fails if the executer isn't a player with a book and quill or written book in their main-hand. Overwrites any previous data if successful.

book_binder:book/add_pages {no arguments}: Attempts to append the pages of the currently held book to the pages within storage. Fails if the executer isn't a player with a book and quill or written book in their main-hand.

book_binder:book/add_page {page:<string>}: Appends the data of argument "page" to the pages within storage. Data of argument "page" is treated as a string enclosed in double quotes, even if it wasn't originally. In most cases, I'd suggest using book_binder:book/add_pages instead.

book_binder:book/clear {no arguments}: Removes all pages within storage. Simple as that.

book_binder:book/remove_page {page:<integer>}: Attempts to remove the page at index "page" within storage. Fails if the targeted page doesn't exist.

book_binder:book/output {no arguments}: Attempts to create a writen book item entity containing a copy of the pages within storage. Note: said item entity despawns in 2 game ticks, to prevent clutter. Fails if there aren't any pages within storage.

book_binder:book/generate {pages:<integer>}: Attempts to create a writen book item entity containing "pages" number of random pages from storage. Note: said item entity despawns in 2 game ticks, to prevent clutter. Each page within storage can occur only once in the generated book, and are randomly arranged in said book. Attempting to generate a book with more pages then what's been stored will result in a book with as many pages as what's in storage. Attempting to use integers less than or equal to one for the argument "pages" results in a book with only one page. Fails if there aren't any pages within storage.

book_binder:construct/add {page:<integer>}: Attempts to append the page at index "page" within storage to a second set of pages within storage. Changes made to one set of pages isn't reflected in the other set. Fails if the targeted page doesn't exist.

book_binder:construct/remove {page:<integer>}: Attempts to remove the page at index "page" from the second set of pages within storage. Fails if the targeted page doesn't exist.

book_binder:construct/output {no arguments}: Attempts to create a writen book item entity containing a copy of the second set of pages within storage. Note: said item entity despawns in 2 game ticks, to prevent clutter. Fails if there aren't any pages in the second set of pages within storage.

book_binder:construct/clear {no arguments}: Removes all pages from the second set of pages within storage.


I'll probably make a simple video to demonstrate these functions.

下载太慢?试试 墨喵加速站,支持 Modrinth 和外网直链高速下载! 用的人越多,下载的越快!
下载与版本
评论(0)
登录 后发表评论。

暂无评论,抢个沙发吧~

举报此资源

请登录后举报

🔥 相关推荐
Nori's Create Modpack

价格:0 墨喵币
下载量:0

查看详情
Еверласт – Minecraft сервер

价格:0 墨喵币
下载量:0

查看详情
Create+ Relax

价格:0 墨喵币
下载量:0

查看详情
LuckyEngine

价格:0 墨喵币
下载量:0

查看详情