基本上就是摘要所说的:“一个小型、已过时的数据包,用于生成随机书籍。主要设计为集成到其他数据包中。”
功能
book_binder:book/upload {no arguments}:尝试将当前手持的书页上传至存储。如果执行者主手没有持有笔和书或已写入的书,则失败。如果成功,会覆盖之前的任何数据。
book_binder:book/add_pages {no arguments}:尝试将当前手持的书页追加到存储中的书页里。如果执行者主手没有持有笔和书或已写入的书,则失败。
book_binder:book/add_page {page:<string>}:将参数“page”的数据追加到存储中的书页里。参数“page”的数据被视为双引号内的字符串,即使它原本不是。在大多数情况下,建议改用 book_binder:book/add_pages。
book_binder:book/clear {no arguments}:移除存储中的所有书页。就是这么简单。
book_binder:book/remove_page {page:<integer>}:尝试移除存储中索引为“page”的书页。如果目标书页不存在,则失败。
book_binder:book/output {no arguments}:尝试创建一个包含存储中书页副本的已写入书物品实体。注意:该物品实体会在 2 个游戏刻后消失,以防止杂乱。如果存储中没有书页,则失败。
book_binder:book/generate {pages:<integer>}:尝试创建一个包含“pages”个随机页面的已书写书物品实体,这些页面来自存储区。注意:该物品实体将在 2 个游戏刻后消失,以防止杂乱。存储区中的每个页面在生成的书中只能出现一次,并在书中随机排列。如果尝试生成的书籍页数超过存储区中已有的页数,则生成的书籍将只包含存储区中的所有页面。如果为参数“pages”使用小于或等于 1 的整数,则生成的书籍将仅包含一页。如果存储区中没有页面,则命令失败。
book_binder:construct/add {page:<integer>}:尝试将存储区中索引为“page”的页面追加到存储区中的第二组页面。对一组页面的更改不会反映在另一组页面上。如果目标页面不存在,则命令失败。
book_binder:construct/remove {page:<integer>}:尝试从存储区中的第二组页面移除索引为“page”的页面。如果目标页面不存在,则命令失败。
book_binder:construct/output {no arguments}:尝试创建一个已书写书物品实体,其中包含存储区中第二组页面的副本。注意:该物品实体将在 2 个游戏刻后消失,以防止杂乱。如果存储区中的第二组页面为空,则命令失败。
book_binder:construct/clear {no arguments}:清除存储区中第二组页面中的所有页面。
我可能会制作一个简单的视频来演示这些功能。
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.
评论 0
登录后参与评分
还没有评论,来抢沙发吧