Skip to content

@minecraft/server


@minecraft/server / SetBookContentsFunction

Class: SetBookContentsFunction ​

Defined in: @minecraft/server/index.d.ts:19679

Loot item function that modifies the contents of a dropped book.

Extends ​

Properties ​

author ​

readonly author: string

Defined in: @minecraft/server/index.d.ts:19686

Remarks ​

The name of the book's author.


conditions ​

readonly conditions: LootItemCondition[]

Defined in: @minecraft/server/index.d.ts:15793

Inherited from ​

LootItemFunction.conditions


pages ​

readonly pages: string[]

Defined in: @minecraft/server/index.d.ts:19692

Remarks ​

An array of text to be placed in the pages of the book.


title ​

readonly title: string

Defined in: @minecraft/server/index.d.ts:19698

Remarks ​

The book's title.