I have a lot of trouble getting invested in games that I like?

I only have a few games. For games like Minecraft, terraria, and monster hunter gen U, being games that I have they can be fun for hundreds of hours and can expand so much with things like Minecraft's red Strone and terraria's loot. But I can't get into them. I like them a lot but any time I play one for a couple days I feel bored and I eventually drift away. The game is interesting but I just kind of stop playing. I don't know if there's a way for me to change how I play or when
I play to keep me invested but I just want to be more interested and invested in the games I like

I was the same. When I play with a friend I can go for hours and still have fun, can't wait to play again the next day. When I don't, I'll play for maybe an hour and get extremely bored and just give up.
Try playing with a friend!