Minecraft Trigger Command [1.19] Tutorial

Поділитися
Вставка
  • Опубліковано 4 чер 2024
  • Learn how to set up/enable the /trigger command in this Minecraft command tutorial for 1.16+ (working in 1.19). I'll show you how to avoid "you cannot trigger this objective yet" (that's where most people get stuck.) /trigger is the closest thing we've got to custom commands in vanilla Minecraft. It's used a lot in /tellraw and books, whenever you want a non-op player to be able to do something via commands. The tricky thing is enabling it. When you first add the criteria it will need to be enabled on a player by player basis. You'll learn how to do that in this video!
    ===l o n k s===
    My Discord Server [ / discord ]
    My Twitch [ / legitimoose ]
    My Editor [ / ciara_millinery ]
    Timestamps:
    0:00 - Demonstration
    0:45 - What is /trigger?
    1:08 - What can it be used for?
    1:22 - Creating the Trigger
    2:04 - "You cannot trigger this objective yet."
    2:19 - Why does this happen?
    2:36 - Enabling Objectives
    3:15 - You should use a datapack.
    3:46 - 1st Command
    4:35 - 2nd Command [danger]
    6:00 - 3rd Command
    6:32 - Explanation of Problem
    6:53 - FIXING 3rd Command
    7:05 - It Works!
    7:11 - What to Do Next
    In this minecraft /trigger command tutorial you'll learn how to enable the trigger command in minecraft! learn how to enable an objective or how to use /scoreboard players enable! I'll show you how to make a kill command in vanilla. This is useful for things like /tellraw, clickable signs, command books, and all that. This is a very easy command, but it can be confusing for beginners. As always I recommend doing this in a datapack, and learning how to make a datapack. Many people use this command for teleporting hope, or to tp home/teleport home or to spawn. E.G /trigger home, or /trigger warp. This video shows how to set up a /trigger kill, so that deopped players can respawn. This tutorial is made for java edition (but bedrock is fairly similar I think), and works for versions 1.13+ (including 1.18, 1.17, 1.16, 1.16.1, 1.16.2, 1.16.3). Enjoy! ~Metadata Soupsmith
  • Ігри

