KarnsLib
A mod currently in active development that provides additional tools for creating advanced hitboxes, visual particle effects, and various geometric shapes.
Main Hitbox Features
The hitbox system detects entities of various types and returns lists of objects from categories: Entity, LivingEntity, or Player, depending on the selected detection method.
- Cubic detection zone - rectangular area in space
- Spherical detector - detection within a radius from a given point
- Cylindrical zone - detection within a cylindrical volume
- Line detector - detection along a straight line
Visual Particle Effects
Functions for creating complex geometric shapes and animations using Minecraft's particle systems.
- Constructing line segments between two endpoints
- Creating lines from a starting point with specified direction and length
- Forming arcs and circles of any radius
- Creating spiral and rotating constructions
- Various combined geometric forms
Additional Utilities
- Local coordinates - support for relative coordinate system (^ ^ ^ similar to Minecraft commands)
- Unit vectors - simplified work with directions and orientation