Minecraft wiki entry for Huge_fungus_generation, associated text: The first of which is the hat’s height off the ground (i) which is found from taking the minimum value of either a random integer up to (1 + h/3) + 5, or h.