Collision between entities

Discussion in 'Spigot Plugin Development' started by lukas123405, Jun 11, 2016.

  1. Hi

    I'm trying to make a plugin which controls the way players and mobs interact with each other. With 1.9 it is possible again for players to push other players away. How can I as a player push mobs and not other players?

    With the scoreboard it is possible to switch off the collision between players. Unfortunately in that case a player is not able to push mobs anymore.
    • Agree Agree x 1
  3. When I set this to false, a player can't collide with another player.He also can't collide with another mob. But they should be able to push sheeps,pigs...
  4. then only set it to false when you want it to, not always.
  5. There is the problem. I always want it set to false. At least when they collide with another player.

    The only other way I can think of is to set it to false for everybody and try to implement the collide on my own so player can just push mobs.