How does Chaosflo do that?

Sh
3

The youtuber chaosflo had made keys to minecraft that you only drop half of the inventory (as soon as you die). How does he do that

Ma

It was probably a mod. But I can't say which one

ma

This is done with command blocks

ho

It's probably a modification.