Skip to content

Exclude tamed animals from interdiction torch repulsion#2463

Open
bailboy101 wants to merge 1 commit into
sinkillerj:mc1.21.1from
bailboy101:fix/interdiction-tamed-exclusion
Open

Exclude tamed animals from interdiction torch repulsion#2463
bailboy101 wants to merge 1 commit into
sinkillerj:mc1.21.1from
bailboy101:fix/interdiction-tamed-exclusion

Conversation

@bailboy101

@bailboy101 bailboy101 commented Apr 25, 2026

Copy link
Copy Markdown

When interdictionMode is set to false, the interdiction torch repels all living entities that are not on the blacklist. The blacklist operates on entity types, meaning it is not possible to exclude tamed mobs from repulsion without also excluding all untamed mobs of the same type. This means players have no way to prevent the torch from repelling their own tamed mobs.

The interdiction torch in hostile mode can incorrectly repel tamed mobs that belong to a player. This change adds a check to exclude any entity that extends TamableAnimal and has been tamed.
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.

1 participant