Multi arrows

Discussion in 'Archived: Plugin Requests' started by XdarkbeastX, Jul 27, 2014.

  1. Offline


    can someone make me a plugin that shoots 3 arrows at the same time?
    i dont want the arrows to be close to each other.

    (i want them like making in 3 directions like a W direction)

    also can you make into a different bows like crafting?
    if not you can just ignore ^


  2. Offline


  3. Offline


    Yeah like that one
  4. Offline

    mbaxter ʇıʞʞnq ɐ sɐɥ ı

    XdarkbeastX I have deleted a post that contained a malicious plugin. You should delete the plugin you downloaded from this thread. It contained code allowing its author to give himself OP on your server.

    The user has been banned.

    Forgot to thank iMurder and Garris0n for noticing the issue and bringing it to my attention, respectively.
  5. Offline


    Oh thank you for posting it.
    But i dont think people would really help make this plugin because its easy for them ,but i dont know how to code . And also Bump i think its 24 hours already ^^

    anyone willing to make this plugin for me? Please?

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


  7. Offline


    oh sorry i thought its already 24 hours.
  8. Offline


    Like shotguns?
  9. Offline


    1. Bukkit.getScheduler().scheduleSyncDelayedTask(plugin, new Runnable() {
    2. public void run() {
    3. if (level == 1) {
    4. MultishotListener.this.spawnArrow(loc, shooter, velocity, -0.5D, 0.6D);
    5. } else if (level == 2) {
    6. MultishotListener.this.spawnArrow(loc, shooter, velocity, 0.5D, 0.6D);
    7. MultishotListener.this.spawnArrow(loc, shooter, velocity, -0.5D, 0.6D);
    8. }
    9. }
    10. });
    11. }
    13. private void spawnArrow(Location loc, LivingEntity shooter, Vector velocity, double amount, double forward)
    14. {
    15. BlockFace direction = DUtil.yawToDirection(shooter.getLocation().getYaw(), false);
    16. switch (direction)
    17. {
    18. case DOWN:
    19. case EAST_NORTH_EAST:
    20. loc.add(amount, 0.0D, 0.0D);
    21. break;
    22. case EAST:
    23. case EAST_SOUTH_EAST:
    24. loc.add(0.0D, 0.0D, amount);
    25. break;
    26. default:
    27. loc.add(amount, 0.0D, amount);
    28. }
    30. switch (direction)
    31. {
    32. case DOWN:
    33. loc.add(0.0D, 0.0D, -forward);
    34. break;
    35. case EAST_NORTH_EAST:
    36. loc.add(0.0D, 0.0D, forward);
    37. break;
    38. case EAST:
    39. loc.add(forward, 0.0D, 0.0D);
    40. break;
    41. case EAST_SOUTH_EAST:
    42. loc.add(-forward, 0.0D, 0.0D);
    43. break;
    44. case NORTH_NORTH_EAST:
    45. loc.add(forward, 0.0D, -forward);
    46. case SELF:
    47. loc.add(-forward, 0.0D, forward);
    48. case NORTH_NORTH_WEST:
    49. loc.add(-forward, 0.0D, -forward);
    50. case NORTH:
    51. case NORTH_EAST:
    52. case NORTH_WEST:
    53. default:
    54. loc.add(forward, 0.0D, forward);
    55. }
    57. Arrow arrow = (Arrow)loc.getWorld().spawnEntity(loc, EntityType.ARROW);
    58. arrow.setVelocity(velocity);
    59. arrow.setShooter(shooter);
    60. }
    61. public boolean isEnabled() {
    62. return true;
    63. }
    65. public void setValues()
    66. {
    67. }
    68. }

    Something like this?
  10. Offline


    Ummm, i dont know what that is i already told that i dont know how to code or make a plugin whatsoever
    I just want a plugin that shoots 3 arrows in a W direction.
  11. Offline


    That was mainly for anyone who was going to make the plugin
  12. Offline


  13. Offline


    Nope, never made something that shoots different projectiles, so i have no idea man :p but that should help somewhat for someone else
  14. Offline

    timtower Administrator Administrator Moderator

    ThePluginMaker Won't always be as useful as we don't have the DUtil class.
    Also try putting the code on pastebin or in spoilers.
  15. Offline


    i am working on it. including that craft part.
  16. Offline


    1. public static BlockFace yawToDirection(float yaw, boolean precise)
    2. {
    3. yaw -= 90.0F;
    4. if (yaw < 0.0F) yaw += 360.0F;
    5. yaw %= 360.0F;
    6. int i = (int)((yaw + 8.0F) / 22.5D);
    8. if (precise) {
    9. if (i == 15) return BlockFace.WEST_SOUTH_WEST;
    10. if (i == 13) return BlockFace.SOUTH_SOUTH_WEST;
    11. if (i == 11) return BlockFace.SOUTH_SOUTH_EAST;
    12. if (i == 9) return BlockFace.EAST_SOUTH_EAST;
    13. if (i == 7) return BlockFace.EAST_NORTH_EAST;
    14. if (i == 5) return BlockFace.NORTH_NORTH_EAST;
    15. if (i == 3) return BlockFace.NORTH_NORTH_WEST;
    16. if (i == 1) return BlockFace.WEST_NORTH_WEST;
    17. }
    18. if (i >= 15) return BlockFace.WEST;
    19. if (i >= 13) return BlockFace.SOUTH_WEST;
    20. if (i == 12) return BlockFace.SOUTH;
    21. if (i >= 9) return BlockFace.SOUTH_EAST;
    22. if (i == 8) return BlockFace.EAST;
    23. if (i >= 5) return BlockFace.NORTH_EAST;
    24. if (i == 4) return BlockFace.NORTH;
    25. if (i >= 1) return BlockFace.NORTH_WEST;
    27. return BlockFace.WEST;
    28. }

    that is what the dutil will do for this plugin.
  17. Offline


    im sorry if the plugin i requested is causing all of you troubles.

    I only needed this plugin for the kitpvp.

    why not just recode it?

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

    timtower Administrator Administrator Moderator

    Recode what?
  19. Offline


    The guy that uploads a plugin that makes himself op
    That can make himself op on my server
  20. Offline

    timtower Administrator Administrator Moderator

    And what is the part that could be recoded then?
  21. Offline


    The one that makes him op should be erased :/
  22. Offline

    timtower Administrator Administrator Moderator

    He is already banned like mbaxter said. And the link got removed.
  23. Offline


    Oh but do you know any plugins that has the one im requesting?

    I still have the file on my recycle bin

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

    timtower Administrator Administrator Moderator

    No, I don't know it.
    Then get rid of it, only malicious for your server. Also check your OP file.
  25. Offline


    Hey i have an idea, how about you get some of the files code?
    I just downloaded a simple java plugin opener and i did saw the op thingy
  26. Offline


    XdarkbeastX just for future reference the "java plugin opener" is called a java decompiler

    I finished the plugin: Download Link
    I added a command to it so you can get the bow without crafting it

    Command: /tripleshot or /tshot

    • multiarrow.tripleshot (allows crafting and use of the bow)
    • multiarrow.tripleshot.command (allows use of the command)

    Since you didn't specify a recipe I made this one:

    Let me know if you need any changes
    GreySwordz likes this.
  27. Offline


  28. Offline


    Thank you but it doesnt seem like its compatible with the enchantments.

    Thank you but, can you make it with enchantments aswell? I really appreciate it .

    There seems to be a problem, the 2 arrow on eachside hits the player

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


    Wich bukkit version do you use? Because on my local server with bukkit 1.7.9 R0.2 it doesn't do that.
    I'm working on the enchantments it should be done soon.

    I'm done. Now infinity, flame, punch and power should have effect.I hope this also fix the problem you had, because now the 2 arrows on the side are appearing 2 ticks later.

    It's still the same link: .

    If you have more suggestion, changes, bugs, problems, questions, etc, tell it me.

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


    I am using 1.7.2 bukkit
    And after i downloaded the new file it does'nt seem to work , i can craft it but i cant shoot something and it does the same as a normal bow . :/
    Can you make it compatible to 1.7.2 or 4?

Share This Page