minecraft:behavior.croak for you with a switch.Get GodCraftOverview
minecraft:behavior.croak 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 croak now and then, like frogs.
Fields
| Field | Type | Default | Description |
|---|---|---|---|
interval | FloatRange | {"max":20,"min":10} | Random wait range in seconds between croaks. One number works too. |
duration | FloatRange | {"max":4.5,"min":4.5} | Random range in seconds for how long a croak lasts. One number works too. |
filters | Filter Group | {"AND":null,"NOT":null,"OR":null,"all":null,"all_of":null,"any":null,"any_of":null,"none_of":null} | Conditions that must pass to start and keep croaking. |
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.croak": {
"interval": {
"max": 20,
"min": 10
},
"duration": {
"max": 4.5,
"min": 4.5
},
"filters": {
"AND": null,
"NOT": null,
"OR": null,
"all": null,
"all_of": null,
"any": null,
"any_of": null,
"none_of": null
},
"priority": 0,
"control_flags": []
}
}