How to spawn a golem? [closed]

Solution 1:

Essential part: the two blocks under "arms" of the golem must be empty - minecraft:air. Not tall grass (like in your case), snow, flowers, flowing water or anything else.

Also, the carved pumpkin must be placed last.