Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

World and EntityAPI additions #202

Merged
merged 3 commits into from
May 21, 2024
Merged

World and EntityAPI additions #202

merged 3 commits into from
May 21, 2024

Conversation

4P5
Copy link
Contributor

@4P5 4P5 commented Mar 15, 2024

  • Adds world.getMapData(), world.getEntities(), and <EntityAPI>:getNearestEntity() (see the commits for more details)

4P5 added 3 commits March 12, 2024 20:01
- Added `world.getMapData()` for getting data related to maps. It takes a string argument, e.g. "map_4", and returns a table of data related to the map
- Added world.getEntities(). It accepts two positions which form a bounding box, then returns a list of all entities inside of the box.
- Added <EntityAPI>:getNearestEntity(), which returns the closest entity to the given entity. It takes an optional type to filter by, and a radius which defaults to 20 blocks
@UnlikePaladin UnlikePaladin merged commit a8d21ec into FiguraMC:1.20 May 21, 2024
1 check passed
superpowers04 pushed a commit to superpowers04/Extura that referenced this pull request May 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants