Advertisement
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

how I can get all the positions of a arrow

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

  1. Yoyo95220
    Offline

    Yoyo95220 New Member

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

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    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. Yoyo95220
    Offline

    Yoyo95220 New Member

    Joined:
    Sep 2, 2015
    Posts:
    8
    Minecraft User:
    Yoyo95220
    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. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    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. Yoyo95220
    Offline

    Yoyo95220 New Member

    Joined:
    Sep 2, 2015
    Posts:
    8
    Minecraft User:
    Yoyo95220
    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. Legoboy0215
    Offline

    Legoboy0215 Notable Member

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

    Yoyo95220 New Member

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

Share This Page

Advertisement