I create a static list of blocks, and i use this list to register my blocks. I understand this is not the correct way do do this. Every example i see about the correct way, individually names every block. Since i have over a hundred blocks, i really don't want
to do that. So there questions is, is there a way to correctly register the without having to name them all.
Override the hurt method, check if the source that's passed isn't DamageSource.OUT_OF_WORLD (this is in order to allow your entity to be killed via commands or the void) and then return false. If the check is false then just return call to the hurt method in the super class.