PathFinder
The pathfinding algorithm alone consists of over 1,700 lines of code, and it takes into account a wide variety of complex environments.
Discord: https://discord.gg/daSchNY7Sr
Intelligent Pathfinding Algorithm
- Advanced A* Algorithm: Uses heuristic search to ensure the optimal path is found
- Long-Distance Navigation: Can find the best route even when players are thousands of blocks apart
- Intelligent Obstacle Avoidance: Automatically identifies and bypasses obstacles
- Cost Optimization: Intelligently evaluates the cost of breaking through blockades versus detouring to make the best decisions
-
Visual Experience
- Particle Path Guidance: Beautiful particle effects display the optimal route in real-time
- Customizable Appearance: Particle size, density, and display distance are fully configurable
- Real-Time Updates: Path dynamically refreshes to maintain accuracy
- Performance Optimization: Pathfinding runs completely asynchronously and does not block the main thread
-
Terrain Support
- Vertical Movement: Intelligently handles ladders, scaffolding, jumps, and other vertical navigation
- Complex Structures: Perfectly supports doors, trapdoors, fence gates, and other interactive blocks
- Terrain Adaptation: Automatically recognizes slabs, stairs, and other special terrain features
-
-
-
️ Highly Configurable
- Cost System: Over 15 movement behaviors with fully customizable costs
- Search Parameters: Search radius, number of iterations, and jump distance can all be adjusted
- Performance Tuning: Flexible algorithm parameters based on server configuration
- Hot Reload: Configuration changes are automatically reloaded without needing to restart the server
Players can set their own position to be unaffected by navigation.
Administrators can disable the navigation function.
Advanced Features
- Negative Cost Mechanism: Set the cost of traversing doors to a negative value to encourage pathfinding through specific routes
- Multi-Language Support: Supports 8 languages with automatic detection
- Server-Friendly: Designed specifically for high-performance servers with extensive optimization options
Frequently Asked Questions:
Q: The plugin doesn't work in version 1.20.x?
A: This plugin is specifically designed for version 1.21 and is incompatible with older versions.
Q: Path calculation takes too long?
A: Try reducing the values of max_iterations or max_search_radius to find a balance between performance and accuracy.
Q: Does the algorithm always choose to break blocks?
A: Increase the value of break_block_cost to make the algorithm more inclined to find detours. If you don't want the algorithm to break blocks, you can set the block-breaking cost to a very high value.
Q: Can other players see the pathfinding particles?
A: Particles are only visible to the navigator themselves and not to other players.
Q: What can this plugin navigate to?
A: Currently, it only supports navigation between players. More navigation functions are being developed gradually.
Q: Does the plugin significantly affect server performance?
A: You can adjust the following parameters in pathfinder.yml to optimize performance:
• particle spacing (increase particle spacing)
• max_particle_distance (reduce particle display distance)
• max_search_radius (reduce the maximum search radius)
• max_iterations (reduce the maximum number of iterations)
Discord:
https://discord.gg/daSchNY7Sr
⚠️ Important Reminder: The default configuration is set for high-performance servers. The pathfinding process will consume a large amount of CPU and memory resources. If your server cannot handle it, it is recommended to reduce the following settings in the configuration file:
• max_search_radius (maximum search radius): Generally, a value between 100-500 is sufficient (default is 3000)
• max_iterations (maximum number of iterations): Generally, a value of 1000 is sufficient (default is 4000)
After configuring these settings, it should run smoothly on most servers.
The default configuration is only recommended for use on high-performance servers.