minecraft:behavior.inspect_bookshelf for you with a switch.Get GodCraftOverview
minecraft:behavior.inspect_bookshelf is an entity component: it goes in the components object of a custom mob, or in one of its component groups. AI goal that makes the mob walk up to bookshelves and look at them, like librarian villagers.
Fields
| Field | Type | Default | Description |
|---|---|---|---|
search_range | integer | 0 | How far sideways, in blocks, the mob looks for bookshelves. |
search_height | integer | 1 | How far up and down, in blocks, the mob looks for bookshelves. |
goal_radius | number | 0.5 | How close the mob must get to count as arrived. |
search_count | integer | 10 | How many random blocks are checked each tick. 0 checks every block in range.Range: 0 to … |
speed_multiplier | number | 1 | Speed multiplier while walking to the bookshelf.Range: 0 to … |
priority | integer | 0 | Lower numbers run first: when two goals compete, the one with the smaller priority wins.Range: 0 to … |
control_flags | Goal's control flags[] | none | Which body parts this goal takes over (move, look, jump), so goals using the same parts cannot run together. |
Example
Inside the components object of BP/entities/<name>.json (values are the defaults or placeholders):
BP/entities/<name>.json
{
"minecraft:behavior.inspect_bookshelf": {
"search_range": 0,
"search_height": 1,
"goal_radius": 0.5,
"search_count": 10,
"speed_multiplier": 1,
"priority": 0,
"control_flags": []
}
}