bouncy chicken !

Discussion in 'Plugin Development' started by LoveMST, Aug 24, 2014.

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

    LoveMST

    as the title says i want to make a bouncy chicken like when i hit it and it touch a wall or somthing like that at bounce back !! any way to do that !
     
  2. Offline

    SmooshCakez

    Try setting the chicken's velocity when it's near a block.
     
  3. Offline

    LoveMST

    SmooshCakez some kind of a little code will help tho !! not much a little lel

    bump :)

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 10, 2016
  4. Offline

    LoveMST

    bump , any one !
     
  5. Offline

    Gamecube762

  6. Offline

    LoveMST

    Gamecube762 the problem is how can i check if the entity hit a wall !
     
  7. Offline

    NonameSL

    Maybe onEntityMove, check if a block is near the chcken
     
  8. Offline

    SmooshCakez

    There is no EntityMoveEvent.

    You could always use a scheduler checking whether the chicken is near a block LoveMST
     
  9. Offline

    Gamecube762

    Do some math, get the entities current location and it's last, check if it's next location(based on current and last) will collide with a wall(ie it end in a wall, or there is a wall between). If there is a wall, then multiply the according X Y Z Vectors of it's velocity by -1 to make it shoot the opposite way.
     
  10. Offline

    LoveMST

    SmooshCakez well i have the chicken uuid its info stored i can do some nice checks

    Gamecube762 well i could try that

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 10, 2016
  11. Offline

    Yekllurt

  12. Offline

    LoveMST

    Yekllurt well witch one exactly the thing i want !
     
Thread Status:
Not open for further replies.

Share This Page