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 Video Information
This video, titled ‘Can AI Code Minecraft? Watch ChatGPT Try’, was uploaded by BadGameDev on 2023-04-19 16:00:37. It has garnered 723526 views and 24677 likes. The duration of the video is 00:08:06 or 486 seconds.
Can AI Code Minecraft? Watch ChatGPT Try
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
My Patreon: https://www.patreon.com/badgamedev
Follow Me: TikTok: https://www.tiktok.com/@badgamedevyt Dragon Ball Channel: http://youtube.com/c/MadDBZ Minecraft Channel: https://www.youtube.com/c/MadMaker7 Twitter: https://twitter.com/BadGameDevYT Instagram: https://www.instagram.com/badgamedevyt/
Contact: [email protected]