Want to play Minecraft Java PC edition with a controller? then view full article for more information.
Video source: https://youtu.be/jYqQQEMMfuw
Using the below mods you will be able to easily play Minecraft Java with a controller and customise your settings to your liking. You can use most of the major types of controllers avaiable as shown in the video.
There are 2 ways to play this. One is using the Quilt Mod Loader and the other is with the Fabric Mod Loader.
For instructions on how to install JAR files, read this - https://www.gamerpotion.net/2021/11/java-to-use-with-minecraft-java-editions.html
Quilt Loader
Watch this video on how to set up Quilt on your device - https://youtu.be/8DMjrPy2x4s
Get the Quilt Installer here - https://quiltmc.org/install/
Get the Quilt Standard Libraries here - https://modrinth.com/mod/qsl
Get the Midnight Controls Mod here - https://modrinth.com/mod/midnightcontrols/versions
Note: compatibility with other mods has not been tested so use without many other mods to avoid compatibility issues
Fabric Loader
Watch this video on how to install Fabric and Fabric mods - https://youtu.be/yYCSE28e4yo
Get the Fabric Installer here - https://fabricmc.net/use/installer/ (use universal jar)
Get Fabric API here - https://www.curseforge.com/minecraft/mc-mods/fabric-api
Get the Midnight Controls Mod here - https://modrinth.com/mod/midnightcontrols/versions
NOTE: you can only use one loader at a time so either use Quilt or Fabric