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
| Name | Type | Optional | Description |
|---|---|---|---|
exec |
exec | Incoming execution. | |
entity |
entity | The living entity. | |
enabled |
boolean | ✓ | Enable AI? Leave disconnected to only read the current state. |
Outputs
| Name | Type | Description |
|---|---|---|
exec |
exec | Continues after the operation. |
hasAI |
boolean | Whether the entity currently has AI enabled. |
Properties
| Key | Type | Default | Description |
|---|---|---|---|
enabled |
boolean | "true" |
Whether to enable the AI. |