I Made Minecraft in 24 Hours
HTML-код
- Опубликовано: 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
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
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 ?
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 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
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)
"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
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
This is so... relaxing...
I love the graphics, it's so stylish!
BRO, THIS IS AWESOME! I had to subscribe. So cool!
Minecraft without bedrock now we really dont wanna dig straight down
Yes
Spoilers
"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”
Awesome video and I appreciate you making minecraft in 24 hours man :]
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 RUclipsr that uses Unity too cuz of Bean xD
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
1:11 you got me there
Epic mannnnnn❤️❤️ Crazyyyyyy !!!
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
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?
Give this guy some more reference material, and he can make a pretty good recreation!
masterpiece
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
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
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) ❤
It's pretty good, that I would play it! :-)
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
“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?
gives me deja vu, love it
The textures look great!!
Damn quarantine really getting to people
lol
lol
lol
lol
lol
" 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
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..!!
Love the vid idea and the vid
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
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.
This is exactly how Minecraft would've started.
Mc had trees in indev
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
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?
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
you actually got me when you put that fake ending screen
Need a part 2
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
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
ruclips.net/video/dQw4w9WgXcQ/видео.html
This inspires me for game dev
a high-contrat version of cave game
looks awesome
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
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
Why am I getting vibes of when I used to play minecraft ripoff games lol. Memories came flooding back
You missed:
The health bar
The hunger bar
The bubbles when you go underwater
The hand
The skin
The sound when you place/break blocks
Mobs
The cracks when ur breaking a block
The screen to make a world
The switch to creative or survival
Tell me if i missed anything!
he fforgor to add minecraft and physics
Forgets to add crafting:
Game title: Minecraft
Actual game: Mine
more like:Make blocks vanish
It’s minebuild
breakplace
Destroydeploy
PutRemove
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
“Breakmake. An open world 3d platformer.”
Sam is like danidev but even chiller
I love that this channel shows you that programming is 90% fixing errors. It's authentic and funny as hell
It does help to get the "I must commit no errors" thought out of your mind
Euh what feldup je mattendait tellement pas a te voir ici
@@oiseauquivole4111 personne ne s'attendait a le voir xD
I’ve been coding in Unity for about a week and I thought I was stupid after every mistake I made, watching these sorts of videos has helped a lot with that thought
@@DarkShadic9632 I'm a professional software developer, been programming for years. Not in games, I'm full stack web, but I do homemade game engine stuff in C in my free time for a hobby. Code is just too precise and formalized for our human brains to get it right all the time. And there's too much to know, I am using Google at least a few times per day to look up documentation for an API or examples from a library's getting-started pages.
In general the sort of errors you make will change over time; as you get more experience your brain becomes good at detecting things that just look wrong so syntax errors (for instance) become far less common. Eventually you get to a point where most of the bigger errors you are making tend to be more 'architectural' -- related to the overall code structure and interface design. (And those often can't really be called 'errors,' just temporarily bad or inefficient design.) But you will always have the occasional day here or there where you do something that makes you feel like the biggest idiot in the world. Just a few weeks ago at work, a Vue app I was building stopped being able to reach its backend API; it was throwing 404s. I lost two hours debugging -- looking at the backend server to see if it was offline, checking the cookies and auth token I was sending over, then just scratching my head and saying out loud "WTF is happening...." Turns out at some point I had inadvertently changed a "-" character in the URL into a "." I call those moments a double-cryer -- you want to cry from relief that you finally found it, and cry from depression that you suck so bad hahaha.
So long story short, yeah, everybody has moments like that. All you can do is take a ten minute break, take some deep breaths, commiserate with your coworkers, and then move on. And even beyond those facepalm moments, things like accessing the wrong property, passing the wrong variable to a function, or using the wrong loop bounds happen so frequently that programmers I know (including myself) hardly even notice them, those are just part of the act of programming.
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
Welcome to Sam craft where the only circle thing is you!
Before this I some dude made a minecraft clone in c++ with opengl framework your also is good btw
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
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.
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
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.
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!*
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.
I miss this RUclipsr. His vids were simple yet entertaining.
Very big skills to make this 🙂👏
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!
Uh... dude, I don’t think that’s what they meant when they said “Minecraft Speedrun”
2× 😂
🤣
golden
😂
😂
3:17
Sam hogan:- Ho wait 1 second
RUclips:- *Add pops*
This really happened.
bro ur the best
Minecraft has nothing on “MineBuild”
OURbuild comprade
giannis psillias dude u fucked it up
Minebuildcraftchat
@@giannispsillias7964 comprade
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)))
*This is so cool!*
Me: "Mom can you buy me Minecraft please?"
Mom: "You have Minecraft at home"
Minecraft at home:
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
Challenge: You have 1 day to create Minecraft 3D with Scratch.
Oh no
@@joelhoon1707 Oh yes
@@comradef191old6 a
@Luke Cool r u griffpatch?
Yes, Please!
Parents don’t want to buy Minecraft so I need to create it by myself
Bro please hold I cannot hold that much talent at the same time
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.
Great work! 🙂
damn man nice video
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
this looks better.i love that its so nice and not dark.when I look at it, I see the past of the summer of 2017, when everything was clear, the weather was the best, you could go outside every day, even in winter!, you had fun with your friends without worrying about studying. beautiful
That one tree be looking like:
🟩
🟫
🟫
🟫
?
?
?
?
🟩🟩🟩🟩🟩🟩
8:01
@@mechanicalmacbook same :'(
Its censored
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
That's great! Now the next challenge is to add all the features and blocks that minecraft 1.19 have!
GOOD LUCK 👍
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
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
Thank you making Minecraft *Sam Hogan* !
Bro your so good at coding the game,mojang will definitely hired you someday
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
Every Minecraft Rip-Off Game: "First time?"
“not exactly”
Lol
Forming water around terrains with so-called meshes is impressive
Ultimate!!!
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
"that's all Minecraft is right?"
Minecraft: am I a joke to you
*Yes because what he said was a joke XD*
Sam Hogan is the best game desiging teacher.
Me: *Inspect, copy, paste*