Entity Documentation - minecraft:behavior.float

minecraft:behavior.float allows an entity to float on water. Passengers will be kicked out the moment the mob's head goes underwater, which may not happen for tall mobs.

Parameters

Name Default Value Type Description
priority not set Integer The higher the priority, the sooner this behavior will be executed as a goal.
sink_with_passengers Boolean false If true, the mob will keep sinking as long as it has passengers.

Example

"minecraft:behavior.float":{
    "priority": 0
}

Vanilla entities examples

creeper

"minecraft:behavior.float": {
    "priority": 0
}

Vanilla entities using minecraft:behavior.float