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

Add entity_in_radius entity condition type #226

Merged
merged 2 commits into from
May 30, 2024

Conversation

eggohito
Copy link
Collaborator

@eggohito eggohito commented May 5, 2024

This PR adds an entity_in_radius entity condition type, which checks whether there's a specified number of entities that fulfill the specified bi-entity condition within the radius of an area relative to the entity's feet. It accepts these fields:

Note

In the context of this entity condition type, the 'actor' is the entity while the 'target' are the entities within the radius of the specified area.

Field Type Default Description
bientity_condition Bi-entity Condition Type The bi-entity condition to evaluate on either or both the 'actor' and 'target(s)'
shape Shape "cube" Determines the shape of the area used for checking how many entities fulfill the bi-entity condition. Accepts "cube", "star", or "sphere".
radius Float Determines the radius of the area used for checking how many entities fulfill the bi-entity condition.
comparison Comparison ">=" Determines how the amount of entities that fulfill the bi-entity condition should be compared to a specific value.
compare_to Integer 1 The value at which the amount of entities that fulfill the bi-entity condition will be compared to.

@eggohito eggohito added this to the 2.12.x milestone May 5, 2024
@eggohito eggohito self-assigned this May 5, 2024
@MerchantPug
Copy link
Contributor

Nice!

@eggohito eggohito changed the base branch from 1.20 to 1.20.4/dev May 17, 2024 04:37
@eggohito eggohito added the to merge This will be merged soon label May 19, 2024
@eggohito eggohito merged commit 6162bde into 1.20.4/dev May 30, 2024
@eggohito eggohito deleted the feat/entity_condition_types/entity_in_radius branch May 30, 2024 12:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
to merge This will be merged soon
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants