Mechanic
look
Forces the caster to look at the target location
Configuration Fields (5)
| Name | Type | Default | Description |
|---|---|---|---|
| headOnly ho | boolean | false | Only rotate the head of the mob |
| immediately immediate, i | boolean | true | Causes the mob to turn towards the target immediate without any animations |
| force f | boolean | false | Forces the mob to look at the target |
| forcePaper fp | boolean | false | Whether to use PaperMC's method to force the mob to look at the target |
| speed s, duration, ticks | PlaceholderDuration | 10 | Ticks to fully rotate toward the target for no-AI entities. 1 or less = instant. |
Examples & Notes
Universal Mechanic Options
Mentioned by
AIGoallookAtTarget
Look at the current target
AIGoalpanic
Run around panicing when on fire and look for water
AIGoalrandomLookAround
Randomly look around
ConditionfieldOfView
Tests if the target is within the given angle from where the caster is looking
ConditionlookingAt
Checks if the player is looking at something
- Author:
- Ashijin
