gnembon / fabric-carpet

Fabric Carpet
MIT License
1.73k stars 275 forks source link

Add render gizmo for wander targets, wander probaiblity for a given block #1851

Open kaylendog opened 11 months ago

kaylendog commented 11 months ago

I've recently been constructing a Gnembon-inspired blaze farm based on manipulation of wander targets. It would be helpful to add a render gizmo to target blocks when entities begin wandering.

In my particular example, I can use /ai_tracker pathfinding to visualise the blaze's paths they take when they chose to wander - from their current position to the closest position to the target wander block - but not the target block itself. This would be super convenient for debugging issues with AI-based farms.

I don't believe Scarpet has the ability to do this - only path visualisation, but I could be wrong.

It would also be convenient to add the wander probability feature found in Carpet 1.12 - I believe this behaviour was attached to the brown carpet, as seen in "Fun Farms Ep. 9". As far as I can tell, this hasn't been ported to fabric-carpet, but it'd be a nice addition to the ai_tracker scarpet script.

I'd be happy to try and implement this myself, but my Fabric abilities aren't the best.