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
Use the PlayerInteractEvent to check for a right click on your brick. then spawn/fire said entity from said location.
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)