I wanted to ask if someone can help me i want to play on my pc minecraft with the controller on linux but somehow it doesn't work?
There's the Controlable Mod from the Minecraft Mod creator MrCrayfish for older versions of Minecraft. Simply install Mal Forge for Mods for the version you want and then install the Controlable Mod. I know it works fine with XBox One Controller with others I don't know. LG Ben