/craft by placing lucky block in center and command_block in the corners and the rest with barrier
aba,blb,aba,a,command_block,b,barrier,l,lucky:lucky_block