AFKFishing 1.1

Brings back AFK Fishing from PRE 1.16

  1. DinoThePro
    Native Minecraft Version:
    1.16
    Tested Minecraft Versions:
    • 1.16
    Contributors:
    Spigot WIKI, Minecraft Gamepedia Wiki (on fishing)
    AFKFishing
    or "The plugin" was made by me for my friend who wanted the 'old' fishing logic back from PRE 1.16.

    The plugin works instantly after being added to the plugin folder. No initial configuration is required unless you wish to specify custom probabilities for the various categories. See 'Configuration'.

    The plugin is now available to the public incase anyone for any reason wanted the AFK fishing feature back, the ability to receive treasure loot from AFK fishing that is. I tried to replicate the old logic with my best ability. The sources used for the probability calculation was: Minecraft Gamepedia Wiki (https://minecraft.gamepedia.com/Fishing).

    To clarify; this does alter every loot you get from fishing (not when you reel in a player or a dropped item though!). It does not matter if you are at open seas or at an old* AFK fishing farm. It will randomize the loot you get from fishing.

    *old as in pre 1.16.


    Configuration:
    upload_2020-10-12_18-43-41.png
    The configuration file 'probabilities.yml' is simple and comes with a reload command (see commands) to avoid having to reload the entire server.

    Under probabilities the different chance values for the four levels of LoS (Luck Of Sea) enchantment can be configured. If it is 0 (no LoS enchantment on the fishing rod) that goes under the subtitle 'default'. The default values that come with the plugin are designed to closely replicate the PRE 1.16 values.

    The sum of fish and value shall NOT be over 100 representing 100% probability. However, setting fish to 0 and treasure to 100 would mean a 100% probability of getting treasure from fishing with said rod. This and the reversed scenario is totally OK. Setting fish to 0 and treasure to 0 would in its case mean a 100% probability of getting junk. Logic for junk probability calculation is explained below.

    You do NOT need to write the junk probability since it is calculated through (100-fish-treasure). If you add a junk probability nonetheless: The plugin will NOT take this value into consideration.

    See below 'Examples' for clarifying examples.

    Examples:
    upload_2020-10-12_18-50-42.png
    This example would mean that for a fishing rod with no LoS enchantment the probability of getting a fish is 85%. The probability of getting a treasure is 5% which leaves 10% for the junk category.

    upload_2020-10-12_19-5-6.png
    This example would mean that a fishing rod with LoS enchantment level 1 'luck1' would have a 100% chance of getting fish. Subsequently, a 0% chance of getting treasure, and a 0% chance of getting junk.


    Commands
    upload_2020-10-12_19-11-18.png
    There is (as of v1.1) only one command. This command reloads the configuration file. Meaning, if you change the probabilities in the 'probabilities.yml' configuration file and execute this command, the plugin will load in the changed values and use these for probability calculation.
    Usage: /fishlogic reload
    Permission: fishlogic.cmd

    Help & Errors
    If you encounter an error or need help of any kind with the plugin, feel free to comment on the plugin's discussion page and I will attend to it as soon as my time allows me to.

    The plugin has been tested thoroughly on a local test server and should work without error on any 1.16+ server.

    TODO
    • Add more configurability (being able to change precise probability for each item in each category for example)
    • Add more availability for ingame management via commands. Meaning direct access to change the configuration file using only commands.
    • Would you like to see something added to the plugin? Write it up in the plugin's discussion page and it could be added to the TODO list.