AutoFarm 1.2.0

Make farming easier! (and less boring)

  1. Bluerossman
    Contributors:
    Bluerossman
    Description:
    This plugin automates the process of farming greatly, in an extremely lightweight manner. Not completely - there still is human interaction involved, but now tasks such as planting and re-planting crops are much less tedious and much more simple.

    Features:
    This plugin has two main features: auto-planting and auto-replanting. You can have one without the other, simply check the config.

    This currently works with wheat, carrots, potatoes, melons, pumpkins and nether wart.

    Auto-planting occurs when you first till the soil, or in the case of nether wart, on placement of soul sand. According to what mode you have set, (see the commands section), it will place seeds on the soil, and remove them from your inventory for you. If you don't have the correct seeds, you get a message telling you so, and nothing happens.

    Auto-replanting is the automation of replanting crops. This means that upon harvesting a crop, if it drops a seed, the seed is removed from the drop and automatically placed back onto the soil. You collect the harvest as usual. If the plant doesn't drop a seed, then nothing happens.
    This can also be configured to only work with a specific item, and remove a certain durability from that item.


    Commands:

    There are currently three commands, all based of /autofarm, or its alias, /af.

    • /af mode <wheat|carrot|potato|melon|pumpkin|netherwart> - select/change your auto-planting mode.
    • /af toggle - toggle all auto-farming on or off.
    • /af reload - reload the config.

    Permissions:

    There are three main permissions. If you don't have the permission, the command doesn't show in the command help:

    • autofarm.mode - Gives access to /af mode. Defaults to everyone.
    • autofarm.toggle - Gives access to /af toggle. Defaults to everyone.
    • autofarm.reload - Gives access to /af reload. Defaults to op.
    There is also a permission node for each crop. Not having a node means the player is still able to plant and harvest, just not automatically.

    They all default to everyone.

    • autofarm.crop.wheat
    • autofarm.crop.carrot
    • autofarm.crop.potato
    • autofarm.crop.melon
    • autofarm.crop.pumpkin
    • autofarm.crop.netherwart

    Configuration:

    Very self-explanatory:
    Code (Text):
    # Configuration file for AutoFarm

    ###################
    #                 #
    #     General     #
    #                 #
    ###################

    defaultToggle: true
    # The default toggle for all auto-farming.
    # Resets on login to this.



    ###################
    #                 #
    #   Auto-replant  #
    #                 #
    ###################

    autoreplant:
      enabled: true

      item:
        enabled: false
        # Should players have to use an item to auto-replant?
        material: DIAMOND_HOE
        # Material of said item
        durabilityLoss: 2
        # The durability lost upon a successfull auto-farm

      replantMessage:
      - '&6Automatically replanted!'
      - '&6See &4/af &6for more info!'
      # Message(s) to display to players upon an auto-replant




    ###################
    #                 #
    #    Auto-plant   #
    #                 #
    ###################

    autoplant:
      enabled: true

      defaultMode: wheat
      # The default mode for auto-planting.
      # Resets on login to this.
      # Possible values: wheat, carrot, potato, melon, pumpkin, netherwart

      autoPlantMessage:
      - '&6Automatically planted!'
      - '&6See &4/af &6for more info!'
      # Message to display to players upon an auto-plant
     

    Suggestions:
    I highly appreciate any feedback, good or bad, so leave comment in the discussion section, or PM if you want a feature added, or a bug fixed.


    Source:
    You can find the source code for this plugin on GitHub, here.
    Kagrurnaax likes this.

Recent Updates

  1. Nether Wart
  2. Permissions Update
  3. Bugs

Recent Reviews

  1. kdthehun
    kdthehun
    3/5,
    Version: 1.2.0
    Nice plugin, Works on 1.13, but it's either everyone can do it or nobody. Not sure if it's 1.13's fault. but even if i negate the permissions they are still able to autoplant/replant. I would like to have this as a Jobs Farmer perk at a certain level+ so this just doesn't work for me as is at present. But if you are looking to enable auto replant for everyone on the server, then this is what you are looking for even in 1.13!
  2. leduyphuongcm
    leduyphuongcm
    5/5,
    Version: 1.2.0
    please update 1.10 tks very much !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
  3. Maxito
    Maxito
    3/5,
    Version: 1.2.0
    Nice plugin, just very spammy for our users. Could you add an option to disable the autoplant and replant messages? Leaving them blank still spams them with empty lines. Thanks and keep it up!
    1. Bluerossman
      Author's Response
      sure, I'll work on it
  4. Bryan_Ponce
    Bryan_Ponce
    3/5,
    Version: 1.2.0
    Nice

    Please make this compatible with:
    Slimefun

    The plugin needs a player to break the plants/playerheads/saplings
    orelse they turn into normal saplings/playerheads when broken by machines

    I know it isn't your fault...
    Yet, it might be a while before a new update comes out for the plugin, because it is such a large plugin...
    1. Bluerossman
      Author's Response
      I will try
  5. Bananna
    Bananna
    5/5,
    Version: 1.0.0
    Looks really interesting! Great job OP, I see may servers using this in the future :)
    1. Bluerossman
      Author's Response
      thanks :)