How to make straight flying arrows in vanilla Minecraft?
Does anyone know how to make straight flying arrows using command blocks? I'm trying to make an easier way of teleporting than ender pearls, which do damage and don't fly straight. I've made the following commands;
/scoreboard objectives add Shot stat.useItem.minecraft.bow
/scoreboard objectives add Holding dummy
/scoreboard objectives add Arrow dummy
/scoreboard objectives add InGround dummy
/scoreboard players set @a Holding 0
/scoreboard players set @a Holding 1 {SelectedItem:{tag:{display:{Name:"Enterprise"}}}}
/execute @a[score_Shot_min=1,score_Holding_min=1] ~ ~ ~ /scoreboard players set @e[type=Arrow,r=2] Arrow 1
/scoreboard players set @e[type=Arrow,score_Arrow_min=1] InGround 1 {inGround:1b}
/execute @e[type=Arrow,score_InGround_min=1] ~ ~ ~ /tp @p[score_Holding_min=1] @e[score_InGround_min=1]
/kill @e[type=Arrow,score_InGround_min=1]
/scoreboard players set @a Shot 0
There's only one problem: arrows don't fly straight either. Does anyone know how to make them fly straight?
Best Answer
The Minecraft 1.10 update introduced the "No Gravity" {NoGravity:1} tag. You can use that to make hoverboats, straight arrows, snowballs, etc.
Pictures about "How to make straight flying arrows in vanilla Minecraft?"



How do you make arrows fly straight in Minecraft?
There is no way to make an arrow fly straight without using that method. It doesn't look good, and I would recommend trying some different idea altogether than making arrows fly straight. You could tell the arrow to face a certain direction by sensing your direction and facing in that direction.What makes an arrow fly straight?
The further away an arrow is from the bow, the straighter it will fly \u2013 as the energy spent on bending lessens. Vanes or fletchings on the back of the arrow speed up this process, as they slow down the back of the shaft, which is the part travelling faster.How do you make a super arrow in Minecraft?
Add Items to make a Spectral Arrow In the crafting menu, you should see a crafting area that is made up of a 3x3 crafting grid. To make a spectral arrow, place 4 glowstone dust and 1 arrow in the 3x3 crafting grid.Top 5 FUN things to do with /execute using BOWS?!
More answers regarding how to make straight flying arrows in vanilla Minecraft?
Answer 2
There is a way now of 1.9(1.9 snapshots):
The stuff in this video is very complex, so im giving just a quick overview here(for more information see the box below)
The "engine", developed only with commandblocks, features custom weapons and special projectiles for every weapon, using physics engine. At about 13:00, he shows the commands, which are executed, when a projectile hits an entity or block. This is where you put your teleportation command. Because the engine tracks, which player fired which projectile, this would even work with multiple players.
This would require a lot of work, but its not very much compared to the complexity of the engine itself.
More in-depth overview, of what the video shows:
The youtuber GamerGuppy developed a physics engine within vanilla Minecraft(1.9 snapshots) using commandblocks, in order to add custom weapons and custom projectiles to the game. This engine works with a method, called raytracing, to calculate the next position of a projectile and if it hit a wall or an entity. The "engine" features an easy way, to execute commands, when a projectile hits a wall or an entity(used for sound/particle effects). You can use this section, to execute your teleportation command(s).
Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.
Images: Pixabay, Rhys Abel, Gustavo Fring, Erik Mclean

