Version 1.1 changes:
- Plugin now generates a config.yml file. The following can now be configured: mobs that won't attack, mobs that won't be attacked by other mobs, whether mobs require line of sight to target another. Do note that these only affect the plugin and will not change vanilla behavour.
Code (YAML):
# Restart the plugin or the server for changes to take effect
# Sets if entities require a line of sight to target another
lineofsight
: true
# Sets the entities that won't be targeted by other mobs
# However, it does not override vanilla behavour. Zombies will attack villagers regardless of this setting
donttargetme
:
-
"axolotl"
# Sets the entities that won't attack other mobs
# However, it does not override vanilla behavour. Zombies will attack villagers regardless of this setting
# In addition, the entities listed here will still retaliate when attacked by another mob, they just won't initiate combat
peaceful
:
-
"creeper"
-
"enderman"
# For the full list of valid values, visit https://hub.spigotmc.org/javadocs/spigot/org/bukkit/entity/EntityType.html
# As only mobs are affected by this plugin, please exercise discretion when using that link. Not all values in the link are applicable
# Putting "minecart" or "painting" isn't going to do anything