Can AI Code Minecraft? Watch ChatGPT Try

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
can AI make Minecraft I wanted to put chat GPT to the test and see if chat GPT could code Minecraft from scratch I'm going to be asking how to make Minecraft in unity and follow each step given to see if we can get a working playable Minecraft game with a terrain generation system a player movement system and a block placing and braking system let's see what happens so here's the challenge I'm going to be asking chat GPT to make Minecraft in unity but I cannot change any of the code that I'm given every piece of code in the game has to be written by chatgpt I saw a video recently where chat GPT was challenged to make Flappy Bird so I wanted to try and see how chat GPT would go making a 3D sandbox game like Minecraft to get started I simply asked chatgpt to give me a detailed step-by-step guide on how to make Minecraft in unity what I received was a guide with eight steps detailing how to make a Minecraft Style game in unity this guide included scripts that were generated for the player movement system the block placing system and the block breaking system so I figured I'd work through all eight steps and see what happened Step 1 first create a new Unity project and import the necessary assets such as textures and models I created a new Unity project and imported three different assets including a dirt texture a grass texture a and a Minecraft tree model that I found online Step 2 create a new terrain by selecting terrain create terrain from the menu customize the terrain settings to create a blocky landscape similar to Minecraft now before I do this I should mention that I've never used unity's terrain tool so I asked chatgpt for more details on step 2. I was given a bunch of steps on how to create Terrain in unity so I tried it I created a Terrain and followed the steps chat GPT gave me but it didn't really look like Minecraft so I asked it to do the same thing but to make it more blocky like Minecraft and I was given a bunch of new steps on how to create a more blocky terrain that looks like Minecraft this involved adjusting a bunch of the terrain settings and we ended up with this now this didn't really look like Minecraft but it worked for now I then added some trees to the map which helped make it a little bit more like Minecraft and it was time for step three step three create a new player object by right clicking in the hierarchy window and and selecting create empty rename it to player complete step 4 add a camera component to the player object by clicking on the add component button in the inspector window and selecting camera complete step 5. add a movement script to the player object that allows the player to move and jump now this was the first step that actually involved coding which chat GPT provided a script for so I copied the script added it to our game added the script to our player and let's see how it goes awesome so to fix this I asked chat GPT to rework the code a few times until I found one that worked and it worked pretty good step 6 add a block placement script to the player object that allows the player to place and Destroy blocks once again since this was a step that involved coding I was provided a script for a simple block placement system I copied the script and added it to our game but I had to make a block prefab before the script would work I asked chatgpt how to make a Minecraft block prefab and followed the steps now let's test out the block placement system script one thing to point out with this script is that it has a block breaking system built in so I didn't need to complete step 7 which was to add a block breaking system to our game I didn't need to complete step 8 either because it was just adding lighting and other effects to make the game look more like Minecraft and there we go Minecraft created by AI overall it works you can move around this map move and place blocks but there were a few things to change and add to the game to improve it so let's do that the first thing we were going to add to our game was an actual block to rain generation system two of the key features from Minecraft our game was missing was a block based terrain and a world generation system so we were going to add both with one feature I asked chatgpt to code a block terrain generation system like Minecraft for Unity and I was given a script that would do that this script generates a 2d array of purlin noise values then Loops through each element of the array and instantiates a block prefab at the appropriate position based on the array value it also sets the top block to be grass I have no idea what that means it's just what chat GPT told me I added the script to my game and here's what happened just with one script we had a Minecraft style terrain generation system I adjusted some of the values on the terrain generator object that would change the size of the map and now our game looked more like Minecraft now when I asked chat GP to code a block to rain generation system like Minecraft one thing that was mentioned was that I would need to add the ability for the player to destroy blocks in the world so I asked chat GPT to code this feature obviously I already had a block breaking system in the game but since it was only for player placed blocks I just removed it as I wanted the player to be able to break any blocks in the game anyway I was given a script for this feature which I had to ask chat GPT to change a few times as at first you could only break blocks in front of the player but after a few tries I had a script that worked pretty good now it was time to add a new block placing system I asked chatgpt to make me a script for a block placing system received a script added it to our game and this is what happened I then asked chatgpt to make the script similar to The Block placing system in Minecraft received an updated script added the updated script to our game and this happened so I asked chat GPT to fix the script so that blocks are only placed where the player is looking and now it works great now that the player could play some break blocks it was time to add trees to our terrain generation system I asked chat GPT to add tree generation to our terrain generation system and after a few attempts our game was spawning trees now the next thing I tried to do was get chat GPT to create a randomized terrain generation system so that each time we've played the game a different terrain would be generated and after a bunch of different scripts I think it worked anyway this was the completed version of the game chat GPT had actually coded a remake of Minecraft there was a random terrain generation system that would generate dirt grass and trees there was also a player movement system and a block placing and braking system overall this was pretty much Minecraft coded by AI so there we go after asking chatgpt how to make Minecraft working through the steps provided and our asking for improvements and other features added to the game we ended up with a playable Minecraft Style game overall the game is pretty glitchy but it works great as a starting project if you guys enjoyed this video please be sure to leave a like leave a comment as well and you can also subscribe to the channel peace [Music] [Music]
Info
Channel: BadGameDev
Views: 1,104,066
Rating: undefined out of 5
Keywords: BadGameDev, I Made a Game, Game Development, Game Dev, Game Making, Making a Game, GameMaker Studio 2, Unity, Godot, How to Make a Game
Id: pXnIyRILSkg
Channel Id: undefined
Length: 8min 5sec (485 seconds)
Published: Wed Apr 19 2023
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.