Hello and welcome to my video channel so right now i will be teaching you how to code code uh minecraft with your cena engine normally python python is with minecraft is simple made except that that the right click things like when you press block appears those are hard things anyway so Just go into this new folder yeah so before you start all of these you will need to download your cena engine which is like uh go to the command and you say pip install because if i install this it will give me an error that you had installed your cena You might need it for later so you say from your cena import remember this is a 2020 version so 2022 version so things might be different if you’re using this from the future because mine’s so green and yours might show something else but doesn’t matter unless if it works so Now we’re done this we’re going to say um this and this person controller and you import this so remember don’t put anything like this you only put it when you’re telling player to be this because yes and sometimes you might be uh interested about putting this so it is Normal even without it you can work but mostly good if you did now let’s write four you can write any any letter here i’m going to say b meaning blocks inner range and we want to say like it could it could be a x position or A z position so we want our x or z length to be uh all the same so we’re going to say 20 and we’ll repeat this again you know what i will say this as red maybe i don’t know what it does what what it means maybe this might mean Whatever you can’t put anything it doesn’t matter and you also want it to be same sizes and then make sure you put these as you know in java and c plus plus yeah you don’t put you put the parties but whatever so now um now if you do entertain me for my place Entity didn’t highlight color so we will need to do button first we will say that the model the model is very important that’s because if we don’t say the model then uh our cube won’t be seen in the see bubble like but meaning that there it won’t be any Model meaning that there won’t be a shape of it but when you start it uh this is this is what you will see nothing it will just don’t upload it it says the name render is not defined that’s because we haven’t say this well i kind of have a glitch because When i write when i write oops nope when i write it does work but whatever yeah um yep now now we say app dot run if you’re using turtle it will say turtle dot doesn’t have the ability to run but make sure you’re using your scene up because you’re saying that Doesn’t uh the has things called entity which might be important which is not answered but whatever turtle is is something hard to explain i will explain it on on another tutorial now that we’re done writing this we will start but except this is what you’re going to see that’s because we that’s because One problem is that um you see this we remind me to close this well we’ll for that we’ll say this input key and then if says um equals q or you can’t say anything of what it equals unless if it’s kind of like quit or exit i won’t say queue or escape because That’s mostly what i do now there are two options you can do one is exit and another is quit quit seems like something working code to me so i’m going to use quit now make sure you put a comma in every time when you do it at least if you’re if you’re on The last one don’t put a comma so now we want a color so we say color equals color dot make sure when you say color you say color dot so i can no color that so we if we do it lime then our highlight color will be very different color So we will need to say white if you try to do none then it’s hard to explain it won’t give you any error except that weird things will happen so just make it color white now we want a picture before we do the picture we need we need to add a folder Called textures oops uh and inside this we will write we will uh take our texture like um for example we want our texture like grass texture so we take it like this and now it uploaded our texture now we say uh i think i’ve forgot something yeah boxes equals yep And now uh inside this we will also say that not only boxes equals none we’ll also say that yeah yeah i just remembered it’s texture but to make this real world to be remembered like you will need to copy what it says like like when you write texture if you got it Incorrect then they won’t write something like this but if you got it correct it will write something like this but don’t press it or else or else um you don’t do that because it’s like something weird so just use normal picture word now it’s a picture we’ll say our Image name let’s change this image to grass block you can you can use anything that uses image things like gpg or png but unless if you if it’s something which creates image but don’t do it image quarter else it would be weird okay picture equals um make sure you put you put this And say grass block dot gpg yep now we’ve done our texture we will now move on to the highlight color highlight color is something simple to explain for example our player cursor if if it’s if it is pointing at a block then it will highlight the color and That’s what highlight color mean it will highlight the color except we need to say which color will highlight so we want it to be a normal light gray color just like in minecraft so what did i do now yeah put the comma make sure you put a comma Every time when you do this and also if you’re doing a space make sure you put this and now we’re done with notes this is not what color here um now now most importantly we’ll say parent Boxes dot append box you can name any of these anything you want but now let’s press start and then we’re standing in one block except something wrong this this thing is not working well that is something right but there must be some kind of problem so i need some other codes If you know what the problem is uh commented below and if the comments are off you can comment in on my channel i think this is where it was here um oh it was because of the position this oh my goodness it’s because of the position okay this this does make sense position Won’t it won’t know what position it is so we won’t allow you to create like um like it won’t understand where it will be so i can’t put blocks to random positions it’s important if you did this and if you did if you did say this on the comments thanks for helping too Okay now we’re done our position let me start this again and check good we have our highlight color and our uh world and also if you want his purlin noise kind of um the purlin noise we will i it’s a bit tricky to tell how to do the corona noise like This you can check it on the browser and yeah but one thing is this when we start it has a pink cursor we if we want to change it we’ll say player dark course i don’t i don’t know really write this right okay color color equals color dot White because in minecraft it is white all the time now we’ve done our right we started again and now see it starts with a white cursor and also we also want it to be a shape dot shape is there’s something called shape oh maybe it’s model oh yeah equals plus There’s nothing like that line maybe a line okay there’s not okay maybe this might be something hard we’ll say school air okay yeah numpy so wait but no it didn’t do it square must be problem okay this model thing is a bit hard so i’m just going to say cube And check what we will do okay this model thing is hard don’t hang with it i’m just going to delete this okay so we’re done our cursor color if we want there to be a sky so we will say um sky and inside it we’re going to say the texture so my texture I want it to be just a normal sky meaning that this if you do it as a normal sky with no texture it will just upload this texture called sky sky difficult whatever that word is it will upload this and yeah if you want it to be a sunset Then you will say texture equal clothes uh sky sunset and also remember um like your cena had already had some textures and so it took it so if you’re trying to make this and your background i tried it but it it didn’t work out so you might You might want to do it that you’re cena’s own pictures so when i say sky sunset it will do a sunset but from for now i will tell it as uh as a normal sky depends on your opinion now we’ve done this we’re going to moan in something simple And the thing is that uh like this but um this will be something hard because i haven’t i haven’t got this hang of it so i will kick on the browser sometimes like the browser like the google chrome so for the no not for this input key And the thing i’m doing is that i’m like um like wait one thing i’m i’m trying to create like when when you right click something it always does make a block and i’m trying to make this i have i do remember me creating that must be somewhere here maybe some python thing oh Wait does this even work let me see does this even work i think it does no it must not work yep it does not work it does not come on this position i want and also this when i press escape it does not escape there must be some kind of problem but But anyways from google i will check it out so um if you want you could skip this part because it might be long uh how to how to code when right click clicked ads upload minecraft whatever at least you learned how to do this voxel things you can still Uh wait i think i i think i know what is the problem if i do this not mouse that normal instead n and k instead of doing it okay and then i’ll do it n n k e wait i think this might work must be something cool wait okay right What the i think you just spawned it at all in the random way wait what what is this one there wait uh why did it spawn there wait i can’t even see the highlight color must be some kind of problem here okay anyways this this is kind of a very Funny thing why it doesn’t work because this code is normally created well i think yeah i need to go to the code ah does it always do this okay um let me just close this okay i think it’s just because i said this and and also and also i will say mouse dot Norm if this works i might i’ll i will copy this to my other code and if it doesn’t i might leave this for the next episode of how to create this because it’s something hard to do i did create it once but now i forgot how to do this oh gee so hard Maybe maybe just what i whatever i said spawned out okay with the wait still i can hide okay seriously uh come on squid wait can’t i just okay yeah now that we know how to do the sky and jump things i’m going to do to tell you some examples of that you’re seeing Nothing so let me go into a new folder yeah so and now let me just delete this yeah um now that we are done our game i’ll give you some examples like teaching things like tommy or cena star star also means when you’re importing a star it means You’re you’re kind of like you’re kind of importing the same thing or you’re importing nothing but if you do this on first person controller this will happen wait um what oh you can even because even though you would do a start it found out this per person controller so it could import this But but i think it can give you some errors so i’m just going to take this as this and this uh this squarely whatever that name is this means like where we’re going to like it means emptiness it means nothing it just it’s it’s like we’re we’re put if if we did This then it then it means that we’re we can’t put a diff like that death thing in it meaning that you can tell what it what it does with div which is kind of important but when we not do this it is weird to tell it’s like It’s like the program understand it’s oh wait yeah somebody yeah i’m just recording and yeah i’m on a google meet yeah um also whatever and this episode i think is done and see you in the next episode Video Information
This video, titled ‘Episode 1 How to Code Minecraft with Ursina Engine! Creating Terrain’, was uploaded by Coder Python on 2022-02-25 02:28:45. It has garnered 834 views and 21 likes. The duration of the video is 00:23:43 or 1423 seconds.
Make sure to Subscribe and Leave a like!
Links:
Link for Ursina Engine: https://www.ursinaengine.org/ Link for Minecraft Java: https://www.minecraft.net/en-us/get-minecraft
I would be very thankful if you subscribed, If we reach 1,000 Subscribers Then I would be very thankful, Please subscribe!
Thank you for Watching!