Spoiler: My first reaction 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?
For example, when a player shoot an arrow, get all position between the position of the shooter and the final place of the arrow
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?
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