[AI Hunter] Mechanics Behind: "Simulation"
Purpose Simulation is a mechanic made to prevent issues occur when hunters are out of player’s render/ simulation distance. Issues may include hunters being unable to move (if they are in "mob-unable-to-move" zone) and hunter duplication (if hunters are completely unloaded). How it works In short, simulation prevents said issues by uploading a hunter when there is no player within its present zone . The actions of uploaded hunters will be simulated , and they will return if their distance to any player is less than return range . Present Zone & Present Range Present zone is a cuboid shaped detection zone with hunter as its centre, with present range x 2 as both its width and length, and its height span all the way from the void to the build limit. Every Minecraft tick the system check if any player is inside the present zone . If no player is withi...