# how I can get all the positions of a arrow

Comments in 'Plugin Development' started by Yoyo95220, Dec 27, 2015.

1. Offline

### Yoyo95220New Member

Joined:
Sep 2, 2015
Posts:
8
Minecraft User:
I want to get all the positions betwenn the start position and the destination of an arrow
Last edited: Dec 28, 2015
2. Offline

### PEMapModderNotable MemberPlugin Developer

Joined:
Oct 9, 2013
Posts:
7,294
Plugins:
11
Minecraft User:
I need to find a method to represent a differential calculus in PHP.
How can you get "all the positions" of an arrow? The path can be split into infinitely small. Are we going to differentiate the parabola to get the position of every point of the arrow, and return an infinitely large array?

Seriously. What positions do you want to get? Did you mean the blocks within the range? And how dense? Every block? Or every half-block? Or what?
Vaivez66 likes this.
3. Offline

### Yoyo95220New Member

Joined:
Sep 2, 2015
Posts:
8
Minecraft User:
For example, when a player shoot an arrow, get all position between the position of the shooter and the final place of the arrow
4. Offline

### PEMapModderNotable MemberPlugin Developer

Joined:
Oct 9, 2013
Posts:
7,294
Plugins:
11
Minecraft User:
What do you mean by "all position"? Do you mean every block?
From my experience developing WorldEditArt, although it is a sensible thing to return an array of positions in an area through an array of integer positions, it is more efficient to execute code over it directly.
Can you explain how you are going to use it?
5. Offline

### Yoyo95220New Member

Joined:
Sep 2, 2015
Posts:
8
Minecraft User:
I'm making a minigame plugin, Splatoon. When a player shoot an arrow ,all blocks on is spent this arrow begin a block of arrow' s color
Legoboy0215 likes this.
6. Offline

### Legoboy0215Notable Member

Joined:
Nov 1, 2014
Posts:
1,724
Minecraft User:
So the block the ARROW hits at last...
7. Offline

### Yoyo95220New Member

Joined:
Sep 2, 2015
Posts:
8
Minecraft User:
Yes