КОМЕНТАРІ • 243

  • @explodingdustrags2952
    @explodingdustrags2952 3 роки тому +209

    “ you’re win!” I laughed so hard lmao

    • @peg8354
      @peg8354 3 роки тому +6

      Hi dad im win

    • @kung_zone
      @kung_zone 2 роки тому +7

      You're laugh

  • @garretswayback4937
    @garretswayback4937 3 роки тому +300

    you are very under-rated. we require more nerds like you.

    • @Legitimoose
      @Legitimoose  3 роки тому +83

      the world could always use more nerds 😎
      thanks!

    • @purplemosasaurus5987
      @purplemosasaurus5987 3 роки тому +18

      @@Legitimoose I made a food datapack, if you have a balanced diet, you get potion effects, you can also make sandwiches! :D

    • @penguyt7624
      @penguyt7624 3 роки тому +2

      i thought you had 7.5k earlier today

    • @AlexLexusOfficial
      @AlexLexusOfficial 3 роки тому +1

      sCoOpA(jk)

    • @deathharvester4990
      @deathharvester4990 2 роки тому +1

      Your need a lot of nerd

  • @ThatGeometryDude
    @ThatGeometryDude 3 роки тому +30

    and now im in an infinite death loop, i should have listened

  • @nineseven4225
    @nineseven4225 3 роки тому +7

    I had used trigger a ton a long time ago, but I'm getting back into Minecraft and my "language of the gods" that people know as "command block speak" is really rusty... This was such a refresher of a video that got my memory jogged just a few moments in. I love the way you divvy your video, and honestly. You've earned yourself a new subscriber my friend!

  • @jeffandmark5373
    @jeffandmark5373 3 роки тому +23

    I am now a datapack creator, I made the TNT Mod and Siege Mode, and it was all inspired by Legitimoose

    • @Legitimoose
      @Legitimoose  3 роки тому +6

      :D

    • @sergiosdarlasis437
      @sergiosdarlasis437 3 роки тому

      @@Legitimoose I am trying to make a datapack to use in my fantasy themed server. (Give elves speed and jump boost, hobbits speed and invisibility etc). How do I make this in a datapack? Do you have a tutorial to how to write code?

    • @trickstertwister612
      @trickstertwister612 2 роки тому +1

      @@sergiosdarlasis437 im not legitimoose, but id say when you select your race, have each race as its own team, and have the command /effect give @e[team=(your race, in this case elves) speed (infinite just put more than 100 minutes) (speed level) and another which is a chain command block which is an exact copy but for jump boost, this makes it so when someone chooses the elf race, the command gives anyone whose the elf race (aka elf team) is given jump boost and speed while all other races do not get it. but im still relatively new and am really late so if you decide to try it tell me if its what you were looking for!
      P.S, this is optional but right after the level of the effect it will ask for an input for weither you want to hide effect particles or not, you dont have to but i'd suggest to, and to do so simply write true at the end.

  • @OneBigSocialExperimentOfficial
    @OneBigSocialExperimentOfficial 3 роки тому +9

    wow your vids are highly underrated. you are my go to youtuber when it comes to learning commands. i like how you use humor in learning commands. it makes learning commands way more fun :)

  • @LordJpeg
    @LordJpeg 3 роки тому +26

    i honestly don't understand how this channel doesn't have minimally 1mil subs yet

    • @Legitimoose
      @Legitimoose  3 роки тому +8

      it's ok, all 12 dedicated command block creators are subscribed
      lol

  • @brick1459
    @brick1459 2 роки тому +1

    Thanks SO MUCH!!! This was SO helpful, I've been struggling on a map for a long time, this totally solved all my problems! This was super easy to understand, and very in-depth! Thanks!

  • @petertracy776
    @petertracy776 11 місяців тому +1

    One of the best tutorials I have found for this!

  • @cocoliciousgamez7317
    @cocoliciousgamez7317 3 роки тому +19

    Fun fact: You can also copy your world so if it goes wrong then you have another world to try again.

  • @Chris_Cross
    @Chris_Cross 2 роки тому +2

    Ok, not only was this actually genuinely helpful, it was entertaining as well. Love the humour.

  • @falopr411
    @falopr411 3 роки тому +2

    This is the best video to create a command. THANKS YOU SO SO MUCH !!!

  • @yf-n7710
    @yf-n7710 3 роки тому +2

    Thanks! This was quite helpful!

  • @luca8983
    @luca8983 3 роки тому +1

    One of better channels of tutorials

  • @itzmehkebab1089
    @itzmehkebab1089 3 роки тому

    Congratulations for 700🎉🎉

  • @capncommie4362
    @capncommie4362 3 роки тому +5

    Dang, you make really really awesome content! I love your videos!

    • @Legitimoose
      @Legitimoose  3 роки тому +1

      Thank you! I'll keep makin' em, just for you :D

  • @beepboop9554
    @beepboop9554 3 роки тому +1

    You're probably the most dedicated Minecraft command tutorials youtuber

  • @darkjelly4059
    @darkjelly4059 Рік тому

    Omg how have I just found this video
    This is so helpful all the time when I try find something like this I have to open up other code and all that stuff but this is just straight vanilla

  • @EpicEdenGaming
    @EpicEdenGaming 3 роки тому +3

    I forgot a command, went to look it up and somehow got this video.....I walked away forgetting why I came but got alot of new 💡. I've been doing videos for 2 months now and I know the struggle is real lol. Then I find you and can see I'm not the only one. Personally I think your videos are extremely entertaining and orginal and you should if not will be appreciated more. Nice job! I'll be sure to keep an eye on you. Thanks EE

    • @Legitimoose
      @Legitimoose  3 роки тому +1

      Thanks for the kind words! (And impressive work on your game so far!)

  • @Chimerabot
    @Chimerabot 3 роки тому +5

    Such an excellent tutorial. I couldn't find this information literally anywhere else. Great job!

    • @SolisWasTaken
      @SolisWasTaken 2 роки тому +1

      woah its that one youtuber that does minecraft stuff

    • @Chimerabot
      @Chimerabot 2 роки тому

      @@SolisWasTaken 0_0

    • @SolisWasTaken
      @SolisWasTaken 2 роки тому +1

      @@Chimerabot 0_o

    • @Chimerabot
      @Chimerabot 2 роки тому

      @@SolisWasTaken This is the first time I've been recognized by someone online aaaaa

    • @SolisWasTaken
      @SolisWasTaken 2 роки тому

      @@Chimerabot Lmao

  • @linuslafond7341
    @linuslafond7341 3 роки тому +1

    When I heard you say that you can make custom commands I got really excited (I don't know how to use functions)

  • @ModEscharPlays
    @ModEscharPlays 3 роки тому +1

    Great tutorials... we have so much we want to add to the Escharon map. Your datapack tute opened some doors for us.

    • @Legitimoose
      @Legitimoose  3 роки тому +1

      Awesome! Definitely a huge upgrade going from command blocks to datapacks!

  • @johnmarkalcebar3474
    @johnmarkalcebar3474 3 роки тому +2

    Keep the. Good work

  • @kyg96
    @kyg96 2 роки тому +1

    I love the Kick's shop music

  • @tempest5343
    @tempest5343 3 роки тому +7

    if you set your kill value to -something with the trigger command it will get to be stuck.
    you can add another chain of commands that resets your kill score to 0 if it goes negative.

  • @salttatt
    @salttatt 3 роки тому +5

    Thank you, this helped a lot. Definitely earned a sub :D

  • @Tintaaa
    @Tintaaa 3 роки тому +1

    Love your videos!

  • @etaithegamer1560
    @etaithegamer1560 3 роки тому +2

    This dude is soooooo underated.

  • @stealthpelt1
    @stealthpelt1 2 роки тому +1

    Thank you, thank you, did a project waaaay back and apparently that enabling setting a number thing is new(ish) and was messing with some old code

  • @pig_master101
    @pig_master101 3 роки тому +2

    You just got like, a subscriber an hour for the past three subs! Congrats!

  • @emilylivingston7359
    @emilylivingston7359 3 роки тому +1

    Hi I recently started working on my first minecraft map. It's a simple project and your videos are the most entertaining and informative I've found. You should make a video on how to use team commands to control the chat if possible

    • @Legitimoose
      @Legitimoose  3 роки тому +1

      Thank you so much! I'm really glad you like my videos. :D
      As for using team commands to control the chat, I'm not _completely_ sure I understand. I'm imagining like server moderation and multiple chat rooms type chat-control. Vanilla has a pretty serious lack of any kind of player chat control unfortunately. I think my /team tutorial covered 90% of what you can do with teams. I love getting suggestions though! It's super helpful to know what kinds of things my viewers want to learn.

  • @dedidedi9132
    @dedidedi9132 3 роки тому +2

    i used to be incredibly command savvy back in the old says of minecraft and i not anymore :/ trying to get back to that state, thanks lol.

  • @OkikamiNara
    @OkikamiNara 3 роки тому +2

    THIS IS WHAT I WANT
    i subscribed

  • @malvadochefe
    @malvadochefe 3 роки тому +1

    Amazing!

  • @angiferrari5826
    @angiferrari5826 Рік тому +1

    OH MY FRICKING GOSH, THIS SINGLE TUTORIAL LETS ME DO A REALLY REALLY REALLY REALLY REALLY (100000 really after) ...REALLY COOL MINIGAME!!!
    LEGITERMOOSE IF YOU DON'T KNOW IT YET I'M TELLING YOU IT: YOU ARE A FRICKING FANTASTIC MINECRAFT UA-camR AND THE MOST PROFESSIONAL MINECRAFT COMMANDS TEACHER EVER, THANK YOU

  • @MrMooni
    @MrMooni 3 роки тому +1

    amazing video haha

  • @x_2remakez932
    @x_2remakez932 2 роки тому

    “When we want to die” I WAS LAUGHING SO HARD I STARTED CRYING

  • @Texlis2178
    @Texlis2178 2 місяці тому

    Thx for this

  • @loganrock7541
    @loganrock7541 3 роки тому +14

    Him writing the kill commands in the command blocks gave me anxiety

  • @celestialturtle6839
    @celestialturtle6839 2 роки тому +1

    The amount of commands you have taught me is about 40% of all minecraft commands which isnt much but i dont know more then 45%

  • @GoQQmode
    @GoQQmode 3 роки тому +5

    I cannot believe that you are getting more subscribers each week I hope you will reach with the Big boys and I hope you will get your Play buttons and your Main account back soon and thanks again with this Tutorial it is so helpful :) - GoQQmode

    • @Legitimoose
      @Legitimoose  3 роки тому +1

      Thanks so much! You're my most encouraging subscriber ;) I'll remember you once I'm with the Big boys lol

    • @GoQQmode
      @GoQQmode 3 роки тому

      I will remember you always in my heart, soul and mind :)

  • @Superpowerjoker
    @Superpowerjoker 2 роки тому +1

    You will reach 100k in the next year
    I am sure

  • @chenwwp9494
    @chenwwp9494 3 роки тому +2

    I have a suggestion for another video, a command that detects players within a area and if the player is detected, then a command will be issued shortly after. (This command will be very useful for story maps) im still waiting for you to reach 1k so keep it up :3

    • @catmilklol8479
      @catmilklol8479 3 роки тому

      simplest way is using an /execute at {player} if block ~ ~-1 ~ {block name} run command stuff,
      this has a lot of cons buut in the end im not a rocket scientist :P

  • @sergiosdarlasis437
    @sergiosdarlasis437 3 роки тому +4

    @Legitimoose Can you make a tutorial video where you show how to use this in a datapack? Like where to write each command?

    • @Aquatic06
      @Aquatic06 2 роки тому +1

      so in load.mcfunction you put the first command
      scoreboard objectives add kill trigger
      and in tick.mcfuntion
      scoreboard players enable @a kill
      kill @a[scores={kill=1..}]
      scoreboard players reset @a[scores={kill=1..}] kill

  • @cheeseburgerinvr
    @cheeseburgerinvr 2 роки тому +1

    Omg finally custom commands

  • @RawCuriosity
    @RawCuriosity 3 роки тому +20

    Me when I got my self in death loop “nooooooooooooooooooo”

    • @RawCuriosity
      @RawCuriosity 3 роки тому +1

      Thx , this is the most likes I have ever had

    • @Vaihly
      @Vaihly 3 роки тому +2

      Korega requiemu da.
      *Proceeds to put this dude in a death loop*

    • @Elec-citrus
      @Elec-citrus 3 роки тому +1

      It Will Be More Terrifying If You Place The Command Block In The Forceload Chunks

  • @DannyTheost
    @DannyTheost 2 роки тому +1

    THANK YOU

  • @wessltov
    @wessltov 2 роки тому +2

    I actually got myself in a deathloop using the datapack, so I couldn't help laughing from knowing I would have softlocked my favorite world if I had used commandblocks

  • @_theSwan
    @_theSwan 2 роки тому +1

    This video is awesome. Btw, can you make a video on doing the same commands but in a datapack? Thanks!

    • @Legitimoose
      @Legitimoose  2 роки тому

      Just slap the same 3 commands in a function that runs every tick!

  • @anuarahmad3081
    @anuarahmad3081 3 роки тому +1

    Thank uou legitmoose

  • @mouinmakary
    @mouinmakary Місяць тому

    hey @Legitimoose,
    So, you're saying if we reset the "kill" objective for @a (meaning all players) it will disable it. But resetting it for a specific one with @a[scores={kill=1..}] (meaning just the player with the "kill" objective equals 1) it will just reset the value.
    isn't it better to just set it to 0 ?

  • @FriendlessStudios
    @FriendlessStudios День тому

    you could also set chain blocks to conditional and it will also work

  • @hiBest_Blackline
    @hiBest_Blackline 2 роки тому +4

    Just make the Reset command block "conditional" then it will only activate If the previous command was triggered

  • @arkgamesph2641
    @arkgamesph2641 2 роки тому +1

    Can u make a tutorial on how to code the function startgame in command block

  • @Aquatic06
    @Aquatic06 2 роки тому

    thx so much

  • @rudysomera828
    @rudysomera828 3 роки тому +1

    Can you make a video about "5 or 10 Useful commands using Command Block for sever (java)" can't find any of them , hope you make one.
    If there's any way other than using Command Block, then I'm happy if there's one

  • @fjshmysk
    @fjshmysk 2 роки тому +1

    will this work even if the command block is very far away from the nearest player? (let’s say the nearest player is 10k blocks away). Not sure if command blocks function even if the chunk it is placed on isn’t loaded.

  • @sa-hq8jk
    @sa-hq8jk 3 роки тому +2

    Can you make a stopwatch in this way then?

  • @DuckGoesViral
    @DuckGoesViral 2 роки тому +7

    the thing i am wondering about the data packs is, how do you make chaining commands in a datapack?

    • @-penguinify
      @-penguinify Рік тому

      every line you can write a command

  • @antoniotazajimenez7505
    @antoniotazajimenez7505 10 місяців тому +1

    whenever im usin repeating command blocks that usses /kill , i put them in the "needs redstone" option and use a BUTTON to test it, this way, if i mess up, it wont be irreversible.
    and once ive solved the problem, i enable"always active"

  • @royaldonut9064
    @royaldonut9064 Рік тому +1

    Hey when my scoreboard goes to 1, it immediately resets to 0 without activating the kill command what do I do?

  • @TacoMan578
    @TacoMan578 Рік тому

    I need to use a command which requires no selector, The command is /worldborder add 2 how ould i do this?

  • @cianreyamper9530
    @cianreyamper9530 2 роки тому

    Does the "kill" trigger command kills all players or only the player that typed in the trigger command?

  • @Blax1212
    @Blax1212 Рік тому

    i have q about command I want when I throw item it activate command how i can do it

  • @jackh1241
    @jackh1241 2 роки тому +1

    how can you do it in datapack
    can you make a tutorial on that?

  • @scientifreak5
    @scientifreak5 3 роки тому +2

    Hey legitimoose, can you please specify where I put the trigger command in my datapack? Like do I put it in tick.mcfunction or load.mcfunction?

    • @Aquatic06
      @Aquatic06 2 роки тому +1

      so in load.mcfunction you put the first command
      scoreboard objectives add kill trigger
      and in tick.mcfuntion
      scoreboard players enable @a kill
      kill @a[scores={kill=1..}]
      scoreboard players reset @a[scores={kill=1..}] kill

  • @fallingsand4323
    @fallingsand4323 2 роки тому

    I'm trying to make a thing that if I drop a Emerald it dissapears and gives someone a effect but it doesn't work how do I make it

  • @VoptoYT
    @VoptoYT Місяць тому

    does this work for 1.20.5 also can you pls do a video on the new 1.20.5 changes to commands

  • @aplixen9212
    @aplixen9212 Рік тому

    how do you do the second and last command for tagged people

  • @mckovach7285
    @mckovach7285 2 роки тому

    is there a way that if i wear some kind of armor, the command block activates?

  • @judahstarkenburg7841
    @judahstarkenburg7841 Рік тому

    instead of adding that last command block, you can set the second command block to conditional

  • @burningsoul7781
    @burningsoul7781 3 роки тому +1

    so how do i do this without op, if i need op... to add myself?

  • @benjaminmesserer2471
    @benjaminmesserer2471 3 роки тому

    Subbed

  • @WoowieNeedsMilk
    @WoowieNeedsMilk 3 роки тому +2

    6:06 This is Requiem

  • @Uthimentius
    @Uthimentius Рік тому

    get this person their silver play button

  • @igotbored8931
    @igotbored8931 2 роки тому +1

    I need a way to tell if someone enters a biome and start a command

  • @Just_A_Simple_Time_Traveller

    Nice

  • @theblackruby
    @theblackruby 2 роки тому

    How do you remove the sidebar though

  • @theunknownonetuo2033
    @theunknownonetuo2033 3 роки тому +1

    Is there a command to detect which player does something first?
    For example,
    Player A did something first = x points to the scoreboard
    then,
    Player B did the same thing, but is not the first one to do so = x-1 points to the scoreboard

    • @nyancat5495
      @nyancat5495 Рік тому

      Idk if this makes sense but
      PA (Player A) Gets 1 point
      NEXT COMMAND
      PB (Player B) Gets -1 point
      Hope this helps!

  • @EmuTheEmo
    @EmuTheEmo 2 роки тому +2

    I'm trying to use a trigger to make a type of toggle but can't figure it out. I'm trying to have it that you use the toggle and it displays a title above the actionbar. Anyone got any tips?

    • @Legitimoose
      @Legitimoose  2 роки тому

      Have a second hidden scoreboard for the actual toggling. When you activate the trigger check the other score.
      If it's 0 -> Set it to 1 and turn on your actionbar thingy
      If it's 1 -> Set it to 0 and turn off your actionbar thingy
      That's the idea behind most toggle mechanisms! There are other ways to do it, but this is the easiest to understand I think!

  • @JavaJones
    @JavaJones 3 роки тому

    Almost 700!!!!

  • @captainironbat8193
    @captainironbat8193 Рік тому

    I recently was working on a data pack and tested a kill command on a command block... I was really out of it that day. It ended up killing me every tick, luckily I had auto respawn turned on and was able to run commands in chat. I knew roughly the position of the command block. I used /execute unless block x y z air run say yep to contour the surface. So I'd know where the command block was once I found it I used setblock x y z air and I finally broke free of the death cycle.

  • @UnderFlow_official
    @UnderFlow_official 3 роки тому +1

    Hi there, can u do a tutorial about, if its day than give u blindness?

    • @Anonymous-ty7wd
      @Anonymous-ty7wd 3 роки тому

      Actually you can make a predicate with that condition, this channel had a video about them
      Or if you are old-fashioned, you could just use a daylight detector to make some redstone system with command blocks

  • @Kei-bl8vk
    @Kei-bl8vk 3 роки тому

    Hello, I have some question, what if the trigger isn't yet activated and also can a function trigger a trigger without it enabled?
    if not how do I enable all triggers?

    • @Legitimoose
      @Legitimoose  3 роки тому

      Hi! A function can change a trigger with /scoreboard players set, just like a normal scoreboard. I think to enable all of them you have to enable each individually sadly ;_; You can have it re-enable at the end of it's own function though, to make it a bit more efficient.
      Hope this helps!

    • @Kei-bl8vk
      @Kei-bl8vk 3 роки тому

      @@Legitimoose Thank you!!

  • @OkikamiNara
    @OkikamiNara 3 роки тому +2

    Sadly we can't have custom command like
    /die or /hub

  • @SquidCoder
    @SquidCoder 2 роки тому +5

    /trigger kill for when you want to "respawn"

  • @superturtle6458
    @superturtle6458 3 роки тому +2

    how to i make a tp command out of this?

  • @lunaponta594
    @lunaponta594 2 роки тому +1

    i love your accent so much

  • @clementzhou9454
    @clementzhou9454 3 роки тому +1

    Can you teach us how to make a useful thing? Like the compass in dream's manhunt, I think it will help us understand how to put all the commands together. Thanks

    • @Legitimoose
      @Legitimoose  3 роки тому

      That's a good idea! I'd love to make more project-y videos in the future. Incidentally, the manhunt compass is only one command ;^)
      /execute at [speedrunner's username] run setworldspawn ~ ~
      Slap that in a repeating command block and your manhunt compass is complete! lol

  • @somelovelypix
    @somelovelypix 2 роки тому

    nice

  • @vtqys
    @vtqys 2 роки тому

    LEGIT MOOSE

  • @thelastname6795
    @thelastname6795 4 місяці тому

    good video but i think kill was the worst example to pick as your scoreboard was the exact same formatting and work as the actual command

  • @petr__
    @petr__ Рік тому

    But what if I write /trigger kill set 0. It won`t work!
    I recommend to check whether player used command with storing success of using trigger by command block. If trying was successful, player had not used command. Unless, he did. And then you can do what you want.
    it more difficult but it works in any case

  • @gabri3736
    @gabri3736 2 роки тому +1

    How did you set the reborn checkpoint?

  • @aikonickle
    @aikonickle 3 роки тому

    How about a home tp one

  • @SparkKnight556
    @SparkKnight556 6 місяців тому

    If something goes wrong, you can always start a server on your pc with commands turned off, break the not working command blocks, then reimport the world back into your game. :)

  • @cochie5573
    @cochie5573 Рік тому

    How do I make this in a datapack?

  • @Boo-sz1xh
    @Boo-sz1xh 10 місяців тому

    how to make /trigger kill to /kill ?

  • @CalebPearce-bh9kx
    @CalebPearce-bh9kx 8 місяців тому

    you can instead have the command block on a button and press it to see if it works

  • @lorcah
    @lorcah 2 роки тому

    *guyes hes win!*