Dispenser Shot

Discussion in 'Spigot Plugin Development' started by patricianko, Apr 16, 2018.

  1. Hi, i need help with shotting from Dispenser.

    i have defined Locations from Config to Block then i instance it of Dispenser and get,

    Block b = Bukkit.getWorld(obworld).getBlockAt(new Location(Bukkit.getWorld(obworld), obX, obY, obZ));

    Dispenser d = (Dispenser) b;.

    I need to know how i can from Dispenser shot fire arrow from Direction of Dispenser.

    Thanks for some help answers..
  2. You don't understand. I have remote button and i need when click button and on defined location is dispenser it will dispense arrow to direction of dispenser.
  3. If that arrow is dispensed from dispenser and you want to change the direction of it you will need to get arrow with ProjectileLaunchEvent and then change its direction
  4. maybe you can use BlockFace?

Share This Page