How to Detect Where the Player is Looking in Minecraft

Поделиться
HTML-код
  • Опубликовано: 15 ноя 2024
  • ИгрыИгры

Комментарии • 243

  • @Cl0udWolf
    @Cl0udWolf  4 года назад +40

    SIDENOTE: Original version of facing one command provided by AjaxGB from the MCC

    • @wiktorttt1
      @wiktorttt1 4 года назад +2

      So, mind helping me please? I need something like that but inversed. If zombie looks at player command happens, i tried inversing it but it didn''t work.

    • @wiktorttt1
      @wiktorttt1 4 года назад +2

      omg nvm, made it to work, im so happy

    • @Cl0udWolf
      @Cl0udWolf  4 года назад +4

      @@wiktorttt1u can just mess with who has the face_me tag

    • @marcosruiz4243
      @marcosruiz4243 4 года назад +1

      @@wiktorttt1 Hi! You can tell me as you have done since I want to do something similar but it doesn't work for me either ...

    • @marcosruiz4243
      @marcosruiz4243 4 года назад +1

      @@wiktorttt1 ok dont worry :D

  • @ultimus616
    @ultimus616 4 года назад +15

    First off, thank you! These tutorials help tremendously for anyone trying to teach themselves how to make datapacks like myself. Secondly, I used this to make a sort of teleportation staff, to instantly tp the player to the block they're looking at, so if anyone is wondering what else this can be used for there are a lot of options

  • @AE-ny2zg
    @AE-ny2zg 4 года назад +10

    Seriously these type of RUclipsrs should at least be noticed for actually making us learn something and their effort on it. Thanks man I've watched a lot of your command block tutorials and other videos it really helps me 👌.

  • @aperson3159
    @aperson3159 3 года назад +2

    I was aware of raycasting but not the first method, which gave me an idea for something I was thinking for a few hours...
    After doing simple logic I came to the realization the distance written there (0.3 in the video) is actually detecting whether the target is in a range within(approximately) 180x degrees(where x is the distance) from your forward vector.
    Also supporting by Cloud Wolf saying that putting a value of 1 detects if it's in anywhere you're looking(not quite true due to changing FOV but is true to normal fov. Also not accurate on the Y axis).
    Using this method I managed to test if a target is visible to a specific player, by first running this command with a distance value of 1, and if true, running a raycast facing that target that stops upon a non-passable block to see if it the sight is clear.
    Just thought I'd point it out if anyone ever wants to use this idea

  • @soggeysandwhich7520
    @soggeysandwhich7520 4 года назад +25

    Dude... you... are... a freaking... genius!!! HOW DO YOU DO IT?!?

    • @thecreature7808
      @thecreature7808 4 года назад +3

      being well-versed in algorithms (spec. recursive functions) and ingame knowledge

    • @JBSacayanan
      @JBSacayanan 4 года назад +2

      Do you know this is a damn tutorial for this?

    • @paulhowardbasilan7785
      @paulhowardbasilan7785 2 года назад

      Brain damaged

    • @halilalp1193
      @halilalp1193 Год назад

      If you eat your vegetables you can do it

  • @pepo539
    @pepo539 4 года назад +9

    You are a genius, you deserve more watchers, sadly there isn’t a big amount of people who is interested in commands. Greetings from Chile

    • @pbandi100
      @pbandi100 4 года назад

      Only because they think it's hard but its not

    • @SirKratos_
      @SirKratos_ Год назад

      @@pbandi100 it is indeed hard, like there are commands that requires so much brackets and its confusing af

    • @r4ztm
      @r4ztm 6 месяцев назад

      @@SirKratos_ Nah

  • @CuboidPixel
    @CuboidPixel 4 года назад +22

    Hey Cloud, been a while. Glad to see you're still making sweet content! :)

  • @aPumpkn
    @aPumpkn 2 года назад +1

    thanks for actually explaining instead of just dumping the command, it helps me to actually learn it. great video!

  • @rendezvous_
    @rendezvous_ 10 месяцев назад

    Great video, as a datapack developer I can see a lot of potential with raycasting, especially when wrapped within proper function protection. I've had this video saved to watch for a while, thanks for the info!

  • @dr.cosmos2457
    @dr.cosmos2457 3 года назад

    I watched this video a year ago, having no clue what any of this meant. Today after learning command blocks better, finally get how it works, and it is genius.

    • @0fficialbanana
      @0fficialbanana 3 года назад

      I dont understand how it works.
      Can you help me?

  • @flaviog.7628
    @flaviog.7628 4 года назад +18

    This is beyond science
    I really love your videos and the effort you put into these.
    Well done. :)

    • @ryanrg1545
      @ryanrg1545 3 года назад +1

      this is beyond -science- basic commands.

  • @enderite_fox
    @enderite_fox 3 года назад +2

    I was trying to do something like the doctor who's weeping angel, now I know how to do this, thank you!

  • @Gamesaucer
    @Gamesaucer Год назад

    This only works on the nearest entity, and only on one entity at a time. You can make it work for multiple players and multiple entities with this command:
    execute as @e at @a anchored eyes facing entity @s eyes anchored feet positioned ^ ^ ^1 rotated as @p positioned ^ ^ ^-1 if entity @p[distance=..0.3] run effect give @s glowing 10 10 true
    This basically turns the calculation around, so it's not the player checking what singular entity they're looking at, but each entity is checking whether or not they're in a player's central vision. I wish there was a good way to do something about the angle being too narrow when near a player and too wide when far from a player, but I guess you'd just have to run it a couple of times with different distance ranges on the first @s, and vary how wide the angle is allowed to be. That could get pretty laggy pretty fast (this is already a little laggy I imagine, but it could be made better by just putting a distance limit on that first @s so it stops checking entities that are too far away)

  • @Eyatu
    @Eyatu Месяц назад

    ONE MONTH, I'VE BEEN LOOKING FOR ONE MONTH ON HOW TO DETECT THIS, OMG THANKSSSSSSSSSSS

  • @Zambozoo
    @Zambozoo 4 года назад

    At the cost of accuracy you can alternate between two look functions with a larger range for the selector arguments using distance parameters in only one of them, while the other only checks for air. It decreases the number of selector arguments used.
    Also, if you’re using effects, no one will notice if the effect goes on for a few extra game ticks to keep the look function calls spaced out longer and the calls lighter.

    • @Cl0udWolf
      @Cl0udWolf  4 года назад

      Zambozoo ya I typically run look functions 1/10ticks

    • @VicIsCat
      @VicIsCat Год назад

      @@Cl0udWolf how do you make a function run every x ticks? Scratch that, learned about schedule command

  • @kozacsabaroczy3201
    @kozacsabaroczy3201 3 года назад

    i know the raycasting is more practical but the first one is just so clever!

  • @elderacorn1151
    @elderacorn1151 4 года назад

    Didn't even know a lot of those were command functions available, you've given me a lot of fun experimenting tools

  • @ClayishWall
    @ClayishWall 4 года назад +4

    the command just completely flops when there are more than one player in the area

  • @hydra9070
    @hydra9070 4 года назад +2

    Cloud Wolf is it possible to make a block (using spawn eggs)face the player?
    Great video by the way.

    • @Cl0udWolf
      @Cl0udWolf  4 года назад

      make a block face the player? i mean there r 4 directions u can just face the player use a 4d snap then give approximate /setblocks based on the rotation of it

    • @mrjeremyface6614
      @mrjeremyface6614 4 года назад +1

      You can make an armor stand wear a block.
      /summon armor_stand ~ ~ ~ {Invisible:1,ArmorItems:[{},{},{},{id:"minecraft:observer",Count:1}],HandItems:[{},{}]}
      Then add a repeating command block to make the armor stand look at you.
      /execute as @e[type=minecraft:armor_stand] at @s facing entity @p eyes run tp @s ~ ~ ~ ~ ~

    • @hydra9070
      @hydra9070 4 года назад

      @@mrjeremyface6614 The problem is there needs to be a button on the furnace but thanks for the suggestion.

    • @Cl0udWolf
      @Cl0udWolf  4 года назад

      @@hydra9070 i mean it just depends on ur system but u can always check if player's rotation is between certain ranges and then do a setblock based on that (it would b 4 checks/setblocks)

    • @hydra9070
      @hydra9070 4 года назад

      @@Cl0udWolf Thanks!

  • @sebastiansolis8278
    @sebastiansolis8278 4 года назад +2

    OMG I didn't know dx=0 does that. It's briliant!

    • @Cl0udWolf
      @Cl0udWolf  4 года назад +3

      dx/dy/dz operate on the entity hitbox, distance operates on the entity origin

  • @joshman7269
    @joshman7269 3 года назад +2

    say AW MAN
    tp @s ~ ~100 ~
    kill @s
    *are we just gonna ignore this*

  • @HayaTzuyu
    @HayaTzuyu 4 года назад +1

    I wish bedrock was like this.....

  • @fozzie_shmoo
    @fozzie_shmoo 4 года назад

    Dude you are seriously amazing. So helpful. I had no idea you could do some of this stuff with commands

  • @tardis_master4888
    @tardis_master4888 2 года назад +1

    does this work with non player entities looking at players

  • @Teomaniac
    @Teomaniac 3 года назад +1

    Best Minecraft map: “Don’t Stare”

  • @FunkyToc
    @FunkyToc 4 года назад +3

    wow, strong ! I definitely have to use it !

  • @ch_oke
    @ch_oke 4 года назад

    helpful for scp maps and scp 173 itself

  • @TheFinalformsora
    @TheFinalformsora 2 года назад

    Is test:look still supposed to target an entity when used to detect a block like at 11:19? I can't figure out what the test:look is supposed to be.

  • @octocube2598
    @octocube2598 4 года назад

    scp-173 in minecraft: make a zombie with speed 10, strength 100, and resistance 100 that turns into an armor stand when you look at it

    • @CrabbyGamin1
      @CrabbyGamin1 3 года назад

      Or give it a slowness effect large enough to prevent it from moving

  • @tanguypato481
    @tanguypato481 4 года назад +1

    Hi I loved your video but that don't solve my problem. I just want run a command when a player of a team look at a player of an another team. i've try to change you command but i've failed. (/execute if entity @a[team=a] anchored eyes facing entity @a[team=b] eyes run say YES) sry for the fault i'm not english but i'm looking for a solution everywere.

  • @ManMythLemon
    @ManMythLemon 2 года назад

    not sure if this will be read but to fix the hitbox issue just run another adjacent command that detects for feet instead of eyes. kinda sucks you cant use both commands at once but it is what it is

    • @Cl0udWolf
      @Cl0udWolf  2 года назад

      U can more easily use a dx hitbox method if needed

  • @Nordis_
    @Nordis_ 10 месяцев назад

    Hi can u make a video of how to detect if an entity is near you i have a lot of trouble with that :D

  • @matlollo8514
    @matlollo8514 Год назад

    Thank you for the amazing tutorial! I have a question: If i use this command some blocks away from the command block it won't work, can you tell me why and how can I solve it? I tried to modify the distance but in that case the command activated also if I wasn't looking directly into the mob.

    • @Cl0udWolf
      @Cl0udWolf  Год назад

      make sure u do as (starting entity) at @s

  • @julesjewels6325
    @julesjewels6325 Год назад

    I know for the single command version, expanding the hitbox of the entity/block you wish to look at was addressed, for doing ray casting with the datapack version you made, which was much more accurate, how can you do a similar thing with that?

    • @Cl0udWolf
      @Cl0udWolf  Год назад

      U can use a combination of both. Use the single command then use raycasting to see if there is a line of sight

  • @tellouri604
    @tellouri604 4 года назад +1

    Could I do it on minecraft bedrock?

  • @Serdar54321
    @Serdar54321 4 года назад

    I’m getting back into map making after a long break and old world editors like MCEdit seem to not be working for the latest versions. Are there any editors that did even half of what MCEdit did? Also in your tutorials for data packs, I’m interested in how you would automate some of these processes, for example how would one convert an actual build in a Minecraft world into a structure for a data pack?

    • @Cl0udWolf
      @Cl0udWolf  4 года назад

      Teorik Redstone'cu like a structure file can be made with structure blocks as for Mc edit idk if any new things exist that y I made a nifty item structure saver datapack that lets u move super large structures between worlds

  • @buhpoi8085
    @buhpoi8085 4 года назад

    Thanks for all the information! Great video

  • @babokaa
    @babokaa 3 года назад

    Thank you this was so helpful

  • @yoavsigler4457
    @yoavsigler4457 4 года назад

    Instead of using the range scoreboard you can just use @s[distance=..20]

    • @Cl0udWolf
      @Cl0udWolf  4 года назад

      Yoav Sigler sure if u don’t mind that it’s way slower/laggier

  • @kayathemaya8971
    @kayathemaya8971 4 года назад

    I REALLY needed this! TYSMMMMMM

  • @dankmemelord629
    @dankmemelord629 3 года назад +1

    Bedrock version of the first command?

  • @supergrobling6446
    @supergrobling6446 2 года назад

    Could i make it so that when an other looks at me it detects it? Just wondering if it’s possible

  • @TheSilentknight.1
    @TheSilentknight.1 3 года назад +1

    what app you use for the cod?

  • @cabbage.god1
    @cabbage.god1 3 года назад +1

    can you figure out how to do it in make code for education edition

  • @starpixel3998
    @starpixel3998 3 года назад

    I dont understand anything in the command block section... so the command executes as the player at the eyes. but then facing entity... does that mean it executes at the entity's eyes? and then the anchored feet... what? so it anchores at my feet and moves 1 block infront of it... move what exactly? then it rotates to where my rotation is and then positioned ^ ^ ^-1?????? I dont get it...

    • @Cl0udWolf
      @Cl0udWolf  3 года назад

      It moves towards the entity then facing like the player it goes backwards. If doing those two things ends up close to the player then it is in the FOv specified.
      Ex: entity behind player. U move 1 block towards that entity. Then facing the way the player is u go backwards 1, this nets u 2 blocks behind the player (if the player faces opposite) which would not put u within the 0.6 blocks
      ex: entity direction looking at. Move towards it 1 block. Facing same direction, move backwards 1 block. U will be where u started which is at the player so ur in the distance selector

  • @shaymin7240
    @shaymin7240 4 года назад

    thx i was trying to make a rapid punch but i cloud not find a why to detect when you look at a mob

  • @noahm.9091
    @noahm.9091 4 года назад +2

    can anyone explain why this doesn't work with a custom entity? (raycast method)
    summon zombie ~ ~ ~ {Silent:1b,DeathLootTable:"scp:empty",PersistenceRequired:1b,CanPickUpLoot:0b,Health:100f,IsBaby:0b,CanBreakDoors:0b,Tags:["scp_173"],CustomName:'{"text":"SCP-173","color":"yellow","italic":false}',ArmorItems:[{},{},{},{id:"minecraft:emerald",Count:1b,tag:{CustomModelData:173,peanut:1b}}],ArmorDropChances:[0.085F,0.085F,0.085F,-327.670F],Attributes:[{Name:"generic.max_health",Base:100},{Name:"generic.follow_range",Base:32},{Name:"generic.knockback_resistance",Base:0.8},{Name:"generic.movement_speed",Base:0.8},{Name:"generic.attack_damage",Base:100},{Name:"generic.attack_knockback",Base:0.1},{Name:"zombie.spawn_reinforcements",Base:0}]}
    all other mobs glow when looked at, except this one
    edit: nbt on a mob breaks it, is there a workaround?

  • @swiftkraftalt1948
    @swiftkraftalt1948 4 года назад

    This is the thing that I was looking for YES

  • @mrspiffy8587
    @mrspiffy8587 4 года назад +1

    How do you make a datapack wait, for example, in python, its just sleep(seconds). What would I do for a datapack?

    • @over1757
      @over1757 4 года назад

      /schedule *datapack:your_function* 2s,
      or 40t, for example

  • @ItzYouTube101
    @ItzYouTube101 4 года назад

    Okay I tried to use the datapack version to be accurate. But I don't want entities to glow, I want to teleport the player that looks at that entity to somewhere. So how do I change the selector in `execute as *@e*[dx=0] positioned ~-0.99 ~-0.99 ~-0.99 if entity @s[dx=0] run effect give @s glowing 1 1 true` this command from @e to the player that executes it?
    Probably Cloud Wolf won't see this

    • @ItzYouTube101
      @ItzYouTube101 4 года назад

      Oh ok I fixed it myself I removed the "at @e" thing and it works. Thanks for your help :D

  • @seeit360
    @seeit360 Год назад +1

    If you added a youtube "super thanks" to your page, I would given you some moolah for this awesome tutorial. I don't do patreon stuff, but I do use google play credit cash.

    • @Cl0udWolf
      @Cl0udWolf  Год назад

      I don’t do either, sometimes I live-stream and have donations on other than that I don’t setup much

  • @minecraftonline3572
    @minecraftonline3572 4 года назад +4

    Hey, im trying to create chess now, and i have a question - can i do raycast without functions?

    • @Cl0udWolf
      @Cl0udWolf  4 года назад +2

      Minecraft Online see my newest vid on hitboxes u can but it isn’t accurate

  • @gecko12
    @gecko12 4 года назад +1

    how can i check if there's a block in the way, so if i'm not seeing it, it doesn't activate the command?

    • @Cl0udWolf
      @Cl0udWolf  4 года назад

      gecko I covered that in the video with the raycasting method make it only loop if the block ur in is air

    • @gecko12
      @gecko12 4 года назад

      @@Cl0udWolf ok thanks

  • @ToughDialga007
    @ToughDialga007 2 года назад

    Gonna tell you, i did not know how i could replace items in the containers for my data pack, so the item I want OUT of the game and replaced by another without millions of lines of commands, but ray helped me a ton, I just check for all the containers player looks at and if the container has that item I want to replace is being replaced immediately, before player can even see the change in the block
    Tho, it still sucks I need to check for one slot at the time, so just a chest need 27 lines for each slot

    • @Cl0udWolf
      @Cl0udWolf  2 года назад

      Depends, u can do data remove block x y z Items[{data of the item ur looking for}]

    • @ToughDialga007
      @ToughDialga007 2 года назад

      I actually did if block I look at has specific item in specific slot, that slot gets replaced with the custom item

    • @Cl0udWolf
      @Cl0udWolf  2 года назад

      @@ToughDialga007 ah well replace would require hardcoding kind of? It wouldn’t if u did it right but hardcoding would be most efficient potentially

    • @ToughDialga007
      @ToughDialga007 2 года назад

      @@Cl0udWolf not really familiar with the concept 😅

    • @Cl0udWolf
      @Cl0udWolf  2 года назад

      @@ToughDialga007 the item u can find with an array search and edit it’s .tag, .Count, and .id it would be more efficient that way too but u can only do 1 at a time

  • @enokg7097
    @enokg7097 2 года назад

    Is it possible to make me(the looking player) glow when looking at the entity?

  • @WyattTriesIt7060
    @WyattTriesIt7060 Год назад

    Hey I was confused when you could change the @e to any entity you want and does this work with custom mobs and if you can cand you send me the first command line in the description but just specifically for a sheep so I could edit it? also amazing videos you have helped me alot!

  • @kylemaguire5707
    @kylemaguire5707 2 года назад

    Can’t get this to work. Says there’s a error with the @p being placed where it is. Any help?

  • @spacecat_2476
    @spacecat_2476 13 дней назад

    I understand that it's too late to write, but I want to find out...how do I make the command activate when another player looks at me/into my eyes?

    • @Cl0udWolf
      @Cl0udWolf  13 дней назад

      @@spacecat_2476 what do u mean too late? I have another video that runs on the thing you look at. If u use the predicate method it’s complicated to do efficiently but u could do execute at @s if entity @a[predicate=(looking at predicate)] run say I’m being looked at!

  • @dannycoitus6738
    @dannycoitus6738 4 года назад +1

    THIS IS AMAZING; I was hoping to ask you if this works on bedrock edition? and if not, would this work on a player and how would I make it so that when the player is looked at the player is frozen in position? pleas help me thank you!

  • @wypmangames
    @wypmangames 8 месяцев назад

    is it possible to replace the first command to make it target if player is looking at a specific block?

    • @Eyatu
      @Eyatu Месяц назад

      a block isn't an entity, so sadly no...

  • @ChinmayMurthyX220
    @ChinmayMurthyX220 4 года назад

    I know you said not to comment about this, but unfortunately I still don't get the closing thought. For a multiplayer setting, if /execute as @a at @s anchored eyes run function test:start is run every tick, won't every player have the 'this' tag? If so, how will each ray be able to distinguish which is their sender? Is this the wrong way to do it? Thanks!

    • @Cl0udWolf
      @Cl0udWolf  4 года назад

      Pi E as long Asu don’t do @a inside another sub function the game will need to play all subfunctions including the ray for each player 1 at a time in order so by the time player B starts raycasting player A already got the tag raycastedand removed the tag

    • @ChinmayMurthyX220
      @ChinmayMurthyX220 4 года назад

      @@Cl0udWolf Ohhhhhhhh that makes sense. Thanks!

  • @spaciesthalo9050
    @spaciesthalo9050 2 года назад

    Is there a way for the command version to work on multiple enemies?

  • @Andrew-pq3lj
    @Andrew-pq3lj 4 года назад

    hey is it possible to use the function technique but use say 7 chain command blocks instead of the function if you only want the range to be 7 blocks or less? great vid!

    • @Cl0udWolf
      @Cl0udWolf  4 года назад

      Purple Pumpkin no u can’t use raycasting in command blocks maybe u could try to hardcode it all but that would be a lot and a mess and u would b able to reach through walls

    • @Andrew-pq3lj
      @Andrew-pq3lj 4 года назад

      @@Cl0udWolf thanks for the awnser! your super helpful!

  • @JOENAD0
    @JOENAD0 4 года назад +1

    So pretty much to sum it all up ^ ^ ^ isawesome

  • @yashurishi549
    @yashurishi549 4 года назад

    do it with playsound, when an entity is looking on you a sound starts playing

  • @justfrankjustdank2538
    @justfrankjustdank2538 3 года назад +1

    how do i use the simple one and not make it go through blocks?

    • @Cl0udWolf
      @Cl0udWolf  3 года назад

      U can first detect the entity then start at the player and face the entity (execute facing) and check positioned ^ ^ ^1 if block air repeatedly until u arrive at the entity and if there was all air then it’s tru but this method requires either slow tp approach to go dynamically along the line or 1 command for each possible distance the entity was. Ie my detect command was a range of 3 blocks if that’s true I know it’s around 3 blocks away so use my special command that does positioned ^ ^ ^1 3 times before it looks for the entity

    • @justfrankjustdank2538
      @justfrankjustdank2538 3 года назад

      @@Cl0udWolf thanks, also you did a really good job explaining the weirdness of the commands lol

  • @danboyicac4892
    @danboyicac4892 4 года назад

    Hello CloudWolf, Here is a request:
    There are 10 cows which have the scores 1 to 10,
    and there are 10 parrots which also have the scores 1 to 10,
    how do i teleport all the parrots to the cows with the same scores? (1->1, 2->2,...,10->10)

    • @Cl0udWolf
      @Cl0udWolf  4 года назад +1

      dan boyicac that’s my entity linker command/datapack/vid u just doe execute as @e at @s as @e if score @s id = @e[sort=nearest,limit=1] id run tp @s ~ ~ ~ also addd specification you @e for better effficiency

    • @danboyicac4892
      @danboyicac4892 4 года назад

      Thank you very much :DD
      I got it

  • @radioacxtive1579
    @radioacxtive1579 4 года назад +1

    hey im just asking how do i kill a mob im looking at in specific block range,

    • @CrabbyGamin1
      @CrabbyGamin1 3 года назад

      Sorry for being late, but i do believe you could make the effect caused to observed entities be instant damage in order to kill them.

  • @Graeko
    @Graeko 2 года назад

    How would one add a distance cap to the command code?

  • @catstack2395
    @catstack2395 4 года назад

    i doubt you will see this, but how do you make it so the raycasting ignores blocks that you can still right click something through ex. mushrooms, vines, slabs, etc.?

    • @Cl0udWolf
      @Cl0udWolf  4 года назад

      Cat_Stack Gaming make a block tag and do if block for that block tag

    • @catstack2395
      @catstack2395 4 года назад

      @@Cl0udWolf omg, thank you, i didnt even know custom block tags were a thing till you said this!

  • @aperson3159
    @aperson3159 3 года назад

    I tried this raycasting method for the first time, I had my own tick-based ones but not an instant one. I ran the exact same "hitbox" detection command...
    And it worked.. with an offset of a block.
    By the way the glow I can tell it goes over the hitbox accurately, but it detects it only when I look one block to the negative Z from them. I have no idea why... Even when I made it practically identical to yours it seems that it only detects a mob when I look one block to the negative Z from it

    • @Cl0udWolf
      @Cl0udWolf  3 года назад

      Practically. Meaning I know for a fact u got the detection line wrong XD

    • @aperson3159
      @aperson3159 3 года назад

      I missed a minus sign-
      Whoops
      Sorry to disturb, but I appreciate your fast reply and the fact you even replied, thank you

    • @Cl0udWolf
      @Cl0udWolf  3 года назад

      @@aperson3159 it’s ok ur not the first person to have that exact issue for missing a sign there

  • @thischannelhasbeencancelle3662
    @thischannelhasbeencancelle3662 4 года назад

    Hi! great video, but i need some help, is there any way to make the look line wider? Like make it so that it works if its even in view? I'm trying to make a mob that only moves when out of sight. Thanks in advance. EDIT: By the way, for the command block method, not the raycast.

    • @Cl0udWolf
      @Cl0udWolf  4 года назад

      choclo234 I already discussed that u change the distance=..0.3 selector to higher values

    • @thischannelhasbeencancelle3662
      @thischannelhasbeencancelle3662 4 года назад

      @@Cl0udWolf Sorry i missed it, but thanks!

  • @origamigek
    @origamigek 3 года назад

    damn I got the block version working, so satisfying
    too bad the conical nature of detection makes the long range accuracy drop
    edit: and the sensitivity value can't be smaller than 0.1 apparently

  • @simonbigras8915
    @simonbigras8915 4 года назад

    what datapack program do you use?

  • @origamigek
    @origamigek 3 года назад

    that's pretty smart

  • @zkiller1236
    @zkiller1236 Год назад

    thank you

  • @thesmiley5171
    @thesmiley5171 Год назад +1

    I need your help, if the player is facing a zombie in his eyes, the player die, how can i do that ?

    • @Cl0udWolf
      @Cl0udWolf  Год назад

      Like this with ender man just make it kill and make the cone radius more exact or use raycasting and look for the head

    • @thesmiley5171
      @thesmiley5171 Год назад

      @@Cl0udWolf that doesn't work, probably caus i am in 1.19.2

    • @Cl0udWolf
      @Cl0udWolf  Год назад

      @@thesmiley5171 the commands still work in 1.20

    • @thesmiley5171
      @thesmiley5171 Год назад

      @@Cl0udWolf so why did when i copy the command it do nothing

    • @Cl0udWolf
      @Cl0udWolf  Год назад

      @@thesmiley5171 u did it wrong

  • @DuaYT
    @DuaYT 10 месяцев назад

    is there a way to do that in 1.12?

  • @gekota6950
    @gekota6950 2 года назад

    I'm confusing about ^ ^ ^ (position).
    What is its different between ^ ^ ^ and ~ ~ ~?

    • @Cl0udWolf
      @Cl0udWolf  2 года назад

      ^ is local and ~ is global. as in ~ ~ ~ is X Y Z and ^ ^ ^ is left, up forward (in that it moves based on rotation)

  • @nuclearinferno6456
    @nuclearinferno6456 4 года назад +2

    Does someone knowe how to give items with custom names? In 1.14.4

    • @ΓΘΠΞΧ
      @ΓΘΠΞΧ 4 года назад +3

      /give @p {display:{Name:"[{\"text\":\"\",\"italic\":false}]",Lore:["[{\"text\":\"\",\"italic\":false}]"]}} 1

    • @BoomBoomMushroom
      @BoomBoomMushroom 4 года назад

      Or you can use mcstacker.net

  • @hoover5588
    @hoover5588 3 дня назад

    what about a command for not looking at the entity?

    • @Cl0udWolf
      @Cl0udWolf  3 дня назад

      just invert the predicate. execute unless

  • @Deteng
    @Deteng 2 года назад

    I'm still having trouble understandingthe solution to make it server friendly with the start function

    • @Cl0udWolf
      @Cl0udWolf  2 года назад

      that entirely has to do with how you implement selectors and function order. and not anything to do with this video

  • @BiggieRat420
    @BiggieRat420 3 года назад

    can i use this command in 1.17

  • @aqueleindie
    @aqueleindie 3 года назад

    how can I detect if an entity is near the center of the screen, and not directly in the center of the screen?

    • @Cl0udWolf
      @Cl0udWolf  3 года назад

      i show that w/ the 1 command method

  • @duckwings_
    @duckwings_ 3 года назад

    Is there a way to get the coordinates of a block the player is looking at?

    • @Cl0udWolf
      @Cl0udWolf  3 года назад +1

      Raycast until the raycast is in a block then summon an entity or tp one at the end of the line and store it’s x y z Pos on scores

  • @c0smicskies823
    @c0smicskies823 3 года назад

    does this work on bedrock

  • @TacticalTurtles
    @TacticalTurtles 3 года назад

    What about looking at something though a wall?

    • @Cl0udWolf
      @Cl0udWolf  3 года назад

      The raycasting accounts for wall detection but if u want the approximate u can do approximate, then fire a raycast at the thing to check for walls

    • @TacticalTurtles
      @TacticalTurtles 3 года назад

      @@Cl0udWolf Alright, thanks!

  • @jynkarljosef_youtube
    @jynkarljosef_youtube 2 года назад

    how to make it so their is a limit to how far you are from the entity for it to detect

    • @Cl0udWolf
      @Cl0udWolf  2 года назад

      With raycasting just use a scoreboard with the other use a distance check

  • @Run2Seeun
    @Run2Seeun 4 года назад

    How can I do the opposite? I want to check an entity with a tag when i am NOT looking at it.

    • @Cl0udWolf
      @Cl0udWolf  4 года назад

      Mert AYDIN well just if the method does not succeed then u are not looking at it

  • @Barazoro
    @Barazoro 4 года назад

    How to command Minecraft windows 10 edytion ?

  • @b--w
    @b--w 3 года назад

    Holy cow ur so cool

  • @itz.inferno_11
    @itz.inferno_11 3 года назад

    How to do it in minecraft pe when u look at a zomnie and u die

  • @s.r.g4724
    @s.r.g4724 4 года назад +1

    does this work in mcpe?

  • @cheeese04
    @cheeese04 4 года назад

    Does this work in 1.15.2? Can't seem to get it working, even copy pasting the one command code.

    • @Cl0udWolf
      @Cl0udWolf  4 года назад

      thats the version i did the video in

    • @cheeese04
      @cheeese04 4 года назад

      hm, i dont understand why its not working for me.

  • @buckyisdizzy
    @buckyisdizzy 4 года назад

    gonna make amaterasu

  • @perseussmith3274
    @perseussmith3274 3 года назад

    I was the 1000 like!

  • @spidor2421
    @spidor2421 3 года назад

    how to get the datapack

  • @bearmain4636
    @bearmain4636 4 года назад

    Nice video

  • @scrunkly_9647
    @scrunkly_9647 3 года назад

    how can i make this work on other players?

  • @qqma4791
    @qqma4791 4 года назад

    lol I never thought I would see a video on something this specific