
"Wolf" type no longer a protected entity
James-P-Bennett opened this issue ยท 3 comments
What steps will reproduce the problem?
-
Edit the settings/config.yml file.
# Protect living entities within a town's boundaries from being killed by players or mobs. mob_types: Animals,WaterMob,NPC,Snowman,ArmorStand,Villager,Hanging,Wolf,Cat,Horse,Parrot,AbstractHorse,Axolotl,Camel,Cat,ChestedHorse,Chicken,Cow,Donkey,Fox,Frog,Goat,Hoglin,Horse,Llama,Mule,MushroomCow,Ocelot,Panda,Parrot,Pig,Rabbit,Sheep,SkeletonHorse,Steerable,Strider,Tameable,TraderLlama,Turtle,ZombieHorse
-
Reload the configuration / server
-
Have a player not part of a town attack any tamed or untamed wolf type within the town's borders, they are still able to deal damage and kill the entities.
What is the expected output?
No damage dealt with the lang message output "Outsiders are not allowed to destroy"
Towny version
Towny Version: 0.99.5.0
Server version
Current: git-Purpur-2025 (MC: 1.20.1)*
Previous: git-Purpur-2019 (MC: 1.20.1)
- 25 version(s) behind
Please use Pastebin.com to link the following files
- For security reasons I am not going to provide that.
- Towny config.yml
- townyperms.yml
- There is no error output when searching error or warn keywords in server output @ TownyAdvanced
It was a PVP setting. The world's wilderness had pvp enabled but towns did not. And for those also encountering the issue that might stumble on this issue, I'll explain a bit.
When PVP is active, wolves can still pose a threat in claimed areas because they may become hostile towards players and attack them while remaining invulnerable. To mitigate this issue, the plugin developers likely made it to where they can be attacked by anyone within town claims no matter the town's pvp or protection status.
I'd like to change this into a feature request where in areas such as peaceful towns where PVP is not active, I propose that tamed wolves lacking aggression towards the attacking player, should remain invulnerable to harm and stay passive within the peaceful town limits.