In xfemm it seems calls to mi_addmaterial must be done before calls to mi_setblockprop. The function mi_makeABC in init.lua doesnt take that into account so it crashes (femmcli version 3.0.0). Femm on the other hand is more forgiving so it works there.