Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Enables the mob to admire items that have been configured as admirable.
Note
Requires the following component in order to work properly:
Admire Item Behavior Properties
Name | Default Value | Type | Description | Example Values |
---|---|---|---|---|
admire_item_sound | not set | String | The sound event to play when admiring the item | Piglin: "admire" |
on_admire_item_start | not set | Minecraft Event Trigger | Piglin: {"event":"admire_item_started_event","target":"self"} |
|
on_admire_item_stop | not set | Minecraft Event Trigger | Piglin: {"event":"admire_item_stopped_event","target":"self"} |
|
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. | Piglin: 2 |
sound_interval | 0 | Range of integers | The range of time in seconds to randomly wait before playing the sound again. | Piglin: {"range_min":2,"range_max":5} |
Samples
Piglin
"minecraft:behavior.admire_item": {
"priority": 2,
"admire_item_sound": "admire",
"sound_interval": {
"range_min": 2,
"range_max": 5
},
"on_admire_item_start": {
"event": "admire_item_started_event",
"target": "self"
},
"on_admire_item_stop": {
"event": "admire_item_stopped_event",
"target": "self"
}
}