Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Vector velocity = e.getVelocity();
- Location loc = e.getLocation().add(velocity.normalize());
- Vector temp = new Vector(0, abs(e.getFallDistance()) + 1, 0);
- Bukkit.getWorld(e.getLocation().getWorld().getUID()).spawnArrow(loc, velocity.subtract(temp), (float) (Config.getDouble("Village Structures." + ((HashMap) ((HashMap) serverdata.get("worldmap").get(e.getLocation().getWorld().getUID().toString()).get(e.getLocation().getChunk().getX())).get(e.getLocation().getChunk().getZ())).get("str").toString() + ".Arrow Speed")), 0);
- e.remove();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement