CoolLord22 / OtherDrops1.13

OtherDrops branch for the latest Minecraft version!
GNU General Public License v3.0
0 stars 4 forks source link

Prevent Entity Tracking #14

Open BevoBexley opened 4 years ago

BevoBexley commented 4 years ago

Is your feature request related to a problem? Please describe. When denying an entity damage, it doesn't prevent the targeting of a player.

Describe the solution you'd like A clear and concise description of what you want to happen. Add a new trigger that disables the tracking of players from mobs.

Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered. I've tried to deny damage from specific mobs but they still target the player. Additional context Add any other context or screenshots about the feature request here.

CoolLord22 commented 1 year ago

See https://hub.spigotmc.org/javadocs/spigot/org/bukkit/event/entity/EntityTargetEvent.html#setTarget(org.bukkit.entity.Entity) and https://hub.spigotmc.org/javadocs/spigot/org/bukkit/event/entity/EntityTargetLivingEntityEvent.html