This tutorial shows how to build an automatic sugar cane farm in Minecraft 1.19 and newer. The farm uses observer and piston mechanics to harvest sugar cane automatically with minimal resources. Key ...
Note that it uses the jdk.compiler module to parse the Java source code. The java binary version used must therefore be from a JDK (not JRE) with a version equal to or newer than the Java language ...