After I did this, I spawned it in, then deleted the materials. I then made a mining elf, and also crashed the server. Here is my crash log: