Sure! Here's a simple text-based game called "Minecraft 2" implemented as a single HTML file using JavaScript. Remember to save the code in an HTML file and open it in a web browser.
You can interact with the game by running it on a web browser and entering commands when prompted. Available commands are "mine", "build", "inventory", and "quit". Have fun playing "Minecraft 2"!