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 Жыл бұрын
I didnt even think of the command potential with the 1.5 block sneaking, this is amazing!
@jaysoncoleman39635 ай бұрын
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Ай бұрын
can you detect elytra flight with this? they both make the hitbox 1 block tall
@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.
@endercat3638 күн бұрын
It works with every thing
@jaysoncoleman39637 күн бұрын
@@keisakustudios You Could Invert the check I've added to prevent it from detecting Crawling "positioned ~ ~-0.9 ~ if entity @s[dx=0]"
@frozenconcrete133811 ай бұрын
This is such a clever way to detect if a player is sneaking.
@remegildacabalit Жыл бұрын
Bro cracked at commands.😎😎😎😎👍👍
@Sin2ber8 ай бұрын
Ikr
@Javajuice0084 ай бұрын
Nah bros cranking 90s on these commands
@Primo-re2wo Жыл бұрын
Thank you very much bro, I've been trying to find this guide for a long time
@Guppyduck11 ай бұрын
Glad I could help
@Robotbamboo4 ай бұрын
@@Guppyduckthat great man, but when I swim it will detect too , how to fix?
@Timothy_Cope Жыл бұрын
Freaking sweet! I can now go down Mario pipes using commands.
@Supertoy5000YT8 ай бұрын
You just saved my life man, thank you so much for making this!
@LandoGame Жыл бұрын
Very quick and right to the point, It helped a lot. (even if I don't fully understand everything)
@LsLoo01-f3w5 ай бұрын
/execute as @a at @s positioned ~~1.5~ unless entity @s[dx=0] run
@Color1738 Жыл бұрын
Those cubes look pretty cracked 👀
@orcawarrior43966 ай бұрын
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!!!
@M4Xdestroyer6 ай бұрын
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.
@jaysoncoleman39635 ай бұрын
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 Жыл бұрын
Combined this with your old rocket command, made remote bombs, throw one out, back up, crouch to detonate.
@GROWSNAPOFFICIAL6 ай бұрын
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 Жыл бұрын
execute as @a at @s positioned ~~1.5 ~ unless entity @s[dx=0] run
@HardMODE-10 ай бұрын
LEGEND!
@MakBonez Жыл бұрын
Thank you, appreciate the help
@marnellilagazo86806 ай бұрын
Gruppyduck and browncoat67 is a command genius 😂
@marcmarpuri52115 ай бұрын
NEW LEGEND IS BORN
@Commander_cody-f8d3 ай бұрын
Bro this is amazing thanks so much
@EtechMC Жыл бұрын
TYSM!
@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 Жыл бұрын
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 Жыл бұрын
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)
@mate58754 ай бұрын
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
@reincarnwow28834 ай бұрын
@@mate5875 ty, but i don't do command blocks as much as i did before tho, maybe it'll come in handy later
@MuffinX2 Жыл бұрын
Dang this is very helpful… time to flex on my friends >:]
@M4Xdestroyer6 ай бұрын
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?
@nikolime074 ай бұрын
Would this command work with sleeping if you just lower the height of the 1.5 block?
@augustmancuso2272 Жыл бұрын
THANK YOU
@CosmicPlayz-xx8ev4 күн бұрын
Ima use this for a invis when sneaking feature
@NayPixelZ8 ай бұрын
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_mc6 ай бұрын
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?
@Guppyduck6 ай бұрын
You can check if a player is in the air, but you can’t tell the difference between jumping and falling
@BlitzCrxsher9 ай бұрын
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_4u9 ай бұрын
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
@zackmartin60415 ай бұрын
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
@zackmartin60415 ай бұрын
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 Жыл бұрын
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 Жыл бұрын
Its not possible,sorry
@mhmmkay9 ай бұрын
revolutionary
@drrroden8 ай бұрын
Nice video but can you please release a tutorial for this command but on certain cordinates, not everywhere
@Guppyduck8 ай бұрын
Check out my selectors tutorial
@CursorMcInternet2 ай бұрын
how do i make it so that when you crouch woa u can phase through walls.
@Sophia617 Жыл бұрын
How do i do jump detection
@deez4040 Жыл бұрын
Any way to detect crawling inside of cauldron or composter? Trying to make it so you get invisibility while doing so
@Guppyduck Жыл бұрын
If you swapped the 1.5 to 1 it would probably work with crawling
@deez4040 Жыл бұрын
@@Guppyduck thank you very much! I appreciate your content!!
@mokilasto8 ай бұрын
Thank you 👍
@Zylix-x2g6 ай бұрын
Hey so I'm doing the command but when I uncrouch it still has the effect
@SieonnPlayz Жыл бұрын
thanks!
@aguywhoeatstacos4285 Жыл бұрын
Thank you so much
@nenitasolmiran899511 күн бұрын
"Command Genius"
@XynoIs2 ай бұрын
Is there a way to check if someone is sprinting?
@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Ай бұрын
@@StylophoneVR Go right ahead
@StylophoneVRАй бұрын
@@Guppyduck aight thx
@TheCommandWizardАй бұрын
@@Guppyduckthis is my other channel btw
@TheCommandWizardАй бұрын
@@Guppyduckdo you know which a @a/@s I change to @a[tag=____]
@irfanzmt123Ай бұрын
is it accurate?
@LsLoo01-f3w5 ай бұрын
/execute as @a at @s positioned ~~1.5~ if entity @s[dx=0] run effect @s invisibility 0 0
@FortunaQ_Thawne.Official8 ай бұрын
i remember TechZero from the discord lol
@phazeyy_brah11 ай бұрын
Can you make this with tags like for this to work for a specific tag?
@Guppyduck11 ай бұрын
Yes
@ZioZyoN Жыл бұрын
are u able to detect right click?
@johnjim3600 Жыл бұрын
Yes
@evanfunny Жыл бұрын
10/10
@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 Жыл бұрын
For your case you could just set the players spawn to the nether, but I could do a full tutorial on death detection methods
@lostmastermas37938 ай бұрын
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.
@luzellemoller662110 ай бұрын
i need help, im trying to gife a person infis when they crouch(if they hafe a certain tag)
@luzellemoller66216 ай бұрын
@AnErrorOccured... thanks but I found awaybalready
@HuseyinAboras4 ай бұрын
/execute as @a at @s positioned ~~1.5~ unless entity @s[dx=0] run summon lightning_bolt ^^^15
@justwildan3963 Жыл бұрын
does this work when doing it in the air
@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.bisgaard10867 ай бұрын
Should by able to say “as @a[tag=?] at @s”.
@AnonymousUser-p6f9 ай бұрын
Help it says "Execute subcommand unless entity test failed."
@jonasg.bisgaard10867 ай бұрын
It should still function, it’s just that’s what it’s saying when you’re not sneaking.
@edwinclune82065 ай бұрын
its saying execute subcommand if entity test failed
@anime_boy3416 ай бұрын
i can’t get it to work, it keeps saying “sub command unless entity test failed”
@Burnstream102 ай бұрын
Are you on java or bedrock?
@anime_boy3412 ай бұрын
@@Burnstream10bedrock
@linzayyathant20055 ай бұрын
We can do sneaking sniper scope without player.json and script.json now
@AnaSchulz-h3j8 ай бұрын
Thanks
@noobcraft148 Жыл бұрын
gonna make it so you get invis and speed
@ElixumAlt8 ай бұрын
There’s a little issue with this though. The detection of sneaking also detects when a player is swimming as well.
@ElixumAlt8 ай бұрын
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
@ashdashadow8 ай бұрын
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 Жыл бұрын
May i ask what "unless entity" do?,
@ngocnguyenminh710910 ай бұрын
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 Жыл бұрын
YEEEES
@Noctumbrae Жыл бұрын
is there any way to avoid this command detect swiming? it detects sneak but also detects swiming :/
@johnjim3600 Жыл бұрын
Add unless block ~~~ water
@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 Жыл бұрын
@@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 Жыл бұрын
@@Noctumbrae sorry..m
@UrbanBricks Жыл бұрын
Couls he used for cool abilities.
@kisha4709 Жыл бұрын
Can you do a detect running tutorial?
@VoidfluxOrb Жыл бұрын
I'm not sure if that is possible
@TrippinRainDrops Жыл бұрын
Omg this is prefect
@LoraFlares2 ай бұрын
Broken & I added run /say hi nothing happened in chat
@Katiey109 ай бұрын
does this work in multi player?
@Guppyduck9 ай бұрын
Yes
@Katiey109 ай бұрын
@@Guppyduck for some reason it doesn't work like when I want it to only detect a specific player sneaking. any thoughts?
@samzam78908 ай бұрын
@@Katiey10 do tags 🏷️
@Katiey108 ай бұрын
@@samzam7890 oh this worked ty 🗿🙏
@samzam78908 ай бұрын
@@Katiey10 np you can do different tags on different players so its good to know. :)
@esther-dianamenke92765 ай бұрын
banger
@skruffedpretzelz Жыл бұрын
sick
@richardyfragallilourenco5286 Жыл бұрын
Can you do some damage please?
@Guppyduck Жыл бұрын
I'm not sure what you mean
@Legtlizrd Жыл бұрын
This is good but it malfunctions when i am in multiplayer
@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 Жыл бұрын
@@QuoshuOMG Thank You I needed this for a multiplayer command build!
@jamesmlg2817 Жыл бұрын
Didn't work
@Frost_Bite_Fox8 ай бұрын
@@QuoshuOmg, that actually works, this helps out a ton
@Senat0rArmstr0ng4 ай бұрын
Yo dude how do i detect standing
@Guppyduck4 ай бұрын
Read the video description
@Senat0rArmstr0ng4 ай бұрын
Oh dang, thanks dude
@LsLoo01-f3w5 ай бұрын
/execute as @a at @a positioned ~~1.5~ unless entity @s[dx=0] run effect @a invisibility 1 0 true
@MuffinX2 Жыл бұрын
Sup
@Skhodee9 ай бұрын
It didn't work for some reason (I play on console)
@Frost_Bite_Fox8 ай бұрын
It works for me and I play on Console, but It doesn't seem to work with multiplayer
@PriggarGaming6 ай бұрын
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
@Guppyduck6 ай бұрын
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 Жыл бұрын
Doesnt work for me
@ngocnguyenminh710910 ай бұрын
execute as @a at @s anchored eyes unless entity @s[r=0.5] run ... this is another way to detect sneaking.
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 Жыл бұрын
Thank you so very much
@MoneyCaesar-pd2xe Жыл бұрын
execute as @a at positioned ~~1.5~ unless entity @s[dx=0] run
@PriggarGaming6 ай бұрын
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