This tutorial is set by the author's setting without permission.
Apple released the M2 chip on June 7, 2022 on November 11, 2020 on November 11, 2020
Minecraft currently only supports the X86_64 architecture and does not support ARM. To be precise, Java, which only supports the X86_64 architecture, is because MacOS's Minecraft
Although you can use Rosetta to translate to play wheat blocks, it is better not to buy M1/M2 in this way
Install the ARM version of JDK
Use 1.19 to demonstrate here
We can use Zulu's java to run the wheat block natively, just go in to download the page (maybe to be agent)
Select "Java 17"-"Macos"-"ARM 64-BIT"-"JDK FX"
From: https://cloud.tencent.com/developer/article/1975582
Choose .dmg download and install
Use Hello! Minecraft Launcher
Version List -> Install a new game version
After installing 1.19 and Optifine, open "Global Settings", set Java to Zulu Java that just installed
Start the game
You can see that you can load it normally and enter the game normally
You can also add light and shadow BSL and the like
over