BetterFish allow you set whether players can fish, fishing exp, ban items or enchantments from fishing, or add new items from fishing.
Code (YAML):
# Generally not necessary to change, used to identify whether the configuration file needs structural updates
version
:
"1"
# Whether fishing is allowed
allow-fish
: true
# Remove Enchantments
# If remove-all is set, mending and infinity do not need to be set, as they will all be removed
# This feature removes enchantment attributes from fished items (if any)
# It will also remove corresponding enchantments from enchanted books, and if the enchantments are removed, the enchanted book will return as a regular book
enchant-remove-all
: true
# Remove Mending Enchantment
enchant-remove-mending
: false
# Remove Infinity Enchantment
enchant-remove-infinity
: false
# Experience gained per fishing
# Set to 0 to disable experience gain
fish-exp
: 1
# Ban items
# Prohibited items fished up
# Item IDs must be in uppercase
# All IDs: https://github.com/g-mero/static-assets/blob/main/mc/itemTranslations.yml
# eg:
# deny-items:
# - SADDLE
# - ENCHANTED_BOOK
deny-items
:
# Add items
# Items that can be fished up
# Format: Item ID, Probability
# Use English commas, Probability is an integer from 0 to 100; 100 does not guarantee the item, it has the same probability as catching regular fish
# The Lure enchantment on the fishing rod will slightly increase the probability of low-probability items
# Higher priority than deny-items
# eg:
# add-items:
# - DIRT,50
# - DIAMOND,1
add-items
:
# Safe items
# Generally not necessary to set, mainly for safety considerations to replace items; default is cod
# Same format as deny-items
# If you want to ban cod, set safe items here
# Best practice is to set items of little value or trash, as the hit probability here might be higher (if you have banned high-probability vanilla items)
safe-items: