azalea-rs / azalea

A collection of Rust crates for making Minecraft bots, clients, and tools.
https://azalea.matdoes.dev
MIT License
370 stars 47 forks source link

Created nearest_entity system param #102

Closed TheDudeFromCI closed 1 year ago

TheDudeFromCI commented 1 year ago

This utility function (provided as a SystemParam for easier Bevy system integration) can be used to locate nearby entities using much less boilerplate code.

Note that the example in this PR relies on #101 for sending LookAt events.

TheDudeFromCI commented 1 year ago

Ah, I think I screwed up the rebase

TheDudeFromCI commented 1 year ago

Alright, all problems are fixed. Sorry if I added merge conflicts due to a faulty rebase. Though I imagine it should work correctly.