Inactive [FUN/MECH] AnimalCompanion v0.3.2 - Make man's best friend into a companion, Wolf Plugin [1060]

Discussion in 'Inactive/Unsupported Plugins' started by TheTennessee, Aug 19, 2011.

  1. Offline


    AnimalCompanion - Make man's best friend into a companion, Wolf Plugin
    Version: 0.3.2
    Tested with: CB 1060

    Latest JAR:
    MediaFire - <Edit by Moderator: Redacted mediafire url>
    MegaUpload - Version 0.3.2 JAR

    Older Versions:
    MegaUpload - Version 0.2.1 JAR
    MegaUpload - Version 0.1 JAR

    My second plugin, AnimalCompanion, is a fully featured wolf plugin to give ultimate control and utility to your tamed wolves. Tired of your wolves dieing and being quite frankly useless? Did you just install AdvancedMobs, tame yourself a HellHound, and had it die on you to a ghast? Well, fear no more. This plugin makes your wolf into an animal companion (ala the rangers/druids of D&D fame). These special wolves toughen up over time, are smarter, and can be controlled much more effectively. Best of all, they can follow you between worlds, so your new HellHound isn't stuck in the nether.

    <font color="rgb(255, 0, 0)">Important: If you find any bugs or adherent behaviors while using this plugin, please give a list of the wolf changing plugins you have besides this one, the startup messages for AnimalCompanion (it will show [AnimalCompanion] in front of it) as well as any errors you get in the console. Your config file would also be helpful if you changed any values. </font><font color="rgb(255, 0, 0)">Also be sure to include your CB version. I will not be responsible for versions I don't support.</font>

    <font color="rgb(0, 0, 255)">NoSuchFieldError: PROJECTILE:</font>

    <font color="rgb(0, 0, 255)">Do not post about this error if you are not using CB 1060. According to other posts I have found, this is what happens when you use CB 1000 with a plugin built using the CB 1060 API. DO NOT DO IT...</font>

    <font color="rgb(0, 0, 255)">And if you still get it in 1060, tell me about ALL of your plugins and if you have Spout or not.</font>

    * Wolf cap limit (default 3)
    * Register existing wolves into the system
    * Name your wolves! (no hovering names... yet)
    * Wolves will respawn when they die
    * Damage Resistances

    - * Set up immunities by damage type (defaults are Suffocation, Drowning, Void, Fire, and Lava, but not FireTicks from being caught on fire)
    * Max Fire Ticks can make fire last a shorter period of time on your wolf
    * Fall Damage Reduction can reduce the falling damage a wolf will take
    - Anti-griefer protection
    * Offline protection makes your wolves not take damage when you aren't there
    * PvP protection makes your wolves not take damage in no PvP areas as well as from it's owner
    - Better behaved wolves!
    * You can now finally make your wolf STOP attacking your friend by telling it to sit
    * Wolves won't ever attack you, or other wolves you own
    * Wolves can feed themselves with any pork they find on the ground (off by default, but great for hunter mode)
    - Improved AI modes!
    * Default - just the way it normally works
    * Passive - won't attack anything, period
    * Defensive - anything that targets you will get it
    * Aggressive - if there are hostile mobs around, they are going down
    * Hunter - for hunting dogs, makes them attack animals
    - Multiworld support - Your wolves will follow you through nether gates and when you teleport between worlds
    * Locate and teleport your wolves when they get too far away
    - Pump up your pooch!
    * A level system allows your wolf to get better as it kills more mobs
    * Increased Bite Damage
    * Damage Resistance
    * Evasion percentage
    * Customizable EXP tables
    - AdvancedMobs support (version 0.3.5 and up)
    * Make HellHounds, Winter Wolves, and the secret wolves into your companion
    - Use a leash item (default string) to control your wolf
    * Left click with the leash from any distance to send your wolf after a target
    * Right click on your wolf to access its inventory without a command
    - Store inventory in a wolf when you equip him with a pack
    * Persistent between respawns and server restarts
    * Just right click on your wolf with a chest to make him into a pack wolf
    - Permissions Support!


    Show Spoiler
    /animalcompanion - prefix to ALL commands
    /ac - shortened version also works
    /ac setname or /ac rename - renames your wolf to a different name
    Usage: /ac setname [current name] [new name]
    Example: /ac setname George Rex
    Permissions Node: animalcompanion.ownwolves

    /ac teleport or /ac tp - Teleports your wolf to you
    Usage: /ac tp [name]
    Example: /ac tp George
    Permissions Node: animalcompanion.teleport

    /ac location or /ac loc - tells you the location of your wolf to help you find him
    Usage: /ac loc [name]
    Example: /ac loc George
    Permissions Node: animalcompanion.locate

    /ac setai or /ac ai - sets the AI to the AI type you specify
    Alternative: Left clicking on your wolf with a bone in hand will switch between modes
    Usage: /ac ai [name] [ai type]
    Example: /ac ai George Aggressive
    Permissions Node: animalcompanion.setai

    /ac inventory or /ac inv - If your wolf is a packwolf, causes you to open its inventory
    Alternative: Right click your wolf with the leash item
    Usage: /ac inv [name]
    Example: /ac inv George
    Permissions Node: animalcompanion.pack

    /ac info - Gets information about the wolf, including his current AI type, his health, and his wolf type
    Alternative: Right clicking on your wolf with a bone will give you this info too
    Usage: /ac info [name]
    Example: /ac info George
    Permissions Node:

    /ac list - Gets the names of all of your loaded animal companions
    Usage: /ac list
    Example: /ac list (that's really it)

    /ac dismount - dismount a wolf that you are riding
    Alternative: Right click your wolf with a leash item
    Usage: /ac dismount [name]
    Example: /ac dismount George
    Permissions Node: None to dismount, but animalcompanion.ride to mount in the first place

    /ac makenormal - Will make the selected companion a normal wolf (sans rideable or pack status, not AdvancedMobs variants)
    Usage: /ac makenormal [name]
    Example: /ac makenormal George

    /ac release - Releases your wolf back into the wild (kills it since special wolves would then attack you)
    Usage: /ac release [name]
    Example: /ac release George (No, not George!)


    Show Spoiler
    animalcompanion.* - Enable everything
    animalcompanion.ownwolves - The ability to tame wolves at all
    animalcompanion.register - Turn a wolf into an animal companion
    animalcompanion.infinitewolves - The wolf cap does not apply to this person
    animalcompanion.respawn - These wolves will respawn when they die
    animalcompanion.setai - The ability to change the wolf's ai to something other than default
    animalcompanion.locate - Find out where your wolf is
    animalcompanion.teleport - Teleport your wolf to you - Get the advanced info about your wolf
    animalcompanion.level - These wolves can gain exp and level up
    animalcompanion.multiworld - Your wolves will follow you between worlds
    animalcompanion.leash - Use the leash item to make your wolf target an enemy or access inventory
    animalcompanion.pack - Make your wolf into a pack wolf to carry items
    animalcompanion.ride - Make your wolf into a rideable wolf with a saddle

    Change Log:

    Version 0.3.2
    * Fixed a registration bug
    * Added the list command for getting the names of your animal companions

    Version 0.3.1
    * Removed some instances of "NullPointerException"
    * Fixed level benefits calculation
    * Made a check for wolf cap limits during animal companion registration
    * Fixed wolves attacking other wolves in some AI modes
    * Wolves now re-link to the animalcompanion plugin every time you right click them or when they die. This should help prevent the need to restart the server if the plugin loses track of the wolf somehow.

    Version 0.3
    * Fixed a bug where the owner could damage his wolf if he changed worlds and came back
    * Fixed a few AI targeting bugs
    * Added the leash item

    - * Left click with it to make your wolves target a specific enemy, aim near legs for best results
    * Right click with it to access the features of a pack wolf/rideable wolf
    - Added the ability to make pack wolves with a chest
    - Added the ability to make rideable wolves with a saddle
    * This is still extremely glitchy, and is disabled by default
    * Right click on your wolf with a saddle to make him rideable, then right click with the leash to get on him
    * Left click with the leash to point your wolf in the direction you want to go, he will pathfind there
    * I won't be supporting any bugs that you come across with riding a wolf. I already know it needs more work
    - Added "AutoSaveDisplay" option to the config file, to turn on and off the auto save messages
    - Added "RenameOnTame" option to the config to help prevent conflicts with other chat plugins
    - Added a distance check to the TP command, so wolves will teleport even if sitting if you are in range
    - Fixed quite a few NullPointerException errors. I hate them so very much

    Show Spoiler
    Version 0.2.1
    * Finally fixed the cast arrow to living entity error, it still exists in bukkit, but I am catching and blocking the instances now
    * Solved a bug where if the player teleported between worlds, he could damage his wolves
    * Redid the order that the damage listener catches instances of damage that should be blocked, should be more efficient
    * added the "contact" damage case, and immunity. This is called when something touches a cactus

    Version 0.2
    * Fixed a bug where aggressive and hunter AI targetting would cause wolves to chase a target but never attack
    * Fixed a bug where PvP protection wasn't canceling damage properly
    * Fixed an error to the console when trying to run a command with the wrong number of arguements
    * Added some messages when entering a command incorrectly
    * Added the hungry wolves variable to config. Off by default, but when on, wolves will eat nearby pork on the ground to gain health
    * Left clicking with a bone will now change your companion's AI type
    * Permissions support!

    Version 0.1
    * Initial Release

    Known Issues:
    * Error:

    org.bukkit.craftbukkit.entity.CraftArrow cannot be cast to org.bukkit.craftbukkit.entity.CraftLivingEntity
    * Sometimes wolves won't respawn - I think this is fixed
    * Sometimes when wolves respawn, they won't respond to you - I think this is fixed
    * Aggressive and Hunter modes can sometimes send wolves on a wild goose chase for mobs behind a wall
    * Sitting wolves can't be teleported, disabled it in the command
    * If you set up loot for angry wolves with another plugin like OtherBlocks, tamed wolves will drop loot when respawning/teleporting sometimes
    * As of 1060, increased damage from the wolf's level will not get applied, because 1060 is not allowing damage changes to take effect

    Planned Features:
    * Permissions support (on or before 0.2)

    - * Native bukkit permissions support?
    - Health regen - a specific rate at which they will regain health, will likely be very very slow
    - Respawn health amount - the amount of health they respawn with, not just respawn at full
    - Leash/Control item - probably string by default, will direct your wolves who/what to attack
    * Right clicking with leash will cause wolves to stop targeting their target and come back to you
    - Change AI type by hitting your wolf with a bone
    - Add a line of sight check somehow to keep wolves from attacking through walls in certain AI modes
    - Spout support (for floating names/different skins/better inventory management/riding control)
    - PvP AI mode for PvP arenas, like Aggressive, but against players only
    - Integrate with other plugins to find PvP areas as well as certain plugins to find out if one player is on the same "team" as another player for PvP modes

    Possible Features:
    * Permissions based wolf caps/level caps
    * Pack wolves to carry your items
    * Ride-able wolves, that you can direct with the leash item (Still glitchy, still being worked on)

    Look in my signature for the link to AdvancedMobs
    Last edited by a moderator: Nov 12, 2016
    Omni_i and Kain888 like this.
  2. Offline


    Requesting update.
  3. Offline


    Thanks for the great plugin TheTennessee! It's working great for the most part on my 1185 server. However, my wolf disappeared for some reason and /ac loc doesn't point me to where he actually is. Can you add a command to kill off your wolf so it can respawn if it gets lost like that?
  4. Offline


    Hes invincible for me? I turned everything off but he still is...
    Im using 1185

    /ac tp dogname

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
    Last edited by a moderator: May 18, 2016
  5. Offline


    That doesn't work when this bug occurs.
    - The dog is alive and well in the world
    - The tp command says that it tps the dog to you, but it actually doesn't
    - The loc command gives the coordinates of where the dog would be if he had been teleported, but the dog isn't actually there
    - When you finally find where the dog is hanging out, all the commands start working again as long as you're extra careful to see if he's following you and tp him when he gets stuck

    Not sure how the plugin handles the animal tracking, but maybe you could find the location of the UID of the pet and teleport the creature at that location instead.
  6. Offline


    Has anyone found a secret wolf yet? oh and i found a bug that if u go into the folder for the plugin and u select ur name, then a wolf u have( if u edit the type of wolf it becomes a cross between a hell hound and a winter, it lights things on fire and spits snowballs(unless that's the secret wolf)
  7. Offline


    Nice plugin.

    Is there any chance to add the ability to kill your wolf for hunger restoration? That would symbol eating of the wolf and using it as a meat source. Would be really nice to heave it. :)
  8. Offline


    I'm back, I'm back! I come back finally and it's just in time for a new bukkit version. Le sigh. Well, here's what I've got. I'm just trying to eliminate a cast exception error, of which I am getting tired of these really.

    Chat and commands should be fixed in the new version. I am not getting this problem, I think it's most likely interference from another plugin, so I am setting the priorities up higher, to hopefully avoid that.

    Second, I am disabling TPing while sitting. It seems that there is no way to really fix this. So... I'm just going to have to prevent it, sorry. I am adding a respawn command though for admins to use. This way if an animal companion gets lost, an admin can force it back.

    Lastly, I've got bukkit permissions in, though I don't use it, so someone will have to test to make sure it works. You just have to turn it on in the config.

    @xXSniperzzXx_SD Likely means that it was a hellhound or winter wolf before hand, and when you changed it, it became both because AnimalCompanion made it one thing, and AdvancedMobs still thought it was another. Sorry, not a bug, you change the files...

    @Kain888 Uh... no...
  9. Offline


    I would like to know how the EXP thing actually works. How much EXP is it to the next level? You never know. :S
  10. Offline


    2011-10-08 14:39:06 [SCHWERWIEGEND] Could not pass event PLAYER_LOGIN to AnimalCompanion
    java.lang.ClassCastException: org.bukkit.craftbukkit.CraftOfflinePlayer cannot be cast to org.bukkit.entity.Player
        at com.bukkit.tennessee.AnimalCompanion.AnimalCompanionEntry.isOwner(
        at com.bukkit.tennessee.AnimalCompanion.AnimalCompanionPlayerListener.onPlayerLogin(
        at org.bukkit.plugin.RegisteredListener.callEvent(
        at org.bukkit.plugin.SimplePluginManager.callEvent(
        at net.minecraft.server.ServerConfigurationManager.a(
        at net.minecraft.server.NetLoginHandler.b(
        at net.minecraft.server.NetLoginHandler.a(
        at net.minecraft.server.Packet1Login.a(SourceFile:59)
        at net.minecraft.server.NetworkManager.b(
        at net.minecraft.server.NetLoginHandler.a(
        at net.minecraft.server.NetworkListenThread.a(SourceFile:94)
        at net.minecraft.server.MinecraftServer.h(
    And many more org.bukkit.craftbukkit.CraftOfflinePlayer events, pls help it´s spamming my console ^^
  11. Offline


    Is there a link available for this update?
  12. Offline


    I am also looking for updated version - this version just don't load on 1317...
  13. Offline


    Please update!
  14. Offline


    For some reason my wolf one-hits all players. Also placing it at agressive hunts down my friends and brutaly slaughters them because of said reason. No errors reported.

    I found out that the wolf does eight hearts of damage each hit. Does it work to place the bite damage into a negative number?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
    Last edited by a moderator: May 18, 2016
  15. Offline


    Is this mod disabled or smtn? No updates and author doesn't answer to anybody.
  16. Offline


    I have looked over this plugin and it is exactly what i want for the server that i play on, i have allready made a post on the suggestion thread and we are just waiting for an update.

    Do you have an ETA on an update?

    Thank you for all of the hard work you have done so far it looks great.

  17. Offline


    Are you still back? This plugin looks good, but given that it has ties to inventory, I'm wary of installing it if it's not being actively supported in case of exploits (duping).
  18. Offline


    Thanks for the update bud!
    Hope you release your 1337 file soon! =]

  19. Offline


    Hey Tennessee! Cant wait to see what you have in store in your next update, which i know you are waiting for the official release of MC :p
  20. Offline


    Okay, I have a sub-user for my friends server (Access to Console, Plugins, Files, ect) And I just installed animal companion, everyone loves it, and using permission nodes, I can customize it (Like give certain donater ranks unlimited wolves, give only donaters the ability to ride wolves, ect) but before I tell you my error, I'd like to make a suggestion:
    There should be a permission node for the max amount of wolves.

    Now, heres the my little error

    All AC commands just give me "Unknown command" This is a screenshot of me doing "/ac inv", then re-entering the command and taking a screenshot

    I made sure I had the animalcompanion.* node, so what's happening?
  21. Offline


    I really hope you can update this plugin some time. It was my favorite :)
    DirectorAnna likes this.
  22. Offline


    Hi!!! I just wonder, how do i get permission to ride the wolfes? How many times I click with a saddle on my wolf, it just says: You don't have permission to make this wolf to a ridewolf or something..
    How do I ride him then?????
    Last edited by a moderator: Nov 12, 2016
  23. Offline


    Do you have animalcompanion.ride set to true?
  24. Offline


    Please mark this as inactive or - better - UPDATE!!!
  25. Offline


    There is a kinda similar plugin for minecraft 1.0: MyWolf.
    Sadly it does still need spout...
  26. Offline


    help plz, when i try to call my dog, it wont come, and when i locate it says he isnt in the world. this happens to every1 in my server and we do not have multi world
  27. Offline


    Spout is fully optional for it. We are using it without spout and it's doing fine.
  28. Offline


    How do I make that??
  29. Offline


    Give whatever group the "animalcompanion.ride: true" permission in whatever permission manager you use.
  30. Offline


    could you possibly add a feature to make dogs able to dig up random items and say at a very low percent chance the new records?
  31. Offline


    23:01:14 [SEVERE] Could not pass event org.bukkit.event.player.PlayerLoginEvent to AnimalCompanion
    java.lang.ClassCastException: org.bukkit.craftbukkit.CraftOfflinePlayer cannot be cast to org.bukkit.entity.Player
        at com.bukkit.tennessee.AnimalCompanion.AnimalCompanionEntry.isOwner(
        at com.bukkit.tennessee.AnimalCompanion.AnimalCompanionPlayerListener.onPlayerLogin(
        at org.bukkit.plugin.RegisteredListener.callEvent(
        at org.bukkit.plugin.SimplePluginManager.callEvent(
        at net.minecraft.server.ServerConfigurationManager.attemptLogin(
        at net.minecraft.server.NetLoginHandler.b(
        at net.minecraft.server.NetLoginHandler.a(
        at net.minecraft.server.NetworkListenThread.a(
        at net.minecraft.server.MinecraftServer.w(
    Whenever a player logs in.

Share This Page