What is the default NoDamageTicks?

Discussion in 'Plugin Development' started by Agentleader1, Apr 22, 2015.

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

    Agentleader1

    You know:
    Code:
    player.setNoDamageTicks(0);
    ?

    Well, each server has a default No Damage Ticks value before it was set to any other value.
    I'm making a plugin that requires that I remove the NoDamageTicks and set it to the default after things happen. I know I'm being vague, but I just need to set the damage ticks of a player back to the original. Does anyone know what the original no damage ticks is?
     
  2. Offline

    Agentleader1

    @Assist I do know what NoDamageTicks are. Are you sure it's 20 though? In game, I feel like it might be 10.
     
  3. It is 10. The default mobs have the maximum NoDamageTicks between x and 20
     
  4. Offline

    Konato_K

    @Agentleader1 @FisheyLP The default value is 20, but entities can be hit once their no damage ticks reach 10, why? I don't know, it's just like that, and it's weird as hell, but it is like that.
     
Thread Status:
Not open for further replies.

Share This Page