Allows a mob to be tempted by a player holding a specific item. Uses pathfinding for movement.
Tempt Behavior Properties
| Name | Default Value | Type | Description | Example Values |
|---|---|---|---|---|
| can_get_scared | false | Boolean true/false | If true, the mob can stop being tempted if the player moves too fast while close to this mob. | Fox: true |
| can_tempt_vertically | false | Boolean true/false | If true, vertical distance to the player will be considered when tempting. | Frog: true |
| can_tempt_while_ridden | false | Boolean true/false | If true, the mob can be tempted even if it has a passenger (i.e. if being ridden). | |
| items | [] | Array of strings | List of items that can tempt the mob. | Chicken: ["wheat_seeds","beetroot_seeds","melon_seeds","pumpkin_seeds","pitcher_pod","torchflower_seeds"], Cow: ["wheat"], Fox: ["sweet_berries","glow_berries"] |
| priority | not set | Integer number | As priority approaches 0, the priority is increased. The higher the priority, the sooner this behavior will be executed as a goal. | Chicken: 4, Fox: 3, Frog: 5 |
| sound_interval | not set | Integer number | Range of random ticks to wait between tempt sounds. Can be a number, an array [min, max], or an object with range_min/range_max or min/max. | |
| sound_interval (as Array of objects) | not set | Array of Sound Interval items | ||
| sound_interval (as Object) | not set | Sound Interval item | ||
| speed_multiplier | 1 | Decimal number | Movement speed multiplier of the mob when using this AI Goal | Chicken: 1, Cow: 1.25, Fox: 0.5 |
| stop_distance | 1.5 | Decimal number | The distance at which the mob will stop following the player. | |
| tempt_sound | not set | String | Sound to play while the mob is being tempted. | |
| within_radius | 0 | Decimal number | Distance in blocks this mob can get tempted by a player holding an item they like. | Fox: 16 |
Sound Interval
Sound Interval Properties
JSON path: sound_interval
| Name | Default Value | Type | Description |
|---|---|---|---|
| 0 | not set | Integer number | |
| 1 | not set | Integer number |
Samples
Chicken
"minecraft:behavior.tempt": {
"priority": 4,
"speed_multiplier": 1,
"items": [
"wheat_seeds",
"beetroot_seeds",
"melon_seeds",
"pumpkin_seeds",
"pitcher_pod",
"torchflower_seeds"
]
}
Cow
"minecraft:behavior.tempt": {
"priority": 4,
"speed_multiplier": 1.25,
"items": [
"wheat"
]
}
Fox
"minecraft:behavior.tempt": {
"priority": 3,
"speed_multiplier": 0.5,
"within_radius": 16,
"can_get_scared": true,
"items": [
"sweet_berries",
"glow_berries"
]
}
Frog
"minecraft:behavior.tempt": {
"can_tempt_vertically": true,
"items": [
"slime_ball"
],
"priority": 5,
"speed_multiplier": 1.25
}
Goat
"minecraft:behavior.tempt": {
"priority": 4,
"speed_multiplier": 0.75,
"items": [
"wheat"
]
}