How to make NPC walk and follow you in Minecraft🧐🤔 | Tutorial (Check Desc)

แชร์
ฝัง
  • เผยแพร่เมื่อ 11 ม.ค. 2025
  • เกม

ความคิดเห็น • 151

  • @Zeninari
    @Zeninari 2 ปีที่แล้ว +45

    alright i solved the 1.19 mystery since it changed the execute command. im on switch(bedrock) so here is what i figured out.
    1. find the block you want to place the command block on then write the cordinates
    2. next get an npc spawn egg and rename what you want their name to be in the anvil (npc by default)
    3. in the command block once again make sure its on repeat and here is the command i used:
    >>> Execute at @e[name=npcnamehere] run tp @e[name=npcnamehere] ^ ^ ^0.1 facing @p > command block at 0 58 0 > and npc named test

    • @Zeninari
      @Zeninari 2 ปีที่แล้ว +1

      just realized i can name items and the same thing happens. this may be the most cursed thing i own now lol

    • @ZyunLi
      @ZyunLi  2 ปีที่แล้ว +2

      Execute comamand changed?

    • @ZyunLi
      @ZyunLi  2 ปีที่แล้ว +2

      Nice, pinning this for future viewers

    • @Zeninari
      @Zeninari 2 ปีที่แล้ว

      ​@@ZyunLi Yes It Now Uses More Twards Java Syntax I Believe. Which Is Why It Looks Different If You Looked At The Command I Put.

    • @Zeninari
      @Zeninari 2 ปีที่แล้ว

      @@ZyunLi For Example Broken Down: At Says Where To Run It And Run Is A Command You Want To Run. Theres Many Other Parts Like Align But I Don't Want To Complicate Things. Just Hope This Can Help People Who Are Struggling Due To 1.19 Changing How It Works ^^'

  • @PaczRoblox
    @PaczRoblox 2 ปีที่แล้ว +18

    Thank you! I’m doing a school competition on Minecraft (I’m a student btw) and I need to code npc to walk!

  • @ZyunLi
    @ZyunLi  2 ปีที่แล้ว +10

    Here are some reminders:
    1. Make sure you put the correct/exact command in command block..
    2. Make sure your npc name is the exact same you put in your command block.. if your npc has cap letters in its name, cap the word too in the command block.
    3. You need to put "Setblock command" in your npc advance box.. setblock it with redstone block or air beside or behind or above the command block, air and redstone block must be in
    different command box, for example: [Follow me] > setblock (the coordinate) redstone_block... do the same for air but replace redstone block to air.
    4. make sure the command block faces side or top
    5. Make sure your in 1.17+ or 1.18+
    7.Make sure your command block is set to repeat mode
    tips:
    Turn on the previous output so you can see if there something wrong
    Also here is the command:
    Execute @e[name=YourNpcName] ~ ~ ~ tp @e[name=YourNpcName] ^ ^ ^0.1 facing @p
    Copy the command so you don't need to go back and fourth copying the command
    Have a nice day!

  • @blueturtle111
    @blueturtle111 2 ปีที่แล้ว +2

    Thank you so much for this tutorial! Just subbed bc you're amazinggg

  • @O-gi5kk
    @O-gi5kk หลายเดือนก่อน

    LETS GOOO I FINALLY FOUND HOW TO MAKE MOBS FOLLOW YOU

  • @breaderthanever3797
    @breaderthanever3797 2 ปีที่แล้ว +1

    awsome tutorial! great for someone like me.

  • @spkjaaj13013
    @spkjaaj13013 2 ปีที่แล้ว +1

    very good!
    but i have a question:
    If i make a repetitive command_block always active that make the npc teleport to a villager, AND the villager have the command of this video, it will have gravity?
    Since i notice the npc don't fall down the redstone_block
    And have an method to make the npc collide and not pass solid blocks?
    thank you!

    • @ZyunLi
      @ZyunLi  2 ปีที่แล้ว +1

      The only problem is that npc fly when you go below 1 block.
      To fix that you need to go near the npc
      (But for me. the npc doesn't fly since i changed version)

    • @spkjaaj13013
      @spkjaaj13013 2 ปีที่แล้ว

      @@ZyunLi thanks!

  • @erw0_r
    @erw0_r 2 ปีที่แล้ว +1

    OMG IT WORKED I CAN MAKE A MINECRAFT GAME NOW!!! GOT NEW SUB

  • @MishMashStudios
    @MishMashStudios 20 วันที่ผ่านมา

    is there a way to do this without command blocks? I'm trying to make an NPC for an add-on that will follow you like this and I want it to be able to applied to any world

  • @crossedkittyy
    @crossedkittyy 2 ปีที่แล้ว +1

    i need mine to walk by itself like without following me

  • @ariyn08
    @ariyn08 2 ปีที่แล้ว +1

    Its works thanks brother✌️

    • @ZyunLi
      @ZyunLi  2 ปีที่แล้ว

      Im glad i helped y- Hey!, Your not playing minecraft

  • @tarxing527
    @tarxing527 2 ปีที่แล้ว

    thanks tip man now i can make
    Minecraft Unrelease Update

  • @Cont-în-m2e
    @Cont-în-m2e 10 หลายเดือนก่อน

    Hello, can you tell me how to make the characters walk by themselves and say simply

  • @donavynfehd2166
    @donavynfehd2166 2 ปีที่แล้ว +1

    Do you have any idea on how to make it stay a little bit away? Instead of it glitching when it gets to me?

    • @Zeninari
      @Zeninari ปีที่แล้ว

      i have an idea im testing it now . . . because i also wanted to know this.

    • @Zeninari
      @Zeninari ปีที่แล้ว

      so i found a solution im working on trying to completely fix it if i cant then i hope it not doing it unless you get close helps. (it stops in front of you but if you walk closer to the npc it starts glitching again)
      edit: fixed it and i added in a bonus im still working on, aka adding proper gravity for now its just . . . well ill explain
      SO commands for now:
      this is the original repeat command modfied:
      execute at @p unless entity @e[rm = 0.01. r = {how far you want it to stop from you}] at @e[name = {npc name}] run tp @e [name = {npc name}] ^ ^ ^0.1 facing @p
      for now for gravity you need another repeating command block to add this, make sure its conditional and always active, then type this (no way around this and will update if i find a better way:)
      Execute at @e [name = {npc name}] run tp @e [name = {npc name}] ~ ~{floor coordinates} ~ facing @p
      since i'm on superflat mine is set to -60, and yes this stops flying but it doesnt react with colision or go up stairs or blocks yet . . . i have an idea to add collision but i dont know about going up and down blocks normally . . .
      edit: collision detection is possible but its beyond my ability . . . going to see if i can come up with a better gravity solution

    • @Zeninari
      @Zeninari ปีที่แล้ว +1

      heres my commands for reference:
      1st Command Block:
      execute at @p unless entity @e[rm = 0.01. r = 2] at @e[name = Geo] run tp @e [name = Geo] ^ ^ ^0.1 facing @p
      2nd Command Block:
      Execute at @e [name = Geo] run tp @e [name = Geo] ~ ~-60 ~ facing @p

    • @chariebelletiempo3604
      @chariebelletiempo3604 ปีที่แล้ว

      ​@@ZeninariPlease make a TH-cam tutorial, I find it easier to understand on videos.
      I will sub once you upload, remind me too

    • @Zeninari
      @Zeninari ปีที่แล้ว +1

      @@chariebelletiempo3604 i can't record my switch sadly but i will check if it's still working as of 1.20

  • @Inactive_channel_deleted
    @Inactive_channel_deleted 2 ปีที่แล้ว +4

    That ncp is a god, he is flying

    • @ZyunLi
      @ZyunLi  2 ปีที่แล้ว

      Indeed

  • @elvistheking_1935
    @elvistheking_1935 7 หลายเดือนก่อน +1

    Why this doesnt work😭😭😭 im playing on ps4

  • @marjoriedaniel4452
    @marjoriedaniel4452 7 หลายเดือนก่อน

    Didn’t work for me. It gave me a sign tax error.

  • @kaiquinhoplay6442
    @kaiquinhoplay6442 2 ปีที่แล้ว

    The same happens to every mob, or just npc?
    Example: I want a pig following me.

    • @ZyunLi
      @ZyunLi  2 ปีที่แล้ว

      Depends
      But im pretty sure it won't work unless you got the "holding item that will activate the command" thingy.
      Yes it's possible

  • @ArnoldBellen-ee4mt
    @ArnoldBellen-ee4mt ปีที่แล้ว +1

    does it work on betrock minecraft?

  • @Hellobunnyfans
    @Hellobunnyfans 6 หลายเดือนก่อน +1

    Thank you❤❤❤

  • @sagelavendergaming8061
    @sagelavendergaming8061 2 ปีที่แล้ว +1

    Hey what if we summon the npc with egg please tell me i already summon one with the egg

    • @ZyunLi
      @ZyunLi  2 ปีที่แล้ว +1

      It won't work if you summon it using egg.. i tried it
      but maybe in the newest version of the game will work ig

    • @sagelavendergaming8061
      @sagelavendergaming8061 2 ปีที่แล้ว +1

      @@ZyunLi bro it still don't work do you have any other method for following npc without command block

    • @ZyunLi
      @ZyunLi  2 ปีที่แล้ว +1

      @@sagelavendergaming8061 I will try my best

    • @sagelavendergaming8061
      @sagelavendergaming8061 2 ปีที่แล้ว +1

      @@ZyunLi actually currently i am working on a adventure map that's why i need it

    • @ZyunLi
      @ZyunLi  2 ปีที่แล้ว +1

      @@sagelavendergaming8061 Cool!, i want to try it soon!.
      Also your question..its impossible to do it without command block because the main function is the command block

  • @kuchen4226
    @kuchen4226 2 ปีที่แล้ว

    You know if this still works in 1.19 because they changed the /execute command and it doesnt work in my world

  • @rawrdino3864
    @rawrdino3864 ปีที่แล้ว

    Hi i tried everything and it still doesn't move i looked over everything and it was correct does it matter if the command block was originally impulse?

    • @ZyunLi
      @ZyunLi  ปีที่แล้ว

      the execute command changed after 1.19, what you see in the video was 1.18 which is before the execute update
      check the pinned comments

  • @Maggie-ke5ql
    @Maggie-ke5ql 6 หลายเดือนก่อน

    You can use the commad in the chat it’s /give @p spawn_egg 1 51

  • @Boyfriend-NG
    @Boyfriend-NG 2 ปีที่แล้ว

    BRUH I PUT EVERYTHING IN CORRECTLY AND IT DIDN'T WORK.

  • @TwinkieATwinkie
    @TwinkieATwinkie 11 หลายเดือนก่อน

    It doesn't work I trit it 😢

  • @kaseynator3698
    @kaseynator3698 2 ปีที่แล้ว +1

    Is there a way to make is not spam the chat when they follow you?

    • @ZyunLi
      @ZyunLi  2 ปีที่แล้ว +1

      Ofc!, You need to use this command
      /Gamerule commandblockoutput false

  • @Sir_hufflepuff
    @Sir_hufflepuff 2 ปีที่แล้ว

    Document says I did it wrong

  • @bloodyx2924
    @bloodyx2924 ปีที่แล้ว

    It did not work for me :(

  • @hollieliddiard1849
    @hollieliddiard1849 2 ปีที่แล้ว

    I tried it, it doesn't work

  • @snazz_2200
    @snazz_2200 2 ปีที่แล้ว

    idk why its not working for me im in switch is that a problem?

    • @ZyunLi
      @ZyunLi  2 ปีที่แล้ว

      Switch? Bedrock? Right?. It should be bedrock and has NPC feature. And also try to watch carefully especially the command, you need to copy it, word by word

  • @Dance_with_me_2
    @Dance_with_me_2 6 หลายเดือนก่อน

    Can it work on 1.21❤

  • @AliBounds
    @AliBounds 2 ปีที่แล้ว +1

    Works only on pc correct? Which is Java edition

    • @ZyunLi
      @ZyunLi  2 ปีที่แล้ว

      Unfortunately, It only works on bedrock and education edition since java doesn't have npc

  • @sergcreate
    @sergcreate 2 ปีที่แล้ว

    its not working 😢

  • @glamconcepts9103
    @glamconcepts9103 2 ปีที่แล้ว

    It did not work😢

  • @nandiniverma2267
    @nandiniverma2267 2 ปีที่แล้ว +1

    It works Thanks👍👍😊

    • @ZyunLi
      @ZyunLi  2 ปีที่แล้ว

      You're welcome!.. im glad i helped you

  • @combowombo8313
    @combowombo8313 2 ปีที่แล้ว

    This work on 1.18 and phone?

    • @ZyunLi
      @ZyunLi  2 ปีที่แล้ว

      I guess yes. Imma try later if it works in 1.18+
      Then show the result later

  • @miljenkovillager
    @miljenkovillager ปีที่แล้ว +1

    Thank you 🎉🎉🎉🎉🎉

  • @blackcatbubba
    @blackcatbubba 2 หลายเดือนก่อน

    It did not work

  • @Vallinno
    @Vallinno 2 ปีที่แล้ว

    IT not work me

  • @jkesss
    @jkesss 9 หลายเดือนก่อน

    I did not work

  • @superworld5689
    @superworld5689 2 ปีที่แล้ว +2

    Огромное тебе спасибо!!!
    очень помог)

    • @ZyunLi
      @ZyunLi  2 ปีที่แล้ว

      Я рад, что помог вам!

  • @as1bezirci
    @as1bezirci 2 หลายเดือนก่อน

    new subscribe new server name:FoxCraft

  • @cuptr33
    @cuptr33 6 หลายเดือนก่อน

    Rip don’t work

  • @Giuseppe_2010ct
    @Giuseppe_2010ct 10 หลายเดือนก่อน

    what is this man, is not even good, it flies man

  • @ashleytalkz2much
    @ashleytalkz2much 2 ปีที่แล้ว

    Does not worl

  • @Sujiscool
    @Sujiscool 2 ปีที่แล้ว

    setblock -5 -60 -4 redstone_block

  • @Simp_cameraman12355
    @Simp_cameraman12355 2 ปีที่แล้ว

    Bro why my not waking

    • @ZyunLi
      @ZyunLi  2 ปีที่แล้ว +1

      1. Make sure you put the correct/exact command in command block..
      2. Make sure your npc name is the exact same you put in your command block
      3. You need to put "Setblock command" in your npc advance box.. setblock it beside or behind the command block
      4. make sure the command block faces side or top
      5. Make sure your in 1.17+ or 1.18+
      tips:
      Turn on the previous output so you can see if there something wrong

  • @Canada22247
    @Canada22247 2 ปีที่แล้ว

    I did it didn’t work🥺

    • @ZyunLi
      @ZyunLi  2 ปีที่แล้ว

      Check the pin comment

  • @therealkanisk
    @therealkanisk 2 ปีที่แล้ว

    I actually don't understand

  • @ied47112
    @ied47112 2 ปีที่แล้ว

    Dude thats education edition

  • @gummytummy7260
    @gummytummy7260 2 ปีที่แล้ว

    It didn’t work :(

    • @ZyunLi
      @ZyunLi  2 ปีที่แล้ว +2

      Im so sorry that you didn't understand because of my grammar or something else :(
      But don't worry!.. i will recreate the video.
      And also make sure you watch the whole video without skipping to understand it :)

    • @gummytummy7260
      @gummytummy7260 2 ปีที่แล้ว

      @@ZyunLi thanks!

    • @gummytummy7260
      @gummytummy7260 2 ปีที่แล้ว

      @@ZyunLi ...

  • @Sebmorris-17f
    @Sebmorris-17f 7 หลายเดือนก่อน

    Didn’t work

  • @Rajni_Vikas_Dwivedi
    @Rajni_Vikas_Dwivedi 3 หลายเดือนก่อน

    Epic

  • @rileygriffin4886
    @rileygriffin4886 ปีที่แล้ว

    /execute @e[name=Nice] ~ ~ ~ tp @e[name=Nice] ^ ^ ^0.1 facing @p

  • @rosalierodriguez7361
    @rosalierodriguez7361 ปีที่แล้ว

    142, 63, 158

  • @vedasawh9067
    @vedasawh9067 2 ปีที่แล้ว

    Omg is this Java 😭NOOOOOO

    • @ZyunLi
      @ZyunLi  2 ปีที่แล้ว

      Nahhhhh this is not java nor bedrock.
      This is minecraft ¯⁠\⁠_⁠(⁠ツ⁠)⁠_⁠/⁠¯

  • @Bangteray
    @Bangteray ปีที่แล้ว

    -253, 64, 30

  • @ZZ.Andrei
    @ZZ.Andrei 2 ปีที่แล้ว

    Feick

  • @kelliegrieve5895
    @kelliegrieve5895 9 หลายเดือนก่อน

    SO FAKE IM TIRED OF FAKE VIDEOS

  • @Sujiscool
    @Sujiscool 2 ปีที่แล้ว

    setblock -5 -60 -4 air

  • @Sujiscool
    @Sujiscool 2 ปีที่แล้ว

    Execute @e[name=Nice] ~ ~ ~ to @e[name=Nice] ^ ^ ^0.1 facing @p

  • @susbaca
    @susbaca 2 ปีที่แล้ว

    Execute @e[name=Nice] ~ ~ ~tp @e[name=nice] ^ ^ ^0.1 facing @p

  • @miramah03
    @miramah03 2 ปีที่แล้ว

    how do you change the speed of the npc @YMCraftbloxYT

    • @ZyunLi
      @ZyunLi  2 ปีที่แล้ว

      Actually i don't know but maybe you can put effect like speed or slowness effect on your npc

    • @miramah03
      @miramah03 2 ปีที่แล้ว

      @@ZyunLi true thank you for the idea i will try it but sadly my npc (johnny) is lost i dont know how he got lost but... idc about him lol

    • @ZyunLi
      @ZyunLi  2 ปีที่แล้ว +1

      @@miramah03 sadly.. i tested the effect earlier and it didn't work or maybe i put the effect command wrong
      Also
      Rip Jhonny

    • @miramah03
      @miramah03 2 ปีที่แล้ว

      @@ZyunLi RIP...

  • @QThinh-vi5xc
    @QThinh-vi5xc ปีที่แล้ว

    execute @e[name=nice] ~~~ to @e[name=nice] ^ ^ ^0.1 facing @p

  • @huaweigaming4150
    @huaweigaming4150 2 ปีที่แล้ว

    -47 -61 -10

  • @Sing-o8b
    @Sing-o8b ปีที่แล้ว

    It didnt work :(

  • @Luzil-426
    @Luzil-426 ปีที่แล้ว

    Execute @e[name=Nice] ~ ~ ~ tp @e[name=Nice] ^ ^ ^0.1 facing @p

  • @UmarTechnical-jt8qw
    @UmarTechnical-jt8qw 2 ปีที่แล้ว

    Execute @e[name=Nice] ~ ~ ~ to @e[name=Nice] ^ ^ ^0.1 facing @p