Minecraft script hopper pick up event cancel?

Tr
1

I would like to cancel the hopper pick up event in script. Unfortunately, I do not know how to do that.

Dr

This is, to my knowledge, not by script. I have not found anything on the internet. But I can program you a plugin that does this