Thats a datapack that did that. Never played it myself. I'd advise doing as Dumboi said and using debug to get them back.
If you don't know how, in the main menu settings, look for the option "enable debug," turn it on, and enter the game. The button to access the menu will be next to the skills and menu buttons at the bottom left.