Set player vulnerability

Discussion in 'Plugin Development' started by ThunderWaffeMC, Jan 28, 2017.

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

    ThunderWaffeMC

    Is it possible to make mobs passive to a player like when in creative mode, but in survival mode? Bukkit has the option to change the invulnerablity of a player (player.setInvulnerable(false/true)) but not the vulnerability.

    Thanks :)
     
  2. @ThunderWaffeMC
    You can listen to the EntityTargetLivingEntityEvent and cancel it when you need to, causing the mobs not to target the players you desire.
     
    ThunderWaffeMC likes this.
Thread Status:
Not open for further replies.

Share This Page