gnembon / fabric-carpet

Fabric Carpet
MIT License
1.63k stars 260 forks source link

Fixed a bug in the ai_tracker script which caused the golem detection range to be incorrect. #1890

Open Math2128 opened 2 months ago

Math2128 commented 2 months ago

Changed height to villager_height in the ai_tracker.sc file which caused the golem detection range to be 2 blocks smaller towards the positive Y.

Consist of one line of code, but I believe this should resolve the issue.

Math2128 commented 2 months ago

Before the fix:

2024-03-24 (5)

After the fix:

2024-03-24 (6)

Notice the white line in the background which now correspond to the 16 blocks detection zone (instead of 14 before).

I started counting the 16 blocks just after the head of the villager, like so:

⋮ □ 3 □ 2 □ 1 Villager head Villager feet