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 ^ PERMISSIONS multiarrow.tripleshot
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.
mbaxter 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.
Code:java Bukkit.getScheduler().scheduleSyncDelayedTask(plugin, new Runnable() { public void run() { if (level == 1) { MultishotListener.this.spawnArrow(loc, shooter, velocity, -0.5D, 0.6D); } else if (level == 2) { MultishotListener.this.spawnArrow(loc, shooter, velocity, 0.5D, 0.6D); MultishotListener.this.spawnArrow(loc, shooter, velocity, -0.5D, 0.6D); } } }); } private void spawnArrow(Location loc, LivingEntity shooter, Vector velocity, double amount, double forward) { BlockFace direction = DUtil.yawToDirection(shooter.getLocation().getYaw(), false); switch (direction) { case DOWN: case EAST_NORTH_EAST: loc.add(amount, 0.0D, 0.0D); break; case EAST: case EAST_SOUTH_EAST: loc.add(0.0D, 0.0D, amount); break; default: loc.add(amount, 0.0D, amount); } switch (direction) { case DOWN: loc.add(0.0D, 0.0D, -forward); break; case EAST_NORTH_EAST: loc.add(0.0D, 0.0D, forward); break; case EAST: loc.add(forward, 0.0D, 0.0D); break; case EAST_SOUTH_EAST: loc.add(-forward, 0.0D, 0.0D); break; case NORTH_NORTH_EAST: loc.add(forward, 0.0D, -forward); case SELF: loc.add(-forward, 0.0D, forward); case NORTH_NORTH_WEST: loc.add(-forward, 0.0D, -forward); case NORTH: case NORTH_EAST: case NORTH_WEST: default: loc.add(forward, 0.0D, forward); } Arrow arrow = (Arrow)loc.getWorld().spawnEntity(loc, EntityType.ARROW); arrow.setVelocity(velocity); arrow.setShooter(shooter); } public boolean isEnabled() { return true; } public void setValues() { }} Something like this?
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.
XdarkbeastX Nope, never made something that shoots different projectiles, so i have no idea man but that should help somewhat for someone else
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.
Code:java public static BlockFace yawToDirection(float yaw, boolean precise) { yaw -= 90.0F; if (yaw < 0.0F) yaw += 360.0F; yaw %= 360.0F; int i = (int)((yaw + 8.0F) / 22.5D); if (precise) { if (i == 15) return BlockFace.WEST_SOUTH_WEST; if (i == 13) return BlockFace.SOUTH_SOUTH_WEST; if (i == 11) return BlockFace.SOUTH_SOUTH_EAST; if (i == 9) return BlockFace.EAST_SOUTH_EAST; if (i == 7) return BlockFace.EAST_NORTH_EAST; if (i == 5) return BlockFace.NORTH_NORTH_EAST; if (i == 3) return BlockFace.NORTH_NORTH_WEST; if (i == 1) return BlockFace.WEST_NORTH_WEST; } if (i >= 15) return BlockFace.WEST; if (i >= 13) return BlockFace.SOUTH_WEST; if (i == 12) return BlockFace.SOUTH; if (i >= 9) return BlockFace.SOUTH_EAST; if (i == 8) return BlockFace.EAST; if (i >= 5) return BlockFace.NORTH_EAST; if (i == 4) return BlockFace.NORTH; if (i >= 1) return BlockFace.NORTH_WEST; return BlockFace.WEST; } that is what the dutil will do for this plugin.
im sorry if the plugin i requested is causing all of you troubles. I only needed this plugin for the kitpvp. mbaxter why not just recode it? EDIT by Moderator: merged posts, please use the edit button instead of double posting.
timtower 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.
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
XdarkbeastX just for future reference the "java plugin opener" is called a java decompiler also... 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 permissions: 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
i made also the requested plugin (damn you Geekxboy for being faster). Sorry for my recipe is a little bit more expensive: here is the download link: https://copy.com/ovXd9oCDPXy7
Geekxboy 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.
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: https://copy.com/ovXd9oCDPXy7 . 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.
xyfonix 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?