minecraft:behavior.inspect_bookshelf
Allows the mob to inspect bookshelves.
Properties
| Property | Type | Default | What it does |
|---|---|---|---|
search_range | Integer | 0 | The distance in blocks the mob will look for books to inspect. |
search_height | Integer | 1 | The height that the mob will search for bookshelves. |
goal_radius | Decimal | 0.5 | Distance in blocks within the mob considers it has reached the goal. This is the "wiggle room" to stop the AI from bouncing back and forth trying to reach a specific spot. |
search_count | Integermin 0 | 10 | The number of randomly selected blocks each tick that the mob will check within its search range and height for a valid block to move to. A value of 0 will have the mob check every block within range in one tick. |
speed_multiplier | Decimalmin 0 | 1 | Movement speed multiplier of the mob when using this goal. |
priority | Integermin 0 | 0 | |
control_flags | List of text | [] |
Example from the game files
This is how vanilla Villager uses it in Minecraft Bedrock 1.26.60.5:
{
"minecraft:behavior.inspect_bookshelf": {
"goal_radius": 0.8,
"priority": 8,
"search_count": 0,
"search_height": 3,
"search_range": 4,
"speed_multiplier": 0.6
}
}Used by 1
Vanilla entities with minecraft:behavior.inspect_bookshelf in their definition:
Related components
behavior.pickup_itemsbehavior.move_to_villagebehavior.harvest_farm_blockbehavior.lay_eggbehavior.move_indoorsbehavior.move_outdoorsbehavior.place_blockbehavior.raid_gardenbehavior.digbehavior.dragonscanningbehavior.drop_item_forbehavior.eat_blockbehavior.eat_carried_itembehavior.eat_mobbehavior.fertilize_farm_blockbehavior.hold_groundbehavior.move_through_villagebehavior.open_doorbehavior.random_search_and_digbehavior.restrict_open_doorbehavior.snackingbehavior.stroll_towards_villagebehavior.take_blockbehavior.transport_items