Removed ability to attack players, added an option to have a whitelist or a blacklist mode.

This commit is contained in:
Milutinke 2022-09-27 14:23:19 +02:00
parent 58b171cec0
commit 932d25f125
4 changed files with 32 additions and 21 deletions

View file

@ -204,11 +204,11 @@ cooldownseconds=auto # How long to wait between each attack. Use a
interaction=Attack # Possible values: Interact, Attack (default), InteractAt (Interact and Attack)
attackhostile=true # Allow attacking hostile mobs
attackpassive=false # Allow attacking passive mobs
attackplayers=false # Allow attacking players
# A path to the file which contains blacklisted entities (will not attack them), entity types are written on a new line
listmode=blacklist # Wether to treat the list from the file bellow as a whitelist or as a blacklist
# A path to the file which contains blacklisted or whitelisted entities, entity types are written on a new line
# All entity types can be found here: https://bit.ly/3Rg68lp
# The file is not created by default.
blacklist=autoattack-blacklist.txt
listfile=autoattack-list.txt
[AutoFishing]
# Automatically catch fish using a fishing rod

View file

@ -431,6 +431,7 @@ cmd.useitem.use=Used an item
bot.autoAttack.mode=Unknown attack mode: {0}. Using single mode as default.
bot.autoAttack.priority=Unknown priority: {0}. Using distance priority as default.
bot.autoAttack.invalidcooldown=Attack cooldown value cannot be smaller than 0. Using auto as default
bot.autoAttack.invalidlist=Invalid list type provided, using the default list mode of: 'blacklist'
# AutoCraft
bot.autoCraft.cmd=Auto-crafting ChatBot command