Add projectile entity support to geo-limit-settings#2863
Merged
Conversation
Co-authored-by: tastybento <4407265+tastybento@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add geo-limit-settings for projectiles
Add projectile entity support to geo-limit-settings
Mar 14, 2026
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Projectile entities (snowballs, arrows, fireballs, etc.) accumulate over time on islands but were not configurable via
geo-limit-settings. This adds support for geo-limiting projectiles so they are removed when they leave island bounds.Changes
GeoMobLimitTabPROJECTILE_ENTITY_TYPES: auto-discovered viaProjectile.class.isAssignableFrom(entityType.getEntityClass())— covers arrows, snowballs, fireballs, tridents, wind charges, wither skulls, ender pearls, potions, etc.GEO_LIMIT_ENTITY_TYPES: merged + sorted combination of living entity types and projectile types.getEntityTypes()to select the right list per tab type.GeoLimitMobsListeneronProjectileLaunchhandler: when a projectile is launched inside a BentoBox world and itsEntityTypename is present in the geo-limit settings, it is added to themobSpawnTracker. The existing periodic removal task handles cleanup when the projectile travels outside island bounds.Tests
GeoLimitMobsListenerTestcovering: projectile tracked, type not in list, not in BentoBox world, no island at launch location.Original prompt
📱 Kick off Copilot coding agent tasks wherever you are with GitHub Mobile, available on iOS and Android.