Extended Reach

Discussion in 'Archived: Plugin Requests' started by rushone2009, Jun 4, 2011.

  1. Offline

    rushone2009

    I'm not coder but if anyone is interested, can anyone code a simple Reach Extender with variable blocks extensions like in Single Player Commands. There the command /reach allows you to set the ammount of blocks a player can reach. Can this be implemented in Bukkit SMP? If it has already please direct me to the plugin. Obviously this plugin would support permissions.

    This is the single player mod that lets you choose between 32 and 128 blocks (meters) http://www.minecraftforum.net/topic/106099-v15-extended-reach-fixed/

    This would be really useful on my server as I am building a city and it is easier to build from afar. So if anyone has some time to spend on this plugin I would greatly appreciate it.

    Thank you in Advance!

    bump please

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

    slitherkittle

  3. Offline

    Bush

    use worldedit to build your server, we did and it made it take alot less time
     
  4. Offline

    rushone2009

    I've been doing that for a long time sir. I am a WE master lol.

    But i laways wanted Long reach for pixel art and such.
     
  5. Offline

    RustyDagger

    tried some thing like voxel snipe?
     
  6. Offline

    rushone2009

    I don't like voxel lol
     
  7. Offline

    DDoS

    That's doable. If you're looking for a plugin that let's you destroy (one hit) and place blocks from far away, I can do that, well, if I have time. Interaction though are harder to do, and I don't think I'll do those.
     
  8. Offline

    rushone2009

    I just want the long reach function if you can do that.

    Thanks dude.
     
  9. Offline

    DDoS

    Started working on it, but I'm not sure how I'm supposed to get which block face your looking at from a distance. I may have to use the yaw and relative height (compared to the block) to decide where to place the block.

    Punching blocks, though, that's done. Do you want me to add drops? And, should a placed block be removed from the inv, or should I do it creative style?
     
  10. Offline

    rushone2009

    I think the creative style of breaking blocks is covered in the Vanilla /gamemode option.

    As for the placement of blocks, I wouldn't know. I just started a Java course at my college. I would make a guess as to tweaking the reach setting in the game, but I have no clue how it's done in multiplayer.

    As to the option to add drops, I would say no. I am editing a huge map project so drops aren't necessary

    Thank you for coding though. It would take me forever to do it on my own.
     
  11. Offline

    DDoS

    This isn't client modding, I'm just getting the block your looking at when you're right/left clicking air, and then accomplishing the appropriate task for the action. The reach setting is local to the client, and so for the face you're selecting, I believe.
     
  12. Offline

    rushone2009

    You know better...
     
  13. Offline

    DDoS

    I'm sorry, but I'm too busy to finish the project, so here's what I've done so far, it should work and allow you to destroy blocks for far away. Just use /ro on (reach, ex: 100) and /ro off.

    http://dl.dropbox.com/u/43006973/ReachOut/ReachOut.jar

    It will only work for ops. I haven't tested it, sorry about that. Here's the source, hopefully someone will finish it.

    http://dl.dropbox.com/u/43006973/ReachOut/src.zip


    Again, I'm sorry, but I'm just too busy.
     
  14. Offline

    rushone2009

    Thanks mate! I appreciate it!

    Damn. internal error.

    java.lang.ArrayIndexOutOfBoundsException: 1

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

    DDoS

    Post the full log.
     
  16. Offline

    rushone2009

    Thats all I saw
     
  17. Offline

    DDoS

    Impossible, post me the stack trace, else, I'm afraid I can't to anything.
     
  18. Offline

    rushone2009

    Whats that (Im a newb trololol)
     
  19. Offline

    slitherkittle

    This is what it says:

    [​IMG]
     
  20. Offline

    DDoS

    Ok, thanks, I'll look into it.
     
  21. Offline

    slitherkittle

    Thanks :3
     
  22. Offline

    snikkers

    you could try my plugin Creativity
    added ranged building in the last version

    but if you do not build your city in creative i could perhaps extract the code to just get a ranged builder
     
  23. Offline

    rushone2009

    I do but i just want the extensive reach option so that I can build and interact from afar (This means use WorldEdit Brushes from afar)

    I'll look into it. Can i use WE with your extensive reach option?

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

    slitherkittle

    Does it have Permissions x3 support? ^^ And what is the command is it /range? ^^ And no i don't use creative :p
     
  25. Offline

    snikkers

    its /rb - permissions should work
    but it will only work in creative :/

    no, because world edit hooks into the same method than i do - but i can´t define what world edit will do

    i guess i will extract the code and make an extra plugin out of it
    i will then allow the following:
    • build and destroy over distance
    • "brush" over distance
    • do you want to be able to bind the brush to a tool or is it ok if the current item in hand will be what is "brushed"?
     
  26. Offline

    slitherkittle

    okk :p Can you perhaps make it so i can use it for both? :3
     
  27. Offline

    snikkers

    currently testing
    plugin works this way:
    • command /extendedreach or /er enables extended reach
    • config file:
      • define replacer tool (default is wooden shovel (id 269))
      • define max range (default is 120, which is craftbukkits maximum)
    • while holding the replacer tool:
      • you will set the block for replacing by left clicking
      • you will replace the block you are looking at by right clicking
    • while not holding the replacer tool:
      • you can destroy blocks by left clicking
      • you can place the current block you are holding by right clicking
        • only if its a placable block (defined by craftbukkit)
        • you will have infinite items then ! (should i change this ?)
    if testing will not show up bugs i will give you download link soon :)

    ExtendedReach @ BukkitDev
    >> here

    Project and released file currently wait for approval
    but file can be downloaded >> here

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

    rushone2009

    Bind to a tool would be best.
     
  29. Offline

    snikkers

    Already released with bind to tool.link is directly above your post
     
  30. Offline

    slitherkittle

    Thanks! This works perfect! :)
     

Share This Page