1. Welcome to the Brawl website! Feel free to look around our forums. Join our growing community by typing /register in-game!

Comments on Profile Post by Phanta

  1. Paul
    Paul
    Make it point to a random location

    There's already a task running ever tick to point to something. If theres no one to point it to just point it in a random location.
    Apr 21, 2015
  2. Phanta
    Phanta
    So I have no way of detecting if the compass is actually pointing to a player on the client?
    Apr 21, 2015
  3. Paul
    Paul
    on the client i have no idea. in the bukkit api it's get/setCompassTarget
    Apr 21, 2015
  4. Phanta
    Phanta
    Okay, another approach. I'll just check if there's a player within a certain range.

    (What's the range? :v)
    Apr 21, 2015
  5. Paul
    Paul
    in nms it would be EntityPlayer.compassTarget = new Location(w, x, y, z);
    Apr 21, 2015
  6. Paul
    Paul
    range is about 175 i believe. that's what it is in the combat tag plugin
    Apr 21, 2015
  7. Phanta
    Phanta
    Now why would the client use nms? :v
    Apr 21, 2015
  8. Paul
    Paul
    what do you think nms is based off? :)
    Apr 21, 2015
  9. Phanta
    Phanta
    Uh
    Common protocols?
    Apr 21, 2015
  10. Paul
    Paul
    it's based off what you use to make mc mods (mcp)
    Apr 21, 2015
  11. Phanta
    Phanta
    nms isn't "based off" mcp :v
    mcp just uses fernflower to decompile nms classes

    also, Forge doesn't rely on MCP any more (I don't think)
    Apr 21, 2015
  12. Paul
    Paul
    you can use forge now, wat
    Apr 21, 2015
  13. Phanta
    Phanta
    I've been using forge for a while

    Also, is the 175 block radius a circle or a square?
    Apr 21, 2015
  14. Paul
    Paul
    sqrt[ (x1-x2)^2 + (y1-y2)^2 ]
    Apr 21, 2015
  15. Phanta
    Phanta
    You just have to make things hard for me, don't you? :v
    Apr 21, 2015
  16. Paul
    Paul
    :D
    Apr 21, 2015
  17. Phanta
    Phanta
    lol I copied your code snippet from above
    #lazy
    Apr 21, 2015
  18. Phanta
  19. Paul
    Paul
    good enuf. amirite
    Apr 21, 2015