I Made Minecraft in 24 Hours
Вставка
- Опубліковано 26 лют 2020
- Can I make Minecraft in one day without the internet?
So I was bored and decided to bust out the good ol' unity game engine and see how just hard it would be to create the classic blocky voxel sandbox game. To make it interesting and really test my skills, I wasn't allowed to access any external resources/tutorials/code.
→ Download for some reason: trickshotlabs.itch.io/minecra...
→ Download the source: github.com/samhogan/Minecraft...
→ Twitter: / samhgames
----MUSIC-----
→ "Funky Monkey" & "Out of Pentatonic Scale" by Antti Luode
→ "Mirrorball" & "Emotional Wilderness" by www.purple-planet.com/
→ "Break Out" & "Blam" by DST - nosoapradio.us
I started off with basic terrain generation, using cube gameobjects arranged in a grid, whose heights are varied by a perlin noise function. This, however, led to not great performance, but luckily I knew of a way to significantly optimize things.
This was using terrain chunks - which is what the actual minecraft does as far as I can tell. This meant using voxel data to only build faces of blocks that are facing air blocks. And because the voxel data is 3D, it's possible to have much more interesting procedural terrain generation, like caves, overhangs, trees, etc.
It's super fun to play around with the different noise functions and see what type of terrain is generated. I ended up doing some simple stuff which looks pretty good: A base layer of simplex noise at a large scale + another layer at a smaller scale that is multiplied by yet another layer for terrain variety. This is the height map. Then 3D simplex noise cuts pieces out to create cave systems.
Procedurally generating trees and water were both a little tricky. For trees, I used a perlin noise value at each chunk coordinate to determine how many trees would be in each chunk. Then, a random number generator seeded with the chunk's coordinates was used to build the specific trees. This way, the exact same random numbers are produced each time for a specific chunk, and the same trees are generated.
Water had to form around the terrain, so you don't have weird stuff like finding water when you did straight down. What I ended up doing was creating a separate mesh for the water. To build it up, just loop through each xz coordinate in the chunk, for each starting at the max y position and move down through the voxel data, checking if land exists. If the water level is reached before the first land block, build a square at the water level.
There's some boring stuff cut out of the video, like optimization. I did things like add an object pool for reusing terrain chunks and add a timer to load chunks one at a time instead of all at once. The performance is still not great, which is mostly due to all the noise function calculations. This could probably be fixed with multithreading, but there's no way I could figure that out without internet help.
I finished this project off when an inventory, a skybox, and some graphical improvements. The total elapsed time from start to finish was about 14 hours, and the total time I spent actually working on it was around 11 hours. This was minecraft in 24 hours with #Unity3D.
--- Other Minecraft Programming Challenges ---
→ "Coding Minecraft in One Week - C++/OpenGL Programming Challenge" by Hopson - • Coding Minecraft in On...
→ "Minecraft in Unity 3D [Flashing Images] - One-Week Programming Challenge" by Shane Beck - • Minecraft in Unity 3D ...
→ "Coding Minecraft in ONE DAY (Timelapse) | Unity3D" by TechBox - • Coding Minecraft in ON...
→ "Creating Minecraft In 5 Days" - • Creating Minecraft In ...
hey notch can I get my piece of that minecraft $ ??? - Розваги
The no Stack Overflow thing is a bit evil, even pros don't code by themselves.
yeah... probably not doing that again
I rarely use stack overflow to code? I think most people primarily use it to deal with weird specific language/engine/IDE features right?
@@fossforever512 Yeah
No documentation is probably worse...
qvindicator I mean, it depends if you know exactly what the code does, boilerplate code for example, why write it yourself over and over again when you can just copy and paste it? Saves time
Other than that tho, I mostly agree, copy and pasting code is more useful for the tinkering stage when you’re learning the technology, but once you actually want to implement something real documentation and writing your own code is definitely a better option
"Only looked up two things"
His search history:
"How to code"
"How to code a Minecraft knockoff"
The graphics in this game is better than minecraft
no
@@blockmangoproplayer6201 In terms of lighting, yes. In terms of pretty much everything else, no.
block man go pro player no
EGG TV no
Everyone who makes an mc clone always has moon gravity and instant mining. I think these are pretty important to what makes mc, mc. It's enjoyable to navigate the world in mc. Very smooth
That's why I really like the Minecraft clone 4d miner. It's basically just Minecraft's basic physics but in 4 dimensions
wish Minecraft
The graphic is so cool,i love how the dynamic shadow looks like
Better than Minecraft
@@littleice9731 ?
"Mom can I buy minecraft?"
"No"
"Fine. I'll do it myself."
Oh, a twist!
And thats the birth of *”SURVIVAL CRAFT 3D”*
it myself: *spreading legs*
Minecraft at home:
“Mom, can I have Minecraft”
“No, we have minecraft at home”
“Oh hell nah”
Now this is how to play minecraft with shaders without breaking your pc.
The Letter 69 For20
Me with god pc.
Amateurs
No u
Every 60 seconds in Africa a minute passes
Yep
Thank you for including the code you wrote. It will be useful to figure out how Minecraft generates its chunks.
This is actually really fun, cool, and amusing to watch despite the fact that I failed every IT class I took (unless we were specifically programming)
it looks like one of those games that are called "MineBlock 3D World"
Or minebuild
Or 3D CraftWorld Lite
But better
MINECREATE ROCKETCRAFT FIVE NIGHTS AT FREDDIES FREDDY SEX FOXY JAKE PAUL DIMENSION IN FORTNITE????????
WorldCraft 3D
Minecraft without bedrock now we really dont wanna dig straight down
Yes
Spoilers
BRO, THIS IS AWESOME! I had to subscribe. So cool!
This is so... relaxing...
I love the graphics, it's so stylish!
This looks like one of the free games in the google play store named “FREE 2020 CRAFTING SURVIVAL BLOCK OPEN WORLD GAME”
Haha yes
Rotmg Troller Fan But I bet it took those people way longer to make a trash game
Its just 1 day and I think this is worth
Rotmg Troller Fan XDDDD
Bagel Thief ikr
Love that the character is just casually a bean
B E A N O S
No
No no beans
Killer bean:
He do be vibing though
I remember another UA-camr that uses Unity too cuz of Bean xD
Awesome video and I appreciate you making minecraft in 24 hours man :]
Give this guy some more reference material, and he can make a pretty good recreation!
" Rome wasn't built in a day "
This madlad:
" *but Minecraft was* "
why are there no replies
Lol
But dis ain’t Minecraft.
Milky Cooki Everybody’s too scared to fight this.
@Potato Omg Tysm for yours and everyone's support to this comment
So this is how those minecraft imitation games of google play store are born.
This is better than most ripoffs. Just some effort and boom get something pretty close, especially since this was made in 11 hours.
@@s0up_r882 And no ads
The textures look great!!
When you can’t get Minecraft
“Fine. I’ll do it myself”
Lol xD
They called me a madman
Lol
Roaring Thunder115 Steven Universe ;^;
@@alancutouwu2327 how did I, a steven universe fangirl, not get the reference?
Therapist: Dirt cave isn’t real, it can’t hurt you
Dirt cave:
Nicola Philbin cave update
@@Rosteg2406 YES WE NEED A DARN CAVE UPDATE! AND A PET UPDATE AND A END UPDATE AND A FOOD UPDATE AND ANOTHER BIOME UPDATE- I have alot in my head...
Eva Marie Sawyer you’re comment isn’t funny
Da cool One your English is
You're comment is funny
This is exactly how Minecraft would've started.
Mc had trees in indev
He is a genius like he should be hired as a visual developer for minecraft..
I mean just look at his works.. like what other companies can not do in like 24 years he has done in just 24 hours..
Hats Off to you man you are awesome..!!
N... n... no Stack Overflow?
Watch out guys, he must be some kind of god.
We found god 🎉🎊
What is stack overflow?
Just a place which makes your programming life easy.
@@funtimes8048 wut? StackOverflow is free my dude. Completely.
Mehdi samaeian you’re talking about stack overflow teams and we’re talking about stack overflow q and a
The textures make it look like 3D version of the old Terraria.
Edge Lord block heads?
3d version of 2d Minecraft
You know that game wow everyone I know don't know that game
bro 11 days till journeys end ;-;
The game looked like very early Minecraft, with it's weird shaped terrain, the way caves and the world itself generates, it's weird mechanics, etc. It's like Minecraft classic, but with infinite terrain generation.
Mom: we have Minecraft at home
Minecraft at home:
In all seriousness you did a great job and this looks really good for being done in 24 hours
4:38 i’m kind of obsessed with the gravity here, it’s like if minecraft had exoplanets that look like earth but have different gravity and stuff
Anyone else wanna see how far he can really make it as close as possible? Like I’m curious of how close someone come make Minecraft but it be a Knock off, maybe he can make a series.
That'd be dope
That be EPIC!
He should do this
Knockoff Mobile Game D evelopers: *Write that down, write that down!*
@@bhb_2718 what the
@@bhb_2718 the page says its not a thing anymore
Also why do that spam
Sucks to suck
Forming water around terrains with so-called meshes is impressive
I miss this UA-camr. His vids were simple yet entertaining.
“Left click to place a block, and right click to remove one” bruh, that’s evil.
You haven't played Minecraft Classic, I presume?
Your name is evil.
bruh that's cave game
*Laughs in bedrock player*
do you know Ph1LzA?
Imagine notch watching this like ahhh those were the good days
He's gay man
This video is two months old and people are still watching it wow
Notch is dead
@@cabesgg9953 Notch isn't dead and I have proof in Google
@@MrKngo-cf2fe bruh 38 min ago?
Sam is like danidev but even chiller
In watching this video, you realise just how much work it takes Mojang team to develop Minecraft as it stands now..
the creativity and genius behind this work is beyond belief
So this is how people made the fake Minecraft games in google
Right 😭 but why would they waste this much effort on a game no one will play
@@html_izzy6562 Because it's *FREE*
I admit, even I installed them for this very reason
ItsThatCoolKid HT but u can get cracked minecraft to play single player lol
@@vivadrags even in cracked mc you can play multiplayer, But servers are completely limited
@@alephanull1953 APK download on apkvision.com
This is much better than all Minecraft clones flash games
@MareCZeek 00 To be continued.... to twój najlepszy film.
Bardzo fajny i śmieszny
MareCZeek 00 not really
Why do you, use commas like that
@@fish9468 because in some languages (for example, Russian) you must use a comma before "than", maybe he did it out of habit
@@sweet_krona yeah, and apparently the OP's native language is Polish, which is very similar to Russian.
It's interesting how it has better visuals than the original one
The textures makes me want to play your minecraft more than the original
At first I thought: "Making a Minecraft-like blocky game shouldn't be THAT hard if you already have an engine like Unity."
But when you said you're gonna do it without looking up anything on the internet you took it to another level
well done, you have my respects
weird flex but okay
AveRay wEiRd FlEx BuT oK
When your parents won’t buy you Minecraft
“Fine, I’ll do it myself”
Nice Lego Marvel Superheroes reference.
Lol
Parents:Hmmm he has money???
I mean piracy is an option XD
at this point if smbd can code Minecraft himself, he can easily get a job or a gig and buy Minecraft)))
I like how in the showcase you just show all the bugs😂
Bro your so good at coding the game,mojang will definitely hired you someday
This is how they make those minecraft knock-off games.
Like, literally, this is what they look like!
Just his is better
True, but this a lot better than most if not all of the other flash rip-offs.
He did it in a day what did you expect
Blocks world
This is the best knock-off of minecraft
This is like Minecraft at its 1 year point. Do 10 more days and it’s a complete Minecraft copy
1 week point
@@fokego956 pre release point rather.
He used unity which makes 3D rendering a lot easier, whereas notch used OpenGL, which requires a lot more work
@@BigEpicC and concept takes time too.
@@zaferoph you realize that minecraft was in pre release for over a year right
Why am I getting vibes of when I used to play minecraft ripoff games lol. Memories came flooding back
This inspires me for game dev
This dude pretty much made minecraft classic in a day
FuneeMunky if he had done this 10 years ago, he woulda been a billionaire
Yeah, that was kind of the whole idea of the video, buddy
No shit sherlock
The first realease is made in 9 hours
In fact the First Minecraft was made in only 6 days
Me: Only one day? That cant be so difficult
Sam: And no Stack
Me: He is to powerful to be kept alive
he must stand trial!
What is stack?
@@lil.dom. stackoverflow, this is a webside from where you can copy and paste other people code
Too*
*I NEED HIM!*
1:11 you got me there
a high-contrat version of cave game
looks awesome
I can’t believe a company called mojang copied this and made it better
Fr smh my head
@@sneakytw1677 so ur saying "for real, shake my head my head"?
@@user-cv3dr4kt7j yes, that is the joke
@@user-cv3dr4kt7j I'm screaming lmaoooo
@Dev King You are stupid
Damn quarantine really getting to people
lol
lol
lol
lol
lol
I'm interested in how one tackles concepts like trees and other non-noise-map based terrain objects. If the structure overlaps with multiple chunks, you need to notify the other chunks of their presence. However this gets very messy if you tackle ungenerated chunks, or ungenerated chunks adding structures to already existing chunks.
some of the world gen is super nostalgic. reminds me of alpha minecraft :,)
Forgets to add crafting:
Game title: Minecraft
Actual game: Mine
more like:Make blocks vanish
It’s minebuild
breakplace
Destroydeploy
PutRemove
I remember back in the alpha days when minecraft was more or less this.
Supernova this is better than the first alpha
Minecraft alpha remastered
@@mauliqt17 It is, developing a game like this in java is insane even 10 years ago.
I think u should add more details on this game every day/week, so it slowly getting more & more like minecraft (even if u don't want to record it, do it) ❤
“Mom can I have Minecraft?
“No we have Minecraft at home.”
Minecraft at home:
2010: Making a Minecraft castle in 24 hours!
2020: Making Minecraft in 24 hours.
Mdr
2030: Making own computer to run Minecraft in 24hrs
2050: create an artificial intelligence that creates minecraft
2100: Playing Minecraft in irl because the ai took over
2200: teleporting to the minecraft!
This man made a better Minecraft than all those fake blocky games on Mobile.
Epic [woah] yeah
@Epic [woah] yes
block story 3d
*Blocky Blocky*
Its like the same quality
Very big skills to make this 🙂👏
That's great! Now the next challenge is to add all the features and blocks that minecraft 1.19 have!
GOOD LUCK 👍
Uh... dude, I don’t think that’s what they meant when they said “Minecraft Speedrun”
2× 😂
🤣
golden
😂
😂
You should have added a crosshair in the middle so you can see what block you're looking at.
I think the fact that he created it is itself compensation for the crosshair.
When I can’t even make a simple website using
Just look at the middle of the screen
NoobGaming that’s a lot more harder than it looks.
@@Dylank001 talking with NO knowledge. Literally all you do is make a gui object and place an image of a crosshair in the middle.
3:17
Sam hogan:- Ho wait 1 second
UA-cam:- *Add pops*
This really happened.
Idk why but that random only one leaf tree within the finished and fully generated ones made me laugh
This definitely looks like something you'd see on the app store called "Blockcraft" or whatever
There could be a German version called Meinkraft?
True lmao
World of blocks, blockmania, block adventure, and it goes on lol
Minecraft 2 free 2020 download no virus
Lol
at least this minecraft has shaders build into it.
RTX on
@@MRoach03 no shit sherlock
@@MRoach03 to be smartass? the fuck is that supossed to mean
Nice
This is the proof how smol brain u are
ua-cam.com/video/dQw4w9WgXcQ/v-deo.html
gives me deja vu, love it
Thank you making Minecraft *Sam Hogan* !
Let's just talk about how amazing it is, that he did this within 24 hours. That's insanely impressive.
you must have a lot of time on your hands that i can see your name every video i go
Beat that Mojang
YOUR EVERYHWERE
Not really considering minecraft hasn't changed much since its release
xWolf x it has..... watch 2009-2020 Minecraft
This "MINECRAFT" looks like the early days of minecraft
But better
@@unserve2510 That makes sense considering that early minecraft was made with older software.
Yeah because they're old
2 Day ago 40 likes so good balance!
EddyPlyz Channel kinda
Bro please hold I cannot hold that much talent at the same time
It's pretty good, that I would play it! :-)
Everybody’s a gangsta until the tic-tac starts playing Minecraft
Bryce Dearden LOL XDDD Btw I’m your 40th like
@@twinsistergamingyt5151 im your first like
@MR.MECHANICAL AND I'M YOUR FIRST ;3
•Gl1tchMapping• AND IM YOUR FIRST hahhahahah
Ay
There are some haters in the comments saying that this is way worse than Minecraft. Even though one took a day, another took years
and a massive professional team....
Sivan the Hedgehog minecraft wasn’t created in todays technical era tho
DrFjax Still, it’s pretty amazing to accomplish this in only a day..
It took 6 days for Markus Persson (known affectionately to fans as “Notch”) to make the first version of minecraft in 2009
It is worse than minecraft. How does time or amount of developers change that? I'd say it is impressive, but I wouldn't play this
This can be a great bridge practicing minecraft
Wow this man made mine craft on his own + high graphics lets congratulate this man
He is literally remaking Minecraft in 24 hours while it took me a year and a half to make my Python turtle move in a straight line
I mean he probably has more than advanced knowledge about unity beforehand while you were learning from basics on Python.
Yaaba daaba dooooo
@Jacob Gonzales but then whats the point, the only reason i want to make games is cos i want learn to code better with it.
Lmao it was a joke. I actually didn’t even try to learn python we just had a lesson about it at school. It’s not something that really interesting for me
"that's all Minecraft is right?"
Minecraft: am I a joke to you
*Yes because what he said was a joke XD*
I can watch 10 videos about someone making Minecraft in 24 hours and it still would take me a year to do the same thing.
Great work! 🙂
this guy can just make him games instead of buying them
*his
torao chan no he’s right
OnlyCity *himself
sorry but he still use electricity, he's still paying for something
He didn't say for free
Sam: Did I forget anything
Viewers: No
Crafting: ...
Yep. Minecraft. Mine+Craft.
There is no point if we can't mine and craft. It's not Minecraft XD
Yep. Minecraft. Mine+Craft.
There is no point if we can't mine and craft. It's not Minecraft XD
Yep. Minecraft. Mine+Craft.
There is no point if we can't mine and craft. It's not Minecraft XD
@@DBT1007 Yep. Three Comments. Three+Comment
There is no point of commenting if you're not gonna put 3 of them bitches
@@trpeli lmao. Good one but I guess they might've just had some glitch.
Sam Hogan is the best game desiging teacher.
This man is better than other Minecraft copy
If you did this 11 years ago, you would be a millionaire
Edit: I see a lot of you replying with "air", I don't know if that means that I made a typo, and if I did then sorry, English is not my main language
*Billionaire
Gazillionare
∞aire
§€¥£&$@!?aire
11
Me: Mom I want Minecraft
Mom: We have Minecraft at home
Minecraft at home:
Technically this Minecraft is Better bc you can add as much or as little as you want to it like a cave update
Unoriginal
Natalia bruhh potatoe
@@nathanmccollough8009 You can add as much you want to the original Minecraft too. With mods!
Zezo Amr I would actually play that lmao
Love the vid idea and the vid
I remember the old minecraft lol,love it
Minecraft has nothing on “MineBuild”
OURbuild comprade
giannis psillias dude u fucked it up
Minebuildcraftchat
@@giannispsillias7964 comprade
The moment you said "No internet", my video buffered.
He's yr mum
@@thelonewolfproductionz1592 it's 'ur', not 'yr' lmfao
EnderElectrics wait theres broken english for broken english? Lmao
@@EnderElectrics i guess 'ur' is 'you are'
@@pismemispilavv Ohh... that would make sense, yeah
I would never be able to do that ever in my whole life
I was inspired by this video so I also decided to remake Minecraft in unity.
Here is what I found while I was making it. In your video I saw when you were looking at a block face at a harsh angle unity decided to mipmap that block face. There is a problem with that since you are using a texture atlas the adjacent block textures bleed into the other block textures when unity scales the texture atlas down. I solved this by using a Texture2DArray. Though I still wanted to use a texture atlas because I found it very convenient. So how would you convert the texture atlas into different textures? I found by setting the Texture Atlas Texture type in unity to "Sprite (2D and UI)" allows me to sperate parts of the Texture atlas into different sprites. Then take the sprites into a script and populating the Texture2DArray. Now if you actually want to use the Texture2DArray you will have to create a custom shader that takes the texture id which I just used the alpha color channel to pass it into the shader. You could probably get away by putting it somewhere else like the vertex position since it can only be a set amount of values because chunks are 16, 256, 16 in my case. You could use the other bits and encode the texture id.
I also, noticed when you are underground the light still bleeds through in lines. You can fix that by changing the "Normal Bias" to 0 in the Directional Light.
I did enjoy recreating Minecraft in unity but if I was going to do it again I would definitely want to use Unity's D.O.T.S system as terrain generation and mesh creation could be a lot faster.
Glad you shared your experience.
Woah, did anyone try it yet?
Every Minecraft Rip-Off Game: "First time?"
“not exactly”
Lol
Me: Mom can we get minecraft?
Mom: We have minecraft at home.
Minecraft at home:
HADJ MOHTARIF PRO yes true
Copied
Этот мем мертв (
@@user-rf1yg5xf6d :(
Super Gogeta it wasn’t copied. The dude under this comment copied him.
Minecraft factory: we better hire Sam hogan to help us!
3:39 your methods with no access modifiers is killing me i dont know why 😭😭
Mojang: *We better hire this guy quick*
Microsoft: we better sue this guy quick
@@superdesignendingmanbs-5002 hey shut up
miguel ph you good bro
Since he's using unity and C# this is not accurate but it's a good meme none the less!
Lmao hire someone who used unity