Entity paper/entity_ai

Entity AI

Enables or disables the AI of a living entity. Entities with AI disabled stand still and do not attack.

Note: Useful for creating stationary display mobs or boss arenas.

Inputs

NameTypeOptionalDescription
exec exec Incoming execution.
entity entity The living entity.
enabled boolean Enable AI? Leave disconnected to only read the current state.

Outputs

NameTypeDescription
exec exec Continues after the operation.
hasAI boolean Whether the entity currently has AI enabled.

Properties

KeyTypeDefaultDescription
enabled boolean "true" Whether to enable the AI.