Let me propose a solution; The Ender Dragon gets a new NBT data list consisting of pairs of player UUIDs and DateTime of the last time that player dealt damage to the dragon. Each time any player damages the existing Ender Dragon entity within the lifetime of the Ender Dragon, that player’s UUID with current DT is added to the NBT list OR the DT is updated if the UUID is already there.
Upon the death of the Ender Dragon entity, there could be several conditions for the achievement to be triggered for individual players, to make the advancement distribution fair; Player only gets that advancement if: - The player is currently in the same dimension as the Ender Dragon at the moment of the Dragon’s death. - The player has dealt damage to the dragon in some recent time scope, which could be up to the developers to decide. I would suggest a window of 1 hour.
These two conditions should include only players that are actively at the moment participating in the fight, regardless of how much damage you have dealt to the dragon, while excluding players who are not participating at all (regardless of the dimension they are in) and players who may have hit the Ender Dragon once and left the server or the dimension in order to attempt to get “free” advancement on the account of other players actually fighting the dragon.
Let me propose a solution; The Ender Dragon gets a new NBT data list consisting of pairs of player UUIDs and DateTime of the last time that player dealt damage to the dragon. Each time any player damages the existing Ender Dragon entity within the lifetime of the Ender Dragon, that player’s UUID with current DT is added to the NBT list OR the DT is updated if the UUID is already there.
Upon the death of the Ender Dragon entity, there could be several conditions for the achievement to be triggered for individual players, to make the advancement distribution fair; Player only gets that advancement if:
- The player is currently in the same dimension as the Ender Dragon at the moment of the Dragon’s death.
- The player has dealt damage to the dragon in some recent time scope, which could be up to the developers to decide. I would suggest a window of 1 hour.
These two conditions should include only players that are actively at the moment participating in the fight, regardless of how much damage you have dealt to the dragon, while excluding players who are not participating at all (regardless of the dimension they are in) and players who may have hit the Ender Dragon once and left the server or the dimension in order to attempt to get “free” advancement on the account of other players actually fighting the dragon.