Help with making a code to get an item

I don’t think you could do it without block code.
Maybe use this guide hooked up to an item granter?