I can't download Xcode because my Mac mini is not up to date. However, there are no updates for my Mac mini. Is there anything to do? [duplicate]
You can get earlier versions of Xcode from here:
https://developer.apple.com/download/more/?=xcode
This may be an option if you can't upgrade the OS.
New major versions (like macOS Catalina) need to be downloaded from the Mac App Store. They may not show up in System Preferences (nowadays they do, but AFAIR not in 10.12).
Depending on the model of Mac you have, you may not be able to upgrade to 10.14 though. Look for your model in https://everymac.com/systems/apple/mac_mini/index-macmini.html and check the max OS version listed there.
Your model (https://everymac.com/systems/apple/mac_mini/specs/mac-mini-core-i7-3.0-late-2014-specs.html) can be upgraded to run macOS Catalina. Just download and install it from the Mac App Store.