Added
- Leash Mechanics: Players are now leashed to each other, with movement of one player pulling the leashed partner closer until within 3 blocks.
- Particle Trail: A dynamic particle trail is created between leashed players to visualize the leash path. * Particles move from one player to the other at a height of 0.5 blocks.
- Command Controls: /leash to start the game mode and /unleash to stop it, with notifications for game start and end.
Fixed
- Movement Synchronization: Adjusted the algorithm to correctly pull players towards each other based on movement distance.
- Particle Effect Adjustment: Ensured particles travel accurately between players, enhancing visual feedback of the leash effect.
Improvements
- Code Optimization: Improved efficiency of the player movement and particle update mechanisms.
- Event Handling: Enhanced handling of player movements to ensure smooth gameplay and accurate leash behavior.