[Plugin] Animal Farming by Kassa

The next update will be available on Wednesday, December 18, in the early evening (GMT+1).

This update will not yet replace the Java version, instead it is the actual content update. We'll provide more information about the transition together with the update.
  • Hi,


    This is my first complete plugin. Of course I'm open to suggestions and if you find any errors please let me know and I'll fix them. I will update the plugin whenever there is a good new idea or if I have to fix a bug. (But I'm pretty sure my plugin will work flawless).


    The plugin works both in Singleplayer and Multiplayer on Servers.
    The download link is in the attachment. Just unzip the folder into your plugins folder. Make sure the folder structure is "plugins/AnimalFarming/AnimalFarming.jar".


    Download: Download the .zip file from the attachment at the bottom of the post.
    Installation: How to install/run a plugin
    Source Code (1.0.1): https://pastebin.com/knYNwEXp


    So what can this plugin do?


    Farmable Animals


    You can lure and breed the following animals:
    Cows, Pigs, Chickens, Goats, Rabbits, Deers and Sheep


    Luring Animals


    To lure an animal you have to hold a carrot equipped in your hand, stand in front of the animal, look at the animal and press the Interaction Key ("F" by default, the same key used for sheering sheep or collecting plants). The animal wont eat your carrot, but it will move to the location you were standing when you pressed F. In practice you need to look at the animal standing in interaction range (same as sheering sheep) and move backwards while keep pressing F on the animal so it will move to your locations. Just try in the game and you'll notice that it's pretty self-explaining.


    Breeding Animals


    To breed an animal you have to have 64 corncobs anywhere in your inventory/slotbar. Hold a corncob in your hand and press F (Interaction Key) on the animal. The plugin will search your inventory and slotbar for all corncobs and remove 64 of them. All the other corncobs will stay untouched. (The stack size or position of the corncobs in your inventory doesn't matter, it will just remove 64 of them whereever they are, just in case if your are worrying about bugs. I made sure everything works fine.)

    Screenshots


    1) Luring an animal with a carrot by pressing F



    2) Just cloned/bred a second cow with a corncob in my hand and pressing F, while having 64 corncobs in my inventory.




  • Update (1.0.1)


    - Feature: Corncobs will now be removed from both the inventory and quickslots instead of just the inventory. So it does not matter anymore where you have your corncobs placed.
    - Change: Animals now spawn directly inside of the other animal instead of 2 meters above. Doesn't really matter but it might otherwise cause issues when there are blocks above.
    - Bugfix: When you didn't have 8 corncobs in your hand the animal would not breed. Now the amount of corncobs in your hand does not matter.
    - General code clean-up


    Source Code & Download can be found in the first post.

  • bonjour

    quel plugin utilise tu ?j'ai essaye le plugin ANIMAL BREED MASTER il ne fonctionne pas du tout.j"aimerais bien écrire la question en Anglais .mais je ne connais pas l'Anglais.MERCI pour t'on aide

  • oui j'utilise animal breed master, enfin d'autres joueurs du serveur pas vraiment moi ;)

    essaye d'utiliser google traduction, ça permet de comprendre même s'il y a des erreurs ;)

  • Serwus ich weiß es ist ein bisschen viel verlangt, aber könntest du bitte dein MOD für die neue Version umschreiben ?


    Das wäre echt top von dir.




    Hey, I know it's a bit much to ask, but could you please rewrite your MOD for the new version?




    That would be really great of you...

  • with the current unity API you cant get NPC info. Meaning there is no way for a plugin to take control of an NPC.

    Of course that's a total shame, I'm looking forward to it when the time comes.

    Thanks for the info, I really hope that your mod will be available soon....





    Das ist natürlich total schade, ich freue mich schon wenn es soweit ist.

    danke für die Info, ich hoffe sehr das dein mod bald zur verfügung steht

Participate now!

Don’t have an account yet? Create a new account now and be part of our community!