Godot 4 C# Tutorial - Minecraft Terrain - Part 1 (Chunks)

Ойындар

Get the source code on my Patreon: / xen42
Join my Discord server idk why not: / discord
Was made in Godot version 4.2 (mono) with Visual Studio 2022
Part 2 here: • Godot 4 C# Tutorial - ...
This video covers creating a block rendering system using chunks.
This is the first video in a tutorial series on how you can make editable voxel terrain with threaded chunk loading/unloading in Godot 4 using C#. This is an intermediate tutorial series that assumes you have working knowledge of C# and Godot, as well as LINQ.
You can also just blindly copy stuff down I can't tell you what to do I'm not your mom.
I want to be real and just call the video voxel terrain but KZread analytics tell me people search for "Godot Minecraft" and we just have to play the algorithm am I right, a man's gotta eat.

Пікірлер: 59

  • @juliettegeo5002
    @juliettegeo50028 ай бұрын

    im gonna blindly copy this down thank u

  • @xen-42

    @xen-42

    8 ай бұрын

    the preferred method

  • @robvp71
    @robvp714 ай бұрын

    Super useful, converted it to GDscript and now using it for my project, thanks so much , saved a lot of time!

  • @xen-42

    @xen-42

    4 ай бұрын

    Thanks so much, first KZread super thanks I've ever had! Glad it was useful!

  • @phobiaAOE
    @phobiaAOE16 күн бұрын

    This is so helpful; even though I'm struggling to convert it, I'm learning so much more about GDScript bc of it :D

  • @xen-42

    @xen-42

    13 күн бұрын

    glad to hear its helpful!

  • @HurricaneSA
    @HurricaneSA5 ай бұрын

    Excellent tutorial. Your code is so much more readable and easier to understand than the typical "Vector3.Up + Vector3.Left + Vector3.One..." array building I've come across.

  • @GuildOfCalamity
    @GuildOfCalamity7 ай бұрын

    This is a great series for people learning Godot.

  • @fleetfieth
    @fleetfieth4 ай бұрын

    I have been hammering my head into my desk trying to figure out voxel terrain generation in GDScript for a game I want to make... So glad I changed back over to C# and found this!

  • @xen-42

    @xen-42

    4 ай бұрын

    Hope it helps!

  • @tumbleweb
    @tumbleweb8 ай бұрын

    He delivers!!

  • @alicoder8
    @alicoder86 ай бұрын

    Love this tutorial! I am subscribing!

  • @xen-42

    @xen-42

    6 ай бұрын

    I'm glad it was helpful! :)

  • @abdullahajeebi
    @abdullahajeebi4 ай бұрын

    Great tutorial!

  • @xen-42

    @xen-42

    4 ай бұрын

    Glad you liked it!

  • @meezi2987
    @meezi29878 ай бұрын

    the best Godot tutorial of all time

  • @meezi2987

    @meezi2987

    8 ай бұрын

    but why C#

  • @xen-42

    @xen-42

    8 ай бұрын

    I tried doing it in GDScript first but since I never use it and only ever use C# these days it was pretty frustrating for me, so I think I'm going to stick to C# from now on. There's a lack of C# tutorials too so I think it's a good niche for new stuff

  • @Neamow

    @Neamow

    7 ай бұрын

    @@xen-42 and I appreciate it, I'm also more used to C# and similar languages and for some reason GDscript just doesn't mesh with me.

  • @will6510
    @will65108 ай бұрын

    Zamn I should subscribe!

  • @xen-42

    @xen-42

    8 ай бұрын

    me too I should do that

  • @mrgreenhamster
    @mrgreenhamster5 ай бұрын

    Its a very good and informative tutorial.while Other game tutorials go like like write 2 lines of code slowly and go like crazy fast in the other part he thought it so much better.thank you for making this By the way what code editor did you use?.

  • @xen-42

    @xen-42

    5 ай бұрын

    Thanks! I use Visual Studio

  • @mrgreenhamster

    @mrgreenhamster

    4 ай бұрын

    thank you@@xen-42

  • @warsin8641
    @warsin86418 ай бұрын

    good thing I know C#!

  • @xen-42

    @xen-42

    8 ай бұрын

    the best language ever made if you ignore all the better ones that may or may not exist I have no idea

  • @fdajkfnsavg
    @fdajkfnsavgАй бұрын

    Memo : Don't use normal Godot Engine, you need to use the edition of Godot Engine that supports C#

  • @Jesuisunknown
    @Jesuisunknown8 ай бұрын

    Nice

  • @xen-42

    @xen-42

    8 ай бұрын

    Thank you!

  • @ThatGeometryDude
    @ThatGeometryDude6 ай бұрын

    I know GDScript better, but i know the basics of C# so I'll give it a shot.

  • @xen-42

    @xen-42

    6 ай бұрын

    If you're looking to do it in GDscript maybe my old tutorial will help kzread.info/dash/bejne/g2aduaaHoZi2kbg.htmlsi=7AoVNXqZSfd56ZEz it's in gdscript but its outdated (made for godot 3) so some parts you'll have to figure out yourself

  • @fiftybytes

    @fiftybytes

    4 ай бұрын

    @@xen-42if using godot 4 i would highly not recommend that tutorial, use this one instead. threads have completely changed so you'll just waste your time if you don't know how to properly fix the code (like i did)

  • @thebrickslayer8768
    @thebrickslayer87688 ай бұрын

    I did the same thing using gd Script, hover my collision mesh have tiny holes sometimes, and the raycast for the block placement is bugged out. Looking forward to see how did you handle that Logic. Great explanation.

  • @xen-42

    @xen-42

    8 ай бұрын

    I hope it'll be useful! Trying to space the releases out at least the slightest bit so it'll all be out by Thursday

  • @longuemire748
    @longuemire7483 ай бұрын

    Thank you for this tutorial. Sorry but in gdscript is it possible?

  • @bloodyrainzzz
    @bloodyrainzzz2 ай бұрын

    Bro, can i ask u? Why u do not using tilesets in this tutorial? i think it should be better

  • @WIL4THEWIN
    @WIL4THEWIN6 ай бұрын

    I don't see the "Naming" option on the latest Godot project settings. Is this a big deal? Is there another way to achieve the same result?

  • @thederpykrafter

    @thederpykrafter

    6 ай бұрын

    use the search bar in project settings. mine didnt show before searching either.

  • @abdullahajeebi
    @abdullahajeebi4 ай бұрын

    4:33 looks like binary counting

  • @Neamow
    @Neamow7 ай бұрын

    Super easy to follow tutorial. I have immediately hit a snag though and I cannot figure out what I could've done wrong: after I finish the script the Chunk inspector just doesn't update, I don't get that new section where you assign Collision Shape and Mesh Instance. I didn't get the glitch you had, the script is correctly assigned to the scene, but when I finish it, it just... nothing happens. Any ideas? I've gone through the video 3 times and absolutely copied the entire code exactly the same and performed the exact same steps. Only difference I have noticed is that in the editor the [Tool] and [Export] lines are not coloured cyan like you have, they're just white for some reason and I can't figure out why.

  • @xen-42

    @xen-42

    7 ай бұрын

    Really weird, I'd try rebuilding, closing and reopening the scene, maybe even restarting Godot and see if it doesn't fix itself. Else if that doesnt work you can join the discord I linked in the description of the video and send some screenshots and stuff and I'll take a closer look

  • @Neamow

    @Neamow

    7 ай бұрын

    @@xen-42 Thanks for replying! I figured it out, I just had an empty line after [Tool] which apparently can't be there, I didn't notice in your editor it adds a sort of a ghost line that says "7 references" that isn't actually there. As soon as it was gone it started working.

  • @hEGGl0o
    @hEGGl0o5 ай бұрын

    Hello! Good tutorial! But I have a problem that I do not know how to solve. In the end, at the moment where we delete the script and add it again, when I click on the chunk, I do not have a window to move CollisionShape3D and MeshInstance3D to. What to do?

  • @xen-42

    @xen-42

    5 ай бұрын

    Might just have to rebuild the project to get them to show up, if they still aren't there turn godot off and on again, always helps I find!

  • @hEGGl0o

    @hEGGl0o

    4 ай бұрын

    ​@@xen-42Hi! Thanks! I created a new project, and everything worked for me! Thank you for the wonderful tutorial! :)

  • @historyteller967
    @historyteller9674 ай бұрын

    It's very nice tutorial but I have a one problem after I've done all the things that are being showed in the tutorial the grid lines of chunks didn't show to me. I'm currently using Compatibility mode of godot. Thanks in advance ☺️.

  • @xen-42

    @xen-42

    4 ай бұрын

    What do you mean by the grid lines? It should still work in compatibility mode so that part is fine

  • @ShineVendor
    @ShineVendor8 ай бұрын

    I'm not a game dev person, but why C# over C++?

  • @xen-42

    @xen-42

    8 ай бұрын

    Personal preference, I'm very used to working in C#

  • @TymeTikTok
    @TymeTikTok6 ай бұрын

    will this work if I just convert the code to gdscript?

  • @xen-42

    @xen-42

    6 ай бұрын

    Should, main issue as far as I'm aware is the threading stuff near the end.

  • @OOOPPSSi
    @OOOPPSSi5 күн бұрын

    marry me xen

  • @xen-42

    @xen-42

    5 күн бұрын

    ok i will

  • @Ganymede2076
    @Ganymede20768 ай бұрын

    Noway tutorial

  • @xen-42

    @xen-42

    8 ай бұрын

    only took me like 2 years

  • @n_d_cisive
    @n_d_cisive4 ай бұрын

    Can you make a GD script version please 🥺🙏

  • @xen-42

    @xen-42

    4 ай бұрын

    No, but some other people have been able to so maybe that can help you. Here's a repo where somebody has done it: github.com/javier-adrian/voxel-gds

  • @thederpykrafter
    @thederpykrafter6 ай бұрын

    got all the way to the end and it does absolutely nothing.. just to realize the source code is paywalled, and you only send people to your discord for help from others.

  • @xen-42

    @xen-42

    6 ай бұрын

    Not sure what you're talking about, I show at the beginning of the video exactly what the tutorial series teaches you how to make. Did you not realize there are 3 other parts? And no, I help people in my Discord, not sure where you're getting that impression from either.

Келесі