Grappling Hook

Discussion in 'Archived: Plugin Requests' started by penguinbait, Aug 20, 2012.

  1. Offline

    penguinbait

    I want a plugin for turning fishing rods into grappling hooks.
    When you hook a block and reel you move towards it (Much like in S89q Powers Plugin) and if you could add some way to "rapple" down buildings and things like that (EX: Say your in a floating building and you want down, you can hook the block above the air you fall through and you slowly fall down to the ground, also I would like this plug to get rid of fishing rod length restriction.)

    Possible Name: Dont know
    Perms:
    Hook.* All permissions
    Hook.grapple Allows grappling and pulling yourself in
    Hook.rapple Allows rappling/descending from blocks with rod/hook
    Hook.reload Allows reload the plugin
     
  2. Offline

    Jake230599

    I don't know if it is possible to make a fishing rods wire length longer or to remove it but it could be set to allow for the crosshair to be where it grapples.
     
  3. Offline

    RingOfStorms

    I couldn't find a way to do this with a fishing rod :\, there is no way to get the location of the buoy.
     
  4. Offline

    Hoolean Retired Staff

    Agreed... Shame that! There is only a way to get an entity that is caught via fishing. This gives me interesting ideas on replacing the fish with live tnt or whatever :D!

    I could make toggleable bow and arrow grapling rod if you want!
     
  5. Offline

    RingOfStorms

    You can do this with thinks like pigs and such as well (I tested a few things trying to get the buoy to work :p)
     
  6. Offline

    Hoolean Retired Staff

    Hehehe... Putting a plugin on that makes live tnt or creepers come out without telling your players first = a pretty damn big troll :D
     
  7. Offline

    _Waffles_

    Its an entity so you you can do a lot with it..
    this might help, EntityFishingHook has locX, locY, locZ and owner veriables.
    Loop through all the entitys and if theres a hook get the owner and do stuff to him/her ;D
     
  8. Offline

    Hoolean Retired Staff

    I'll try doing it then!
    EDIT: I will make this!

    Can't find EntityFishingHook :(

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

    XbannisherX

    how do you mean no way? i have it already done :D
    check this:
    Code:
    @EventHandler(priority = EventPriority.HIGH)
     
        public void onPlayerFishingEvent(PlayerFishEvent event){
            Player p = event.getPlayer();
        Material item = p.getItemInHand().getType();
        if(item == Material.FISHING_ROD){
           
       
           
            java.util.List<Entity> nearby = p.getNearbyEntities(50,50,50); // searches in a 100*100*100 radius around the player for other entities
            Entity hook = null; // holds the future hook
            for (Entity e : nearby) { // loop through entities
               
                if (e.getType() == EntityType.FISHING_HOOK) { // it is a hook!
                    hook = e;
                    break;
                }
            }
            if (hook != null) {
                Location hookLocation = hook.getLocation(); // the location of the hook
                p.getLocation();
                p.teleport(hookLocation);
             
            } else {
                p.sendMessage(ChatColor.DARK_GREEN + "You threw your grapplehook!");
            }
        }
    }
     
    epicfacecreeper likes this.
  10. Offline

    Hoolean Retired Staff

    OK... Are you making this as well then?

    Done! Download! BukkitDev page coming soon! Haven't tested it yet so let me know how it goes!
    commands:
    grappling:
    Toggle grappling hook for yourself
    permissions:
    grapplinghook.use:
    description: Allows player to use /grappling


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

    penguinbait

    Thanks dude
    EDIT: Does not load the plugin.jar
     
  12. Offline

    WarmakerT

    You could make the teleportation smoother.
     
  13. Offline

    penguinbait

    MrBluebear3 can you add the rest of the features as well?
     
  14. Offline

    Hoolean Retired Staff

    Yeah sure! I was just really giving you a dev snapshot. so I will add them for release.
     
  15. Offline

    penguinbait

    I love you. Also we could make it so rappling down with a grappling hook you need a certain chest plate to act as a harness.
     
  16. Offline

    pvtjaime

    Nice Idea. Pretty much the same idea i had. Was thinking of using arrows for the tip to make player use a new "Hook(Arrow)"
     
  17. Offline

    penguinbait

    Maybe both can be done? Like you throw an arrow and it consumes a string and shoots the arrow?
     
  18. Offline

    Jake230599

    If the plugin is not loading it is probably because the server is not updated enough for the plugin, meaning it is is running Java 6, which means that @MrBluebear3 should compile in Java 6.
     
  19. Offline

    -_Husky_-

    Its not really the fact that bluebear HAS to compile it in java 6. It should be expected out of kindness, not out of someones demand.
     
  20. Offline

    Hoolean Retired Staff

    Don't think it is that. I don't have java 7!
     
  21. Offline

    -_Husky_-

    Haha, let me take a look at the error, one moment

    Edit, lol maybe not

    Paste the error please.

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

    Jake230599

    This is the error I receive but I don't know if that's what penguin gets.
    http://pastebin.com/Hxs2nyVG

    I have never encountered this error so I can't help here.
     
  23. Offline

    WarmakerT

    Just edit the plugin.yml file and it should work xD
     
  24. Offline

    Steam Engines

    Question: Will there be a way to turn on/off the grapple function in this plugin? Something like a /grapple on /grapple off command?

    HI XBANISHERX! Remember me? :3
    I was wondering if you could add that grapple on/grapple off command to the plugin you made for me :D
    Pleeeeaase :p

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

    XbannisherX

    Hey steam :3 , hows your server going?
    anyway, i have no idea on how to do that tbh, im not that advanced yet...
    for the people reading this, if one of you know how to do that(a on and off command on a listener)
    explain it to me :p
     
  26. Offline

    Hoolean Retired Staff

    I made it and when you type in /grapple it toggles it!
     
  27. Offline

    Steam Engines

    Okay :p
    Thanks anyway bro :3
    Would it be alright if I asked someine to do this for me in a new thread?

    Edit: Also, my server is doing well :3 Thanks for asking!
     
  28. Offline

    XbannisherX

    Go ahead :D
     
    Steam Engines likes this.
  29. Offline

    Steam Engines

    Coo :D
     
  30. Offline

    Hoolean Retired Staff

    Make a hashmap, with a player as the key amd a boolean as the value. It is something like when the player does the command, if it is true set it to false and vice-versa. That sort of thing. BTW do you want to work with me for a plugin that includes this and more? (parachutes, no spout, etc) I think it would be pretty epic!
     

Share This Page