Mobserve
The Mobserve mod introduces a simple but useful mechanic to Minecraft - a special achievement trigger that activates when the player looks at a specific mob.
How it works
The main trigger is called mobserve:observe_entity. It has the following parameters:
- entity - entity predicate (similar to "kill an entity" triggers and similar ones)
- distance - maximum distance from player's eyes to entity's hitbox (optional parameter, default value is 32)
Technical features
The trigger activates only when the entity's bounding box intersects with the player's line of sight. The intersection point is used to check the distance from the camera (player's eyes) position.
Video review
For better understanding of the mod's functionality, we recommend watching a video review:
[YouTube video demonstrating Mobserve functionality]