1.14.4 how would i make a brick shoot an arrow

Discussion in 'Spigot Plugin Development' started by flamethrowerDL, Jan 12, 2020.

  1. I was wondering if anybody could help me check If a brick is right clicked then shoot an arrow
    and I was also wondering if there was a way to make the arrow fly straight and not react to gravity
  2. Use the PlayerInteractEvent to check for a right click on your brick. then spawn/fire said entity from said location.
  3. 1) PlayerInteractEvent (I think that one fires for non-clickable blocks as well)
    2) world.spawnProjectile (or shootProjectile)
    3) I think it‘s possible (but there are people with more sophisticated answers out there so I‘m just gonna say that if it‘s not possible, set the initial velocity to the direction-vector multiplied with a high value)
  4. thanks you guys for the help :)
  5. Please mark this thread as solved if the answers have resolved your issue.