Inactive [FUN/RPG] MyWolf - Take a wolf on a leash

Discussion in 'Inactive/Unsupported Plugins' started by Keyle, May 4, 2011.

Thread Status:
Not open for further replies.
  1. MyWolf
    take a wolf on a leash

    [​IMG]
    Moved to BukkitDev:
     
  2. Offline

    kaasinees

    Maybe you can make it so that when you right click the wolf with a bone to tell it to attack :)
    I know it is possible right?
     
  3. To attack what? I don't think that the wolf can read your mind :p.
    Atm the problemwith the right click is that the current RB don't has the methods. With the next one there is no problem to get a right clicked monster in range(not far away).
    So it is NOT possible (for me) atm.
     
  4. Offline

    kaasinees

    Sorry... i meant right click the enemy with a bone so the wolf will attack that. I know other mods do something similiar.
     
  5. ;) when you know othermethods tell me what you know! I'm open to it.
     
  6. Offline

    NeonJ

    I have some suggestions for this plugin~ :D

    > Make the leash'd wolf never despawn. D= Especially if it has items in it's inventory. (Unless the wolf respawns when you return or something)
    > Right click the wolf with any type of flower to toggle wandering. When a wolf wanders, it will just walk around aimlessly, not following you. It shouldn't walk further than 16 blocks than where it was given the flower.
    > Wolves should start out without many of the bonuses and get them when given an item.
    - Wolf gets an inventory when given a chest.
    - Wolf picks up items automatically when given redstone dust. (+1 block radius for every 8 dust given - stackable up to 4?)
    - Wolf becomes stronger when given a sword. (Wood: +0.5, Stone: +0.5, Gold: +1, Iron: +1, Diamond: +2) - When given a sword and the wolf already has a sword, they swap.
    - Wolf gains more DEFENCE when given armor chestplates. (Leather: 1,Iron: 3, Chainmail: 4, Gold: 2, Diamond: 5)
    > Temporary wolf abilities?
    - Wolf becomes faster for 32 seconds when given sugar. (Sugar rush~ :3)
    - Wolf deals 10HP DAMAGE for 32 seconds when given an iron ingot.
    > Perhaps have limited lives on the wolves, for balance? Starts off with 9 lives and goes down each time he dies. Can be increased up to 20 if fed cake?

    Those are just some of my ideas. :3
     
  7. The wolf despanws only when you are far away while he is sitting so there is no disadvantage for the owner.
    I think this is more an adventage because noone can kill your wolf when you are not there.

    I made this to have no problems with unloaded chunks:p.

    Uff that is a problem..... Bukkit itself has nothing to realize that. I don't know what happen when I set the pathpoints of the wolf but I think the minecraftserver has his own opinion where the wolf should walk and teleport him back to the player.

    OK limited lives will be added.
     
    OmegaII likes this.
  8. Offline

    NeonJ

    Okay, I decided to use this plugin now, but when I left click one of my tamed wolfs with a string, it just punches him and hurts the wolf. Wtf?
     
  9. First please download v0.3
    then post your permissions config and your MyWolf config
     
  10. Offline

    kaasinees

    I will test it right away.
     
  11. Offline

    NeonJ

    Oh, version 0.3 fixed the error. :D

    But why did my wolf's HP reset itself to 6 when I tamed him? Isn't his usual max 20? (Which is odd, seeing as the MyWolf HP max is 20 and the default HP max is 20 - which means you shouldn't be able to feed him cookies
     
  12. Using 0.3, default config, I am admin thus all permissions. Left-clicking with string kills the Wolf :/
     
  13. Yes the usual max of a "normal" wolf is 20, but....
    When you tarm a fresh wolf (no matter if you feed him before so the HP > 6) it will return to the standart HP of 6.
    The maxHP for this wolf is 6 too at this moment. Now you will be able to feed your wolf with the item set in the config. for every feeding your wolf get 1 maxHP more up to the maximum set in the config.
    I hope I understood your question right.

    I made a fresh serversetup and testet it..... it seems that the tarming works for me....
    Do you have tarmed the wolf with bones (like tarm a wolf the usual way) before you left-click the wolf?
    Do you have plugins who uses the string on entities too??
     
  14. Offline

    NeonJ

    What did 0.3.1 change from 0.3? :S It'd be nice to have an updated changelog... even if it just says bugfixes.
    Talking about bugfixes
    Often, when I use a Runecraft teleport, my Wolf's HP randomly changes to a point it had earlier. Like he could have had 16HP for a while, I feed him a pork then use a Runecraft teleport, then he has 16HP again. Or he could have had 20HP, then he gets in a fight to 7HP and I teleport.. 20HP. The teleports are far away from eachother if that helps.. about 500-ish blocks I think
     
  15. Offline

    kaasinees

    When my wolf kills someones else wolf, that persons wolf is lost?
    The person tried /wolf call, but it says she has no wolf.
     
  16. Offline

    Boby

    Everyones wolf's keep disapering and they dont come back. i use "/wolf call" and it says my wolf is coming to me but he never comes. Please help i have allot of things in my wolfs invtory
     
  17. Oh thats my fault sry. I don't save the health before remove the wolf for teleport.
    fixed it v0.3.2.


    Did she left-clicked the wolf with the leash-item??
    Is there an entry for her in the Wolfs.yml??


    did you relog after calling the wolf? Some times they are there but you can't see them.
    When did you last seen you wolf??
    If you don't want to wait set the coordinates of your wolf in the Wolfs.yml to your coordinates.
    I can't replicate this error so please help me and post me the old and the new coords.
    Or better the both .yml s.
     
  18. Offline

    den

    I can't seem to figure this plugin out...

    Installed it and even as admin I can't left click the wolf with the string and get any results, as doing so just makes me punch the wolf with string in my hand.

    I'm betting its a conflict with Virtual Chests, as it uses punch while holding a chest to open.
     
  19. It seem that the plugin don't get the leash item on first startup because there is no config.
     
  20. Offline

    den

    Restarted the server with the config in place and punching the wolf with a string still... just punches the wolf with a string.

    I can do /wolf and it gives me the options, so the plugin is loading.

    Edit: Error log.

    Show Spoiler

    2011-05-09 05:45:51 [SEVERE] Could not pass event ENTITY_DAMAGE to MyWolf
    java.lang.IllegalAccessError: tried to access method com.aranai.virtualchest.TileEntityVirtualChest.<init>()V from class me.Keyle.MyWolf.Wolfs
    at me.Keyle.MyWolf.Wolfs.<init>(Wolfs.java:38)
    at me.Keyle.MyWolf.MyWolfEntityListener.onEntityDamage(MyWolfEntityListener.java:51)
    at org.bukkit.plugin.java.JavaPluginLoader$44.execute(JavaPluginLoader.java:474)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:257)
    at net.minecraft.server.EntityHuman.d(EntityHuman.java:522)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:803)
    at net.minecraft.server.Packet7UseEntity.a(SourceFile:33)
    at net.minecraft.server.NetworkManager.a(NetworkManager.java:195)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:74)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:370)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:285)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
     
  21. did you download v0.3.3 or which version do you use??
     
  22. Offline

    den

    I downloaded the one in the first post like 20 minutes ago.
     
  23. hm......
    redownload once please:)
     
  24. After changing leash item to raw fish, it now works. However, new error upon leashing:

    13:17:01 [INFO] Warning! An error occured!
    13:17:01 [SEVERE] java.util.ConcurrentModificationException
    13:17:01 [SEVERE] at java.util.ArrayList$Itr.checkForComodification(ArrayList.java:815)
    13:17:01 [SEVERE] at java.util.ArrayList$Itr.next(ArrayList.java:787)
    13:17:01 [SEVERE] at org.bukkit.craftbukkit.CraftWorld.getEntities(CraftWorld.java:496)
    13:17:01 [SEVERE] at me.Keyle.MyWolf.Wolfs$2.run(Wolfs.java:226)
    13:17:01 [SEVERE] at java.util.TimerThread.mainLoop(Timer.java:555)
    13:17:01 [SEVERE] at java.util.TimerThread.run(Timer.java:505)

    Only thing I know about Timers, is that you're not supposed to use them in Bukkit, and should use the scheduler...right? :p

    And plugin now died and stopped responding to commands.

    Then I killed the Wolf, and it says respawned after a while, but there's no Wolf.

    Yes this is nasty, removed plugin, did a /reload, and it's still talking about Wolf respawns. That's likely due to you using threaded Timers...

    And ended up with a nice hard crash...ConcurrentModificationException are very nasty, you need to switch to Bukkit scheduler.
     
  25. Thank you, I don't know that before
    I changed it to the bukkit scheduler.
     
  26. Offline

    kaasinees

    Turns out she right clicked the wolf with leash instead of left click....

    Suggestion:

    Disable other players from harming your wolf if PVP is set false.
     
  27. this an permissions are the first things I ask for:p

    I will add it in v0.4
     
  28. Offline

    NeonJ

    I've noticed that my wolf was still collecting items with a full inventory. You might want to fix that.
     
  29. Offline

    swoop2

    I think you can get the wolf to attack another living entity... Wolf has a setAngry operation and a setTarget operation (inheritted from Creature). Wouldn't combining these two things together make it attack it?
     
  30. Offline

    kaasinees

    I have another suggestion:

    A command that allows a specified player to call your wolf for one time.
    The longer the distance between the two players the longer the wolf will take to spawn to that player.
    To get the wolf back i would call my wolf again.
    This allows someone to borrow your doggy for a while :)
     
  31. Offline

    anon

    respawntimefactor is in minutes? What is maxTP?
     
Thread Status:
Not open for further replies.

Share This Page