Solved Mob that deals certain damage (player specific)

Discussion in 'Plugin Development' started by johnnyD, Jan 23, 2021.

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

    johnnyD

    How would I set the damage of a zombie to do more to one player but will do less damage to another player. These players have the exact some gear or w.e just for the example.


    I guess I could maybe add them into a group, and depending on that group set the damage level of the zombie? Unless someone has a more efficient way. But that still would set all the zombies to that damage level....
     
    Last edited: Jan 23, 2021
  2. Offline

    Newdel

    You could do that. Maybe create an enum with the groups and save the players with their group in a map. I have no idea atm where you don't have to use a map, so...mabe another one has another solution
     
  3. Offline

    johnnyD

    I figured it out but thanks for the reply. I just created a EntityDamageByEntityEvent and and if that player was in a certain group to set the damage from the zombie.
     
    Last edited: Jan 24, 2021
Thread Status:
Not open for further replies.

Share This Page