Caveat - I have built computers for work and play for twenty years. But I do not have any direct experience with these.
That being said the specs on that machine should be more than enough for what you describe. In fact you could probably go for a cheaper model depending on how heavily modded Minecraft is for you.
Don’t just rely on me and hope you get something you love! I absolutely adore small form factor builds.