you cant insert a diamond in a beacon minecrafy code example
Example 1: blocks for beacon
to make a full powered beacon you need 164 blocks of any type of goodie
Example 2: full beacon size
who ever typed the answer in grepper answer is a legend