Detect Sneaking with Commands! (Minecraft Bedrock Tutorial)

  Рет қаралды 28,408

Guppyduck

Guppyduck

Күн бұрын

Пікірлер: 146
@ZioZs_Builds
@ZioZs_Builds Жыл бұрын
This helps alot, im making a puzzle room for 2 players. The puzzle works as follows. One player has to get from one side of the room to another. But doesnt know the path. Both sides of the room are seperated by space but are connected via barrier blocks. If the player falls they are teleported back to the beginning. Player 2 is given the key to the puzzle and is suppose to guide player 1. The problem is player one can crouch and never fall off and can make it to the end by crouching and guessing where to go. With this command tho, if they crouch, i can make it to where they get teleported back to the start. Its perfect!
@Jervenshmine
@Jervenshmine Жыл бұрын
I didnt even think of the command potential with the 1.5 block sneaking, this is amazing!
@jaysoncoleman3963
@jaysoncoleman3963 5 ай бұрын
Here's a slight improvement, If Anyone needs it this will stop it from detecting swiming aswell! 🙂: execute as @a at @s positioned ~ ~1.6 ~ unless entity @s[dx=0] positioned ~ ~-0.9 ~ if entity @s[dx=0] run say Sneaking!
@keisakustudios
@keisakustudios Ай бұрын
can you detect elytra flight with this? they both make the hitbox 1 block tall
@jaysoncoleman3963
@jaysoncoleman3963 Ай бұрын
@kaysakuhitoshi507 No that isn't Yet possible in Bedrock Edition, Without animation_controllers, Molang or using the ScriptAPI, You could try asking on r/MinecraftCommands.
@endercat363
@endercat363 8 күн бұрын
It works with every thing
@jaysoncoleman3963
@jaysoncoleman3963 7 күн бұрын
​@@keisakustudios You Could Invert the check I've added to prevent it from detecting Crawling "positioned ~ ~-0.9 ~ if entity @s[dx=0]"
@frozenconcrete1338
@frozenconcrete1338 11 ай бұрын
This is such a clever way to detect if a player is sneaking.
@remegildacabalit
@remegildacabalit Жыл бұрын
Bro cracked at commands.😎😎😎😎👍👍
@Sin2ber
@Sin2ber 8 ай бұрын
Ikr
@Javajuice008
@Javajuice008 4 ай бұрын
Nah bros cranking 90s on these commands
@Primo-re2wo
@Primo-re2wo Жыл бұрын
Thank you very much bro, I've been trying to find this guide for a long time
@Guppyduck
@Guppyduck 11 ай бұрын
Glad I could help
@Robotbamboo
@Robotbamboo 4 ай бұрын
@@Guppyduckthat great man, but when I swim it will detect too , how to fix?
@Timothy_Cope
@Timothy_Cope Жыл бұрын
Freaking sweet! I can now go down Mario pipes using commands.
@Supertoy5000YT
@Supertoy5000YT 8 ай бұрын
You just saved my life man, thank you so much for making this!
@LandoGame
@LandoGame Жыл бұрын
Very quick and right to the point, It helped a lot. (even if I don't fully understand everything)
@LsLoo01-f3w
@LsLoo01-f3w 5 ай бұрын
/execute as @a at @s positioned ~~1.5~ unless entity @s[dx=0] run
@Color1738
@Color1738 Жыл бұрын
Those cubes look pretty cracked 👀
@orcawarrior4396
@orcawarrior4396 6 ай бұрын
this was really helpful information however an improvement you can make to it is by adding "/execute at @a run execute blocks ~~~ ~~1~ air run" to the start will remove the action from swimming and crawling. I really hope this is useful!!!
@M4Xdestroyer
@M4Xdestroyer 6 ай бұрын
Thanks I'll definitely try it out! If you don't mind, could you tell me how this command works? The new( newer? ) execute commands confuse me. I stopped playing for a couple years so all these new functions( sub functions? Idk ) confuse me.
@jaysoncoleman3963
@jaysoncoleman3963 5 ай бұрын
I Would Use: execute as @a at @s positioned ~ ~1.6 ~ unless entity @s[dx=0] positioned ~ ~-0.9 ~ if entity @s[dx=0] run say Sneaking!
@obi-wankenobi6995
@obi-wankenobi6995 Жыл бұрын
Combined this with your old rocket command, made remote bombs, throw one out, back up, crouch to detonate.
@GROWSNAPOFFICIAL
@GROWSNAPOFFICIAL 6 ай бұрын
Honestly I'm not too good when it comes to coordination... But this makes a lot of sense. Your hitbox grows smaller which means it won't detect you since it is detecting exactly above your head so when you crouch it won't notice. Plus it is a @s translator so it won't bug with multiple entities. It's genius but I can't help to feel I could have made this if would have just decided to learn abit about the cord specifiers. But either way, I might learn them to see what else you could make... I will definitely use this alot in soke of my projects now. This also told me how to cancel out certain effects. I have no clue why I never thought of it, again something that I would probably find out through trial and error.
@droide1
@droide1 Жыл бұрын
execute as @a at @s positioned ~~1.5 ~ unless entity @s[dx=0] run
@HardMODE-
@HardMODE- 10 ай бұрын
LEGEND!
@MakBonez
@MakBonez Жыл бұрын
Thank you, appreciate the help
@marnellilagazo8680
@marnellilagazo8680 6 ай бұрын
Gruppyduck and browncoat67 is a command genius 😂
@marcmarpuri5211
@marcmarpuri5211 5 ай бұрын
NEW LEGEND IS BORN
@Commander_cody-f8d
@Commander_cody-f8d 3 ай бұрын
Bro this is amazing thanks so much
@EtechMC
@EtechMC Жыл бұрын
TYSM!
@reincarnwow2883
@reincarnwow2883 Жыл бұрын
Is there a way to automatically cancel sneaking after a certain action (like effect or sum) that was caused by sneaking? Im trying to make somewhat of a parry mechanic, also what about detecting a player attacking? (Without the armor/shield method)
@candymanisbetter
@candymanisbetter Жыл бұрын
I don't really know a whole lot of commands and basic game mechanics, but as far as I know you can't really do that. I think it's something like changing a player's nbt data, which isn't possible on bedrock. Maybe some niche game mechanics could put you upright but as far as I know there aren't many ways to go about doing that.
@michigames1271
@michigames1271 Жыл бұрын
Try /execute as @a at @s positioned ~~1.5~ if entity @s[hasitem={item=shield,location=slot.weapon.offhand}] unless @s[dx=0] run (The command)
@mate5875
@mate5875 4 ай бұрын
In order to automatically cancel sneaking, i think you can setblock water at player’s feet and immediately replace the water with air. I tested it, and it worked
@reincarnwow2883
@reincarnwow2883 4 ай бұрын
@@mate5875 ty, but i don't do command blocks as much as i did before tho, maybe it'll come in handy later
@MuffinX2
@MuffinX2 Жыл бұрын
Dang this is very helpful… time to flex on my friends >:]
@M4Xdestroyer
@M4Xdestroyer 6 ай бұрын
Thanks alot man! I just got back into doing commands after several years of inactivity and work. Anyways, I was trying to figure how I could make a custom weapon, in the world I'm making, have a special move. Basically I iust took what you had but added the 'hasitem' and 'location' condition. Now when you're holding the weapon and crouch you can assign a special move, i.e invisibility. If you are still reading this, can someone explain to me how @s is not producing an error? How does the @s not get confused with the command block. Is because of the 'as' function?
@nikolime07
@nikolime07 4 ай бұрын
Would this command work with sleeping if you just lower the height of the 1.5 block?
@augustmancuso2272
@augustmancuso2272 Жыл бұрын
THANK YOU
@CosmicPlayz-xx8ev
@CosmicPlayz-xx8ev 4 күн бұрын
Ima use this for a invis when sneaking feature
@NayPixelZ
@NayPixelZ 8 ай бұрын
I've been looking for this command for a long time, thank you very much, but can you write the command when the player runs and gets the effect?
@Novisor_mc
@Novisor_mc 6 ай бұрын
Oh my gosh.. i remembered trying and watching every tutorial as possible back in 2022 but i gave up.. nkw i didn't even know this is possible now! But is there a way to run the command instead of sneaking you need to jump?
@Guppyduck
@Guppyduck 6 ай бұрын
You can check if a player is in the air, but you can’t tell the difference between jumping and falling
@BlitzCrxsher
@BlitzCrxsher 9 ай бұрын
Bro you have to be on the same height level as the cmd block. This doesn't work because I have a battle arena kinda shit with a massive Basement filled with all my "Superpower Elemental Abilities" commands, I'm not placing a command block directly onto the arena, plus if the arena has Mountains and shit it also don't work
@relax_4u
@relax_4u 9 ай бұрын
In that case you need to make an an other command that detects on what y is a player and then destroy the "sneaking commands" and replace them to the same y as the player Its not as hard as it sounds you just need 1structure block and maybe 1 or 2 execute commands max 6 because command blocks have a distance limit and maybe commands that are in the y=30 Will not work at the same x and z coordinates on the y eg 180
@zackmartin6041
@zackmartin6041 5 ай бұрын
You don't have to be on the same level as the command block. It's reading your position, not the command block's position
@zackmartin6041
@zackmartin6041 5 ай бұрын
If the command blocks stop working because you're too far away from them (too high) then simply add a ticking area to the command block.
@bade_kier1383
@bade_kier1383 Жыл бұрын
Can u do? A detection when player is exposed to rain They get healing effect or damaged I have a tags called fire people and water people And i want it that when fire people gets exposed to rain they get damaged meanwhile when water people get exposed to rain they get healing effect Do u know how?
@johnjim3600
@johnjim3600 Жыл бұрын
Its not possible,sorry
@mhmmkay
@mhmmkay 9 ай бұрын
revolutionary
@drrroden
@drrroden 8 ай бұрын
Nice video but can you please release a tutorial for this command but on certain cordinates, not everywhere
@Guppyduck
@Guppyduck 8 ай бұрын
Check out my selectors tutorial
@CursorMcInternet
@CursorMcInternet 2 ай бұрын
how do i make it so that when you crouch woa u can phase through walls.
@Sophia617
@Sophia617 Жыл бұрын
How do i do jump detection
@deez4040
@deez4040 Жыл бұрын
Any way to detect crawling inside of cauldron or composter? Trying to make it so you get invisibility while doing so
@Guppyduck
@Guppyduck Жыл бұрын
If you swapped the 1.5 to 1 it would probably work with crawling
@deez4040
@deez4040 Жыл бұрын
@@Guppyduck thank you very much! I appreciate your content!!
@mokilasto
@mokilasto 8 ай бұрын
Thank you 👍
@Zylix-x2g
@Zylix-x2g 6 ай бұрын
Hey so I'm doing the command but when I uncrouch it still has the effect
@SieonnPlayz
@SieonnPlayz Жыл бұрын
thanks!
@aguywhoeatstacos4285
@aguywhoeatstacos4285 Жыл бұрын
Thank you so much
@nenitasolmiran8995
@nenitasolmiran8995 11 күн бұрын
"Command Genius"
@XynoIs
@XynoIs 2 ай бұрын
Is there a way to check if someone is sprinting?
@StylophoneVR
@StylophoneVR Ай бұрын
Are you cool with it if I use this not directly but for making a saw blade appear in front of you when you crouch I’ll give you credit ( it’s for a video on my other channel)
@Guppyduck
@Guppyduck Ай бұрын
@@StylophoneVR Go right ahead
@StylophoneVR
@StylophoneVR Ай бұрын
@@Guppyduck aight thx
@TheCommandWizard
@TheCommandWizard Ай бұрын
@@Guppyduckthis is my other channel btw
@TheCommandWizard
@TheCommandWizard Ай бұрын
@@Guppyduckdo you know which a @a/@s I change to @a[tag=____]
@irfanzmt123
@irfanzmt123 Ай бұрын
is it accurate?
@LsLoo01-f3w
@LsLoo01-f3w 5 ай бұрын
/execute as @a at @s positioned ~~1.5~ if entity @s[dx=0] run effect @s invisibility 0 0
@FortunaQ_Thawne.Official
@FortunaQ_Thawne.Official 8 ай бұрын
i remember TechZero from the discord lol
@phazeyy_brah
@phazeyy_brah 11 ай бұрын
Can you make this with tags like for this to work for a specific tag?
@Guppyduck
@Guppyduck 11 ай бұрын
Yes
@ZioZyoN
@ZioZyoN Жыл бұрын
are u able to detect right click?
@johnjim3600
@johnjim3600 Жыл бұрын
Yes
@evanfunny
@evanfunny Жыл бұрын
10/10
@lostmastermas3793
@lostmastermas3793 Жыл бұрын
Could we maybe get a death detection command if you haven't done one already??? I'm trying to make it so when players die, they get teleported to the nether, and could really use a tutorial on death detection.
@Guppyduck
@Guppyduck Жыл бұрын
For your case you could just set the players spawn to the nether, but I could do a full tutorial on death detection methods
@lostmastermas3793
@lostmastermas3793 8 ай бұрын
Ironically, i actually figured it out! I just made it so it executes when a player doesn't have an item in their inventory, then gives said item back when needed.
@luzellemoller6621
@luzellemoller6621 10 ай бұрын
i need help, im trying to gife a person infis when they crouch(if they hafe a certain tag)
@luzellemoller6621
@luzellemoller6621 6 ай бұрын
@AnErrorOccured... thanks but I found awaybalready
@HuseyinAboras
@HuseyinAboras 4 ай бұрын
/execute as @a at @s positioned ~~1.5~ unless entity @s[dx=0] run summon lightning_bolt ^^^15
@justwildan3963
@justwildan3963 Жыл бұрын
does this work when doing it in the air
@Enderzz_
@Enderzz_ 8 ай бұрын
Hey bro how do I make it so it only works if someone has a specific tag and only they will get the effect
@jonasg.bisgaard1086
@jonasg.bisgaard1086 7 ай бұрын
Should by able to say “as @a[tag=?] at @s”.
@AnonymousUser-p6f
@AnonymousUser-p6f 9 ай бұрын
Help it says "Execute subcommand unless entity test failed."
@jonasg.bisgaard1086
@jonasg.bisgaard1086 7 ай бұрын
It should still function, it’s just that’s what it’s saying when you’re not sneaking.
@edwinclune8206
@edwinclune8206 5 ай бұрын
its saying execute subcommand if entity test failed
@anime_boy341
@anime_boy341 6 ай бұрын
i can’t get it to work, it keeps saying “sub command unless entity test failed”
@Burnstream10
@Burnstream10 2 ай бұрын
Are you on java or bedrock?
@anime_boy341
@anime_boy341 2 ай бұрын
@@Burnstream10bedrock
@linzayyathant2005
@linzayyathant2005 5 ай бұрын
We can do sneaking sniper scope without player.json and script.json now
@AnaSchulz-h3j
@AnaSchulz-h3j 8 ай бұрын
Thanks
@noobcraft148
@noobcraft148 Жыл бұрын
gonna make it so you get invis and speed
@ElixumAlt
@ElixumAlt 8 ай бұрын
There’s a little issue with this though. The detection of sneaking also detects when a player is swimming as well.
@ElixumAlt
@ElixumAlt 8 ай бұрын
Oh wait nvm after like 10m of tampering with the command, I solved it. execute as @a[tag=Acrobat] at @s rotated ~ 0 unless block ^ ^ ^ water unless block ^ ^ ^-1 water positioned ~~1.5~ unless entity @s[dx=0] run scoreboard players test @s AcrobatSkill 30
@ashdashadow
@ashdashadow 8 ай бұрын
Hey, there is also adding on a dy test for example, say I want to only have haste when sneaking. The command would be: Execute as @a at @s positioned ~~1.5~ unless entity @s[dx=0] at @s positioned ~~1~ if entity @s[dy=0] run effect @s haste 1 0 true - this will stop them from having crawling, flying with an extra, or even swimming detected.
@sand3000
@sand3000 Жыл бұрын
May i ask what "unless entity" do?,
@ngocnguyenminh7109
@ngocnguyenminh7109 10 ай бұрын
if entity you[hasitem={item=diamond_sword,location=slot.weapon.mainhand}] run effect @s invisibility 0 255 true unless entity you[hasitem={item=diamond_sword,location=slot.weapon.mainhand}] run effect @s invisibility 1 0 true If you have a diamond sword on your right hand, it'll clear your invisibility effect. If you don't, it'll give you invisibility effect. Like have/don't have or sneaking/standing
@BedrockGateBreaker
@BedrockGateBreaker Жыл бұрын
YEEEES
@Noctumbrae
@Noctumbrae Жыл бұрын
is there any way to avoid this command detect swiming? it detects sneak but also detects swiming :/
@johnjim3600
@johnjim3600 Жыл бұрын
Add unless block ~~~ water
@Noctumbrae
@Noctumbrae Жыл бұрын
@@johnjim3600 the thing is, the player needs to be in the water. What im doing is when the player equips the iron boots and sneaks it drowns (it gets pushed to the bottom of the ocean) but its kinda buggy because when hes swiming he keeps getting tp to the ground
@johnjim3600
@johnjim3600 Жыл бұрын
@@Noctumbrae there's no real way to fix it if that's the case,simple solution,stay away from water😀👍,but all jokes aside,I don't know how to fix it
@johnjim3600
@johnjim3600 Жыл бұрын
@@Noctumbrae sorry..m
@UrbanBricks
@UrbanBricks Жыл бұрын
Couls he used for cool abilities.
@kisha4709
@kisha4709 Жыл бұрын
Can you do a detect running tutorial?
@VoidfluxOrb
@VoidfluxOrb Жыл бұрын
I'm not sure if that is possible
@TrippinRainDrops
@TrippinRainDrops Жыл бұрын
Omg this is prefect
@LoraFlares
@LoraFlares 2 ай бұрын
Broken & I added run /say hi nothing happened in chat
@Katiey10
@Katiey10 9 ай бұрын
does this work in multi player?
@Guppyduck
@Guppyduck 9 ай бұрын
Yes
@Katiey10
@Katiey10 9 ай бұрын
@@Guppyduck for some reason it doesn't work like when I want it to only detect a specific player sneaking. any thoughts?
@samzam7890
@samzam7890 8 ай бұрын
@@Katiey10 do tags 🏷️
@Katiey10
@Katiey10 8 ай бұрын
@@samzam7890 oh this worked ty 🗿🙏
@samzam7890
@samzam7890 8 ай бұрын
@@Katiey10 np you can do different tags on different players so its good to know. :)
@esther-dianamenke9276
@esther-dianamenke9276 5 ай бұрын
banger
@skruffedpretzelz
@skruffedpretzelz Жыл бұрын
sick
@richardyfragallilourenco5286
@richardyfragallilourenco5286 Жыл бұрын
Can you do some damage please?
@Guppyduck
@Guppyduck Жыл бұрын
I'm not sure what you mean
@Legtlizrd
@Legtlizrd Жыл бұрын
This is good but it malfunctions when i am in multiplayer
@Quoshu
@Quoshu Жыл бұрын
execute as @a at @s positioned ~~1.5~ unless entity @s[dx=0] run execute as @s at @s positioned ~~1~ if entity @s[dx=0] run [Command] Try this, it also removes swimming from the sneak detection
@gaonpark9943
@gaonpark9943 Жыл бұрын
​@@QuoshuOMG Thank You I needed this for a multiplayer command build!
@jamesmlg2817
@jamesmlg2817 Жыл бұрын
Didn't work
@Frost_Bite_Fox
@Frost_Bite_Fox 8 ай бұрын
​@@QuoshuOmg, that actually works, this helps out a ton
@Senat0rArmstr0ng
@Senat0rArmstr0ng 4 ай бұрын
Yo dude how do i detect standing
@Guppyduck
@Guppyduck 4 ай бұрын
Read the video description
@Senat0rArmstr0ng
@Senat0rArmstr0ng 4 ай бұрын
Oh dang, thanks dude
@LsLoo01-f3w
@LsLoo01-f3w 5 ай бұрын
/execute as @a at @a positioned ~~1.5~ unless entity @s[dx=0] run effect @a invisibility 1 0 true
@MuffinX2
@MuffinX2 Жыл бұрын
Sup
@Skhodee
@Skhodee 9 ай бұрын
It didn't work for some reason (I play on console)
@Frost_Bite_Fox
@Frost_Bite_Fox 8 ай бұрын
It works for me and I play on Console, but It doesn't seem to work with multiplayer
@PriggarGaming
@PriggarGaming 6 ай бұрын
Your method is broken because it detect if youre sneaking or crawling or swimming or flying I edited it to this execute as @p [tag=avatar] at @s positioned ~~1.5~ unless entity @p [dx=0] run execute at @s positioned ~~1~ if entity @p [dx=0] run say hi This only detect sneak and not flight
@Guppyduck
@Guppyduck 6 ай бұрын
My method is designed for simplicity which is why I didn’t exclude flying and crawling. If you really wanted to do that you don’t need to separate execute commands however, that makes things unnecessarily complicated, just use one with two entity tests
@jamesmlg2817
@jamesmlg2817 Жыл бұрын
Doesnt work for me
@ngocnguyenminh7109
@ngocnguyenminh7109 10 ай бұрын
execute as @a at @s anchored eyes unless entity @s[r=0.5] run ... this is another way to detect sneaking.
@raptor5034
@raptor5034 Жыл бұрын
YAY TYTYTYTY
@Fan-Of-Guns-FOG
@Fan-Of-Guns-FOG Жыл бұрын
Minecraft Bedrock Edition Block Placer Command Block Block Placer Tutorial Years 2025
@Guppyduck
@Guppyduck Жыл бұрын
What?
@Burnstream10
@Burnstream10 2 ай бұрын
Why doesn't this work? /execute as @a at @s positioned ~~1.5~ unless entity @s[dx=0] run setblock 347 70 2355 redstone_torch
@AgneteAmlie-ym8ji
@AgneteAmlie-ym8ji Жыл бұрын
Thank you so very much
@MoneyCaesar-pd2xe
@MoneyCaesar-pd2xe Жыл бұрын
execute as @a at positioned ~~1.5~ unless entity @s[dx=0] run
@PriggarGaming
@PriggarGaming 6 ай бұрын
Your method is broken because it detect if youre sneaking or crawling or swimming or flying I edited it to this execute as @p [tag=avatar] at @s positioned ~~1.5~ unless entity @p [dx=0] run execute at @s positioned ~~1~ if entity @p [dx=0] run say hi This only detect sneak and not flight
Detect Clicking with Commands (Minecraft Bedrock Tutorial)
9:20
Bedrock. Why?!
22:37
FundyLIVE
Рет қаралды 686 М.
Why no RONALDO?! 🤔⚽️
00:28
Celine Dept
Рет қаралды 116 МЛН
Мен атып көрмегенмін ! | Qalam | 5 серия
25:41
Don’t Choose The Wrong Box 😱
00:41
Topper Guild
Рет қаралды 52 МЛН
Quilt Challenge, No Skills, Just Luck#Funnyfamily #Partygames #Funny
00:32
Family Games Media
Рет қаралды 53 МЛН
Dream's History of Faked Stunts
16:20
Wolf Online
Рет қаралды 269 М.
I Built a GRAPPLING HOOK in Minecraft
10:11
mysticat
Рет қаралды 3,6 МЛН
Joining an SMP as an undercover Speedrunner
27:55
Fyroah
Рет қаралды 2,2 МЛН
25 Insane Ways to Use Command Blocks in Minecraft
10:00
Skip the Tutorial
Рет қаралды 7 МЛН
5 Cool Tricks with ONE Command!
9:21
BlockerLocker
Рет қаралды 856 М.
Become an Air Bender in Minecraft! (Bedrock Command Tutorial)
16:13
All NEW playanimation commands for Minecraft Bedrock 1.20 to 1.21
12:02
Game Over Gaming
Рет қаралды 17 М.
Minecraft, but there is almost No Cooldowns
14:45
DakrFH
Рет қаралды 1,3 МЛН
Why no RONALDO?! 🤔⚽️
00:28
Celine Dept
Рет қаралды 116 МЛН