Sidestep Dodge Plugin

Discussion in 'Archived: Plugin Requests' started by drnatedogg, Jun 21, 2013.

  1. Offline

    drnatedogg

    Would it be possible to have a plugin where if you double-tapped for example A or D (or whatever your left and right movement arrows are) you do a sort of sprint hop about 2-3 block to dodge attacks. This would be very cool!
     
  2. Offline

    Wolf3141

    I think it's possible but it might be slow. For example, it would check if a player moves to the left or right, stops, and moves again in that direction rapidly. Tracking player movements this specifically is bad :/. However then all you would need to do is create an arc to the left or right (assuming you don't want animations then no, this is not possible).
     
  3. Offline

    Jatoc

    It's simple with Spout. (Client Mod). However, it would be possible in vanilla minecraft if you made the trigger to do something closer to:
    "Move left while holding a sword and right click with it"
    instead of
    "double tap left"

    because the vanilla client doesn't track keypresses. What Wolf3141 said seems plausible, but it would probably be glitchy.

    Finally, a plugin that tracks this kind of thing would probably be resource-intensive (tracking all PlayerMoveEvent) and not really worth the trouble....

    An easier/less resource-intensive alternative that is definitely possible/doable (I'm considering writing it right now) would be to have an item (let's say you have a special item called "Dodge-Rock" in your inventory which could be a simple magma cream renamed or something of the sort) and if you left click while holding it, you will do a little hop to the left whereas if you right click while holding it, you hop to the right. It would mean players have to swap to the special item during combat, but it would just add to the skill-cap of using the plugin (you need to swap to a new "weapon" in order to use this dodge ability)
     
  4. Offline

    drnatedogg

    Jatoc Wolf3141
    Thanks for clearing this up guys. I don't think it would be that big of a deal if it had to be an item, as it would add difficulty as you (Jatoc) said. If you do decide to write this it would be much appreciated. Thanks for all the help.

    Jatoc
    Must have been a coincidence you replied, as I have been looking for an anti 1x1 tower plugin for a while.

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

    Jatoc

    drnatedogg
    It's not foolproof, but it stops minor 1x1 tower griefing >.<

    As for this plugin, I'll try to get started eventually. I just found a really interesting project to work on (making ores grow from plants) which I want to do first.
     
  6. Offline

    drnatedogg

    Jatoc
    Sounds good, my server is still a WIP so it's not public at the moment anyway. There's no rush, and good luck on the ore plugin. :D

    Jatoc
    Also, this is kind of a personal question but, where do you start learning code. I've wanted to start for a while but don't where. I've seen thenewboston on youtube but many experienced java programmers say he isn't the best. You don't have to answer this, I just thought I would ask someone who actually knows java.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 2, 2016
  7. Online

    timtower Moderator Moderator

    drnatedogg likes this.
  8. Offline

    drnatedogg

    timtower
    Thanks for the helpful advice and links. I'll start looking at the links now.
     
    timtower likes this.
  9. Offline

    Jatoc

    drnatedogg
    This is the order of guides that I read when I first started. (Not for learning Java, but for making Bukkit plugins specifically)

    If you have ZERO programming experience, you should probably watch some NewBoston or google how Object Oriented Programming works and try to understand how Classes, Objects, and Methods work. (It's moderately difficult to understand so keep watching tutorials and reading until you think you understand them)
    =====
    1. http://wiki.bukkit.org/Plugin_Tutorial - Skim this. You won't understand a lot of it, but read it through and understand as much as you can.
    2. http://forums.bukkit.org/threads/bukktuts-awesome-plugin-tutorials.139921/page-3#post-1712147 - Watch both of the videos here. They introduce the basics, and help you set up the listeners for the first time(It's difficult if you've never done it before as the wiki kinda sucks at it)
    3. Read through the link in #1 again. This takes a while, but hopefully you start to understand more of it.
    4. Think of a simple plugin idea that you would like to recreate, but you know has already been done. Find an example of a completed plugin and view the source code for it (if it's not available on github, download the plugin and decompile it using
    http://java.decompiler.free.fr/?q=jdgui
    and view the source code inside it. Read through the source code and try to find out what everything means/does.
    5. Make your own simple plugin by taking your first plugin you made (the one you should have completed from link#2) and adding small/cool features by reading through the list of events found here: (Listen for different events, not just BlockPlaceEvent and BlockBreakEvent and see if you can get messages to pop up)
    http://jd.bukkit.org/rb/doxygen/df/d08/namespaceorg_1_1bukkit_1_1event.html
    6. Once you managed to write some of your own experimental code without any guides (all you did was read through the api and try to figure out different functions), you can read through: http://forums.bukkit.org/forums/resources.60/ to find good guides/resources for doing more specific things such as adding configuration files to your plugins, diving into NMS code, etc.

    Remember, coding is NOT going to be fun and easy to pick up if you don't put your mind to it. Things that make absolutely no sense will suddenly click after a couple days of involving yourself heavily with the right mindset. (At least that's how it worked for me, and 2 others that I have tutored. Once this "click" happens, you'll find that experimenting with code can be exciting and you'll want to try and see what features the bukkit api has to offer, and you'll be making plugins in no time. (Don't forget that a lot of things can get frustrating because they don't really work right sometimes.. in that case, file a report with the dev team so it gets fixed eventaully)

    On a side note, I might start this dodging plugin sooner than I thought. The harvestable ores seemed like a good idea, but it seems really resource-intensive and the stems don't even connect to the blocks making it pretty lame visually. I might just give that one up.


    Edit: Well shit... timtower ninja'd me...

    Edit2: Ivan remember that one image you posted here?
    http://forums.bukkit.org/threads/im-making-a-plugin-i-need-some-help.154072/#post-1714778
    I FEEL YOU BRO
     
    drnatedogg, Ivan and timtower like this.
  10. Offline

    drnatedogg

    Jatoc timtower
    Thank you, nice to have first hand help besides yahoo answers etc. XD
    I'll start combing through all my new found resources. You guys are the best.
     
    timtower likes this.
  11. Offline

    Ivan

    Jatoc
    Gravity messaged me that it offended him, so removed it. :(
     
  12. Offline

    Jatoc


    Did I miss something? I don't remember anything offensive about it...
     
  13. Offline

    Ivan

    The size, and I just the word f*ck
    EDIT: and he didn't like rage comics but he said that that was just his personal opinion
     
    Jatoc likes this.
  14. Offline

    drnatedogg

    Jatoc
    Sorry to bug, just hasn't been a while since I've heard from you. Any progress? Also, if this wouldn't be too much, would it be possible to add it so you had to right click or left click while holding down shift? Just wondering because I noticed the chairs plugin recognizes the shift key.
     
  15. Offline

    Jatoc

    drnatedogg
    I've been a tad busy lately. I'll see if I can get back around to it =.=
     
  16. Offline

    drnatedogg

    Jatoc
    Ok, thanks. No rush.
     

Share This Page