Where to send an EntityMove and Look packet

Discussion in 'Plugin Development' started by mug561, Dec 22, 2014.

Thread Status:
Not open for further replies.
  1. Offline

    mug561

    Lets pretend im making a cow, with packets, not a legit cow, but a fake one, that other players will see but not me, i dont need to see a pesky fake cow that moves, i prefer rhem frozen :3. My question is, which other players(Not me) do i send the EntityMove/Look packet to? Do i send the packet to ALL players on the server, players in a certain radius of the cow, how does minecraft do it? I figured it probably wont be ALL players on the server, cause that may cause some lag, but i can be wrong.

    Thanks in advance! :D
     
  2. Offline

    Skionz

    @mug561 You send it to whomever you want to see the cow move.
     
  3. Offline

    mug561

    @Skionz on the entire server? even if theyre 100 chunks away from the cow?
     
  4. Offline

    Skionz

    @mug561 Well do you want everyone to see it? I would say within like 30 blocks send it.
     
  5. Offline

    mug561

Thread Status:
Not open for further replies.

Share This Page