Hello guys and welcome back to another Minecraft video yes I know I sound sick and I am and that is because I have been for the last week or um but despite that I have been working on a few things um when I wasn’t uploading any videos and some of those things include What I’m going to show you for today today’s video uh this thing is about predicates if you don’t know what predicates are I can show you at the well if you tell me in the community tab which I will send out um a post uh asking if you want one about that Otherwise just answer in the comments if you want to see a video about predicates themselves um and I’ll also give you a MHO tutorial about how to use the mhoe GitHub um thing about them and I hope you like the new intro uh spent about 2 hours on It um anyways uh let’s get started with the video um so what I’ve got here is I’ve got a tower and at the bottom I’ve got some creepers then this command block um if we go back to the start so we execute as all of the players um at Themselves um if and then here’s the tricky part is predicate and then I’ve just got my own Nam space which I just called toolkit cuz that’s the name of the data pack that I have then it’s checking for an entity um if it has a motion of climbing so if it’s climbing Then um if there is a creeper um which is like four or less blocks um in the y direction downward so this is Direction in the Y but I do understand it as being the distance in the Y below you um and then it will sum TT so that’s just a nice little prank if they don’t know that it’s coming um so yes I’ve got creepers down here just to make sure that it works here we go checking if I’m climbing that’s okay it’s going to be very quick there we go uh now you would have Noticed that I was a lot closer I was a lot closer than um like I was a lot closer to the creepers than um I thought and the thing is I was actually um so if I build this like that then like say we separate it like this um and the lad was Here the creepers they are two blocks tall right creepers are two blocks tall yeah so if we are so this so it actually reads from the bottom of the hitbox reads from here if you don’t know what a hitbox is well I’ll make a video on that too um so they Are two BLX full but we read from the B of the hit box and yeah I I’ll explain I’ll explain that in another video but basically the bottom of the hit box it raids um so it’s so that was one two three I was at this block and That’s why they were only just down there when the command detected it that was a little bit further closer to them which is why I would have seen them like who and then they would have exploded so the next uh uh things that I have I’ve got some Other um things to show you about predicates here um so uh the way that you start it is you execute as all uh play is actually cuz um that’s how most of mine have formed um and then uh we do if predicate um now you don’t need to say At adds um if the predicate relies on a position um but then after this I’ve got all of these so we just pass in toolkit to not tolit so toolkit and then we can do a chance so these are basically random values you can go for um so you can Check 8% 50% 1% 70 75% 10% 33% uh which is just a third um 25% and yeah then there’s one like if you survive an explosion I think that only checks if you’re in survival no that’s another thing that you could choose to Chun excuse me um you can well this Failed I tried to do this before but it failed and we’re going to detect the dimension that they’re in yes I know you can do um in dimension run this but this is doing checking if the dimension yeah basically things have been ported from predicates having to do um checking for Biomes and dimensions into being their own thing which makes it a whole lot easier for in game only players and then you’ve got um the inventory stuff so this talks all about um the like the things that you’re wearing on yourself um and another thing that I’ve actually done is I’ve also Done uh clear I’ll just show you that and then uh tool kit so I’ve got um actually five things and though you can’t see the last to ks um I’m not sure why I only four up here they’ve got boots chest plates helmets and leggings um so I could clear myself with Boots yay cleared my gold boots be good if it actually told me what it cleared so let’s say if I put on some leather boots maybe leather leggings and diamond leggings like they are from startingly different um tiers if we do clear this um to get leggings they a would to Remove both of them nice so yeah that’s like a basic idea of what mine does um if you want to have a part two to this video when I’m actually fully recovered from this that was just a short intro introduction um and yeah um I know this Is a different skin this is actually my original skin skin that I had uh to begin with yeah Legacy my old Channel which I created late 2022 um yeah I will show you uh the rest of this if you um if you suggest it in the community tab or in the comments Goodbye Video Information
This video, titled ‘Introduction to Predicates in Minecraft!’, was uploaded by TheKnytemayor on 2023-12-05 07:54:04. It has garnered 14 views and 0 likes. The duration of the video is 00:09:04 or 544 seconds.
If you are interested in me making a tutorial video about predicates or any other Minecraft command feature, please let me know in the comments, or head over to the community tab in my channel and while you’re there, subscribe!