What is script block in Gradle

I thought script block is a method + closure, is it correct?
Why some type like Project have a lot of script block, but Task don’t have any of them?

Thanks.