Minecraft Trigger Command [1.19] Tutorial

Sdílet
Vložit
  • čas přidán 20. 05. 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
  • Hry

Komentáře • 242

  • @explodingdustrags2952
    @explodingdustrags2952 Před 3 lety +209

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

  • @garretswayback4937
    @garretswayback4937 Před 3 lety +299

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

  • @ThatGeometryDude
    @ThatGeometryDude Před 3 lety +30

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

  • @nineseven4225
    @nineseven4225 Před 3 lety +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!

  • @OneBigSocialExperimentOfficial

    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 :)

  • @brick1459
    @brick1459 Před 2 lety +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!

  • @jeffandmark5373
    @jeffandmark5373 Před 3 lety +23

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

    • @Legitimoose
      @Legitimoose  Před 3 lety +6

      :D

    • @sergiosdarlasis437
      @sergiosdarlasis437 Před 3 lety

      @@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 Před 2 lety +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.

  • @cocoliciousgamez7317
    @cocoliciousgamez7317 Před 3 lety +19

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

  • @petertracy776
    @petertracy776 Před 10 měsíci +1

    One of the best tutorials I have found for this!

  • @falopr411
    @falopr411 Před 3 lety +2

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

  • @Chris_Cross
    @Chris_Cross Před 2 lety +2

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

  • @LordJpeg
    @LordJpeg Před 3 lety +26

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

    • @Legitimoose
      @Legitimoose  Před 3 lety +8

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

  • @yf-n7710
    @yf-n7710 Před 3 lety +2

    Thanks! This was quite helpful!

  • @itzmehkebab1089
    @itzmehkebab1089 Před 3 lety

    Congratulations for 700🎉🎉

  • @luca8983
    @luca8983 Před 3 lety +1

    One of better channels of tutorials

  • @darkjelly4059
    @darkjelly4059 Před rokem

    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

  • @tempest5343
    @tempest5343 Před 3 lety +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.

  • @capncommie4362
    @capncommie4362 Před 3 lety +5

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

    • @Legitimoose
      @Legitimoose  Před 3 lety +1

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

  • @beepboop9554
    @beepboop9554 Před 3 lety +1

    You're probably the most dedicated Minecraft command tutorials youtuber

  • @Chimerabot
    @Chimerabot Před 3 lety +5

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

    • @SolisWasTaken
      @SolisWasTaken Před 2 lety +1

      woah its that one youtuber that does minecraft stuff

    • @Chimerabot
      @Chimerabot Před 2 lety

      @@SolisWasTaken 0_0

    • @SolisWasTaken
      @SolisWasTaken Před 2 lety +1

      @@Chimerabot 0_o

    • @Chimerabot
      @Chimerabot Před 2 lety

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

    • @SolisWasTaken
      @SolisWasTaken Před 2 lety

      @@Chimerabot Lmao

  • @OkikamiNara
    @OkikamiNara Před 3 lety +2

    THIS IS WHAT I WANT
    i subscribed

  • @johnmarkalcebar3474
    @johnmarkalcebar3474 Před 3 lety +2

    Keep the. Good work

  • @kyg96
    @kyg96 Před 2 lety +1

    I love the Kick's shop music

  • @tatpsalt5208
    @tatpsalt5208 Před 3 lety +5

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

  • @EpicEdenGaming
    @EpicEdenGaming Před 3 lety +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  Před 3 lety +1

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

  • @loganrock7541
    @loganrock7541 Před 3 lety +14

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

  • @ModEscharPlays
    @ModEscharPlays Před 3 lety +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  Před 3 lety +1

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

  • @linuslafond7341
    @linuslafond7341 Před 3 lety +1

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

  • @etaithegamer1560
    @etaithegamer1560 Před 3 lety +2

    This dude is soooooo underated.

  • @Texlis2178
    @Texlis2178 Před měsícem

    Thx for this

  • @pig_master101
    @pig_master101 Před 3 lety +2

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

  • @GoQQmode
    @GoQQmode Před 3 lety +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  Před 3 lety +1

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

    • @GoQQmode
      @GoQQmode Před 3 lety

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

  • @stealthpelt1
    @stealthpelt1 Před 2 lety +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

  • @emilylivingston7359
    @emilylivingston7359 Před 3 lety +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  Před 3 lety +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.

  • @DannyTheost
    @DannyTheost Před 2 lety +1

    THANK YOU

  • @dedidedi9132
    @dedidedi9132 Před 3 lety +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.

  • @malvadochefe
    @malvadochefe Před 3 lety +1

    Amazing!

  • @angiferrari5826
    @angiferrari5826 Před rokem +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 CZcamsR AND THE MOST PROFESSIONAL MINECRAFT COMMANDS TEACHER EVER, THANK YOU

  • @cheeseburgerinvr
    @cheeseburgerinvr Před 2 lety +1

    Omg finally custom commands

  • @Superpowerjoker
    @Superpowerjoker Před 2 lety +1

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

  • @MrMooni
    @MrMooni Před 3 lety +1

    amazing video haha

  • @Tintaaa
    @Tintaaa Před 3 lety +1

    Love your videos!

  • @arkgamesph2641
    @arkgamesph2641 Před 2 lety +1

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

  • @chenwwp9494
    @chenwwp9494 Před 3 lety +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 Před 3 lety

      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

  • @hiBest_Blackline
    @hiBest_Blackline Před 2 lety +4

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

  • @Aquatic06
    @Aquatic06 Před 2 lety

    thx so much

  • @RawCuriosity
    @RawCuriosity Před 3 lety +20

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

    • @RawCuriosity
      @RawCuriosity Před 3 lety +1

      Thx , this is the most likes I have ever had

    • @Vaihly
      @Vaihly Před 3 lety +2

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

    • @Elec-citrus
      @Elec-citrus Před 3 lety +1

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

  • @anuarahmad3081
    @anuarahmad3081 Před 3 lety +1

    Thank uou legitmoose

  • @x_2remakez932
    @x_2remakez932 Před 2 lety

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

  • @WoowieNeedsMilk
    @WoowieNeedsMilk Před 3 lety +2

    6:06 This is Requiem

  • @fjshmysk
    @fjshmysk Před 2 lety +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.

  • @rudysomera828
    @rudysomera828 Před 3 lety +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

  • @sergiosdarlasis437
    @sergiosdarlasis437 Před 3 lety +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 Před 2 lety +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

  • @wessltov
    @wessltov Před 2 lety +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

  • @celestialturtle6839
    @celestialturtle6839 Před 2 lety +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%

  • @jackh1241
    @jackh1241 Před 2 lety +1

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

  • @antoniotazajimenez7505
    @antoniotazajimenez7505 Před 10 měsíci +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"

  • @_theSwan
    @_theSwan Před 2 lety +1

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

    • @Legitimoose
      @Legitimoose  Před 2 lety

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

  • @cianreyamper9530
    @cianreyamper9530 Před 2 lety

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

  • @mouinmakary
    @mouinmakary Před měsícem

    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 ?

  • @sa-hq8jk
    @sa-hq8jk Před 3 lety +2

    Can you make a stopwatch in this way then?

  • @VoptoYT
    @VoptoYT Před 23 dny

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

  • @royaldonut9064
    @royaldonut9064 Před rokem +1

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

  • @CalebPearce-bh9kx
    @CalebPearce-bh9kx Před 8 měsíci

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

  • @mckovach7285
    @mckovach7285 Před 2 lety

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

  • @benjaminmesserer2471
    @benjaminmesserer2471 Před 3 lety

    Subbed

  • @DuckGoesViral
    @DuckGoesViral Před 2 lety +7

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

    • @-penguinify
      @-penguinify Před rokem

      every line you can write a command

  • @lunaponta594
    @lunaponta594 Před 2 lety +1

    i love your accent so much

  • @TacoMan578
    @TacoMan578 Před 11 měsíci

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

  • @SquidCoder
    @SquidCoder Před 2 lety +5

    /trigger kill for when you want to "respawn"

  • @origamigek
    @origamigek Před 2 lety +1

    haha I did it anyway!
    and I'm not stuck in a loop!

  • @Boo-sz1xh
    @Boo-sz1xh Před 9 měsíci

    how to make /trigger kill to /kill ?

  • @Blax1212
    @Blax1212 Před rokem

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

  • @vtqys
    @vtqys Před 2 lety

    LEGIT MOOSE

  • @aplixen9212
    @aplixen9212 Před rokem

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

  • @burningsoul7781
    @burningsoul7781 Před 3 lety +1

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

  • @igotbored8931
    @igotbored8931 Před rokem +1

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

  • @lorcah
    @lorcah Před 2 lety

    *guyes hes win!*

  • @petr__
    @petr__ Před rokem

    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

  • @captainironbat8193
    @captainironbat8193 Před rokem

    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.

  • @Uthimentius
    @Uthimentius Před 11 měsíci

    get this person their silver play button

  • @fallingsand4323
    @fallingsand4323 Před 2 lety

    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

  • @scientifreak5
    @scientifreak5 Před 2 lety +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 Před 2 lety +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

  • @judahstarkenburg7841
    @judahstarkenburg7841 Před rokem

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

  • @superturtle6458
    @superturtle6458 Před 3 lety +2

    how to i make a tp command out of this?

  • @isaaclapp3252
    @isaaclapp3252 Před 3 lety +1

    Much want java but there's some things in java that r not in bedrock such as datapacks.

  • @thelastname6795
    @thelastname6795 Před 3 měsíci

    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

  • @OkikamiNara
    @OkikamiNara Před 3 lety +2

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

  • @theblackruby
    @theblackruby Před 2 lety

    How do you remove the sidebar though

  • @SparkKnight556
    @SparkKnight556 Před 6 měsíci

    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. :)

  • @Kei-bl8vk
    @Kei-bl8vk Před 3 lety

    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  Před 3 lety

      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 Před 3 lety

      @@Legitimoose Thank you!!

  • @aikonickle
    @aikonickle Před 3 lety

    How about a home tp one

  • @mdj5782
    @mdj5782 Před 9 měsíci

    Why have I never heard about this

  • @Dornick_
    @Dornick_ Před 2 lety +1

    if you want to do this useing commands its safer to just use a tp instead of actualy killing the player

  • @muba_7306
    @muba_7306 Před 3 lety +1

    7:00 or u can put command block in conditional mode :)

  • @EmuTheEmo
    @EmuTheEmo Před 2 lety +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  Před 2 lety

      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!

  • @cochie5573
    @cochie5573 Před rokem

    How do I make this in a datapack?

  • @somelovelypix
    @somelovelypix Před 2 lety

    nice

  • @theunknownonetuo2033
    @theunknownonetuo2033 Před 3 lety +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 Před rokem

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