Rewritten entity ID assigning (might resolve non-unique IDs when updating the mod issue).