You guys smart ninja zero zero zero here today I’m going to be teaching you how to make custom commands I’m calling them custom commands by using the slash trigger command now the way these work is it’s a little bit different than you would expect but first thing you need to Do before you do anything swing a new scoreboard it’s we’re gonna make a new objective this is in the snapshots 1.13 hopefully you’re there this is actually in the pre-release which is terribly laggy but it’s pretty much the same for all version so we want to make a new Objective and we are going to call this objective for this video we are going to be making a command that will automatically set down a a piece of stone it’s very creative I know we want to call it set stone and that will be our command and then for the type you Want the type to be trigger now if I try and right now slash trigger set stone set 5 you’ll notice it says this so what you want to do to fix that is give yourself a command block you want to switch that always active right away First thing you want to do and you want to do scoreboard players enable a day you want to enlist your tags or do we don’t have any so if you want I want to use it a day if you want you to use it at s y @p for closes player your name Etc random player we’re gonna do at a set stone and this will enable it and then allows us to write slash trigger said stone set 5 if you have a slight space here just break the whole command just so just keep that in mind now if I do slash trigger said stone set 50 it will work now we actually want to fix that nice little chat message scoreboard or slash game roll command block output false you have a few different options if it’s a single player your best bet is probably just to take another command and do something Like this I make a conditional way every time I enable him say yo shizzle if I do this say yo shizzle because this updates allowing it now if you want per player which we do we don’t want to just set up each stone it in a specific location we Want to do it per player first thing you’re gonna wanna do is you’re gonna want to do score or you’re gonna want to do execute as at a scores and now you basically it allows the player to set their own score so we have set stone equals 1 if you’re stalling score is Equal to 1 I forgot the bracket I’m like this want to run set block minus 1 now it did work you can see it said it but we want to do add the players location we’re going to change that to an ass now wherever I walk with my score 1 it will Set it one of course changes back by doing set stone set 0 and you’ll see we already have a command set up now in most cases you’ll do some like as your thing and then a test but for this we’re using ant just because we don’t need Anything else now if you want it to reset it let’s say only wants once to unlock all you have to do is do simple scoreboard players set at a set stone to zero and this will basically if I do slash trigger set stone set 1 that’s it And now here’s a perfect example of one you might want to do that I’ve added a nice simple line objective using the same thing then of course aligning me with my XYZ and then teleporting me based on that and setting it back so you can see that say I’m standing randomly And a middle of the box applies to the line it will align me to the center of the block really nice and neat and just I mean that’s a pretty basic example of what you can do now let’s say I wanted to do a little bit more with the Original example the set block then you’ll notice I didn’t do the dots the dots mean that this continues I did use the dots for this I want to make it I’m gonna remove this command because we don’t want to set some we want to make paths with this we want to make stone Paths so I’m gonna do is I’m going to make another command but instead if your scores – I can just I’m gonna run a fill command setting it in a radius of two kind of so now it’s actually nine blocks being placed but we’re gonna do negative 1 negative 1 1 1 and we also want negative 1 for this now if I run square board or slash trigger set stone set and I’m going to set it to you’ll see wherever we run we got a nice little stone if I set it back to 1 it will do The single path and of course we’re not done yet so let’s say I’m going to add another command for granite oh I have to do was just add another number and remember you can even use negative numbers for this so we’re going to do slash trigger set stone set negative 1 You’ll notice we have a nice granite path now gone that’s actually really ugly also you may want to set it to air because otherwise you can do stuff like this if you want to go down you have to do it stuff like this well that’s just a tip And of course there’s a lot more you can do with this now these are just some very basic examples of what you can do you can do a lot more with this you could make it so different particles come off the player you could make it so different they have different effects That they choose to be a different kit they can choose to change basically anything if you want them to be able to update anything triggers are the way to go and of course you can do some basic stuff is to like going to spawn just teleporting the player that has the Score all that really basic stuff with Slash trigger and this is there’s it’s super easy to set up it’s super useful anyways I hope this tutorial helped you guys if it did be sure to click like you’re new subscribe remember to join the discord server at links in the Description if you need any help you can always leave your questions or concerns in the comments and of course following me on Twitter so yep well guys that’s it anyways yeah hope this tutorial helped you and I’ll see you now on bye Video Information
This video, titled ‘How to make CUSTOM COMMANDS with /trigger | Minecraft: Command Block’, was uploaded by smartninja000 on 2018-06-12 00:10:44. It has garnered 165946 views and 2311 likes. The duration of the video is 00:07:05 or 425 seconds.
Today we take a look at how to use /trigger command to make custom commands!!! If you enjoy the video, be sure to click the like button!
Follow me on Twitter → https://twitter.com/smartninja000 Join my Discord → https://discord.gg/uGsRDq2 My Merch → https://teespring.com/stores/smartninja000 Wizard Pack Wiki → https://the-wizard-pack.weebly.com/
if you enjoyed the video please leave a like as it shows to me that you want to see more of this! And leave a comment if you have any suggestions or anything!
The video clip was captured and uploaded by AVerMedia Game Capture HD II.