I need a command that will test if I am crouching in 1.13, and without scoreboard (If possible). I need the simplest way that takes up the least amount of space, because I have a small space to work with. Thank you in advance.
Thank You! I have been searching for something like this as well. But is it possible so when you move while crouching it gets rid of the command? For example, every time you crouch you get invisibility, but if you move while sneaking it doesn't make you invisible.
Yes, you just have to create a scoreboard with the distance the player has walked while on sneak and if it move you don't activate the effect command, like this :
scoreboard objectives add Sneak minecraft.custom:minecraft.sneak_time
scoreboard objectives add sneak_distance minecraft.custom:minecraft.crouch_one_cm
execute as @a[scores={Sneak=1..}] at @s if score @s sneak_distance matches 0 run effect give @s minecraft:invisibility 1 1
scoreboard players reset @a[scores={Sneak=1..}] Sneak
scoreboard players reset @a[scores={sneak_distance=1..}] sneak_distance
This doesn't seem to work. The command: execute as @a[scores={Sneak=1..}] at @s if score @s sneak_distance matches 0 run effect give @s minecraft:invisibility 1 1. Doesn't seem to make you invisible at all. This is the only error I have detected atm.
I need a command that will test if I am crouching in 1.13, and without scoreboard (If possible). I need the simplest way that takes up the least amount of space, because I have a small space to work with. Thank you in advance.
Discord Server (Unofficial Minecraft Server): https://discord.gg/FSfPgQ7
/scoreboard objectives add Sneak minecraft.custom:minecraft.sneak_time
/execute as @a[scores={Sneak=1..}] at @s run <Command>
/scoreboard players reset @a[scores={Sneak=1..}] Sneak
==Links==
𝐒𝐞𝐜𝐨𝐧𝐝 𝐂𝐡𝐚𝐧𝐧𝐞𝐥- https://www.youtube.com/channel/UCQYroXqdZtYBnyspneetBGA/featured
𝐈𝐧𝐬𝐭𝐚𝐠𝐫𝐚𝐦- https://www.instagram.com/cowsdabest_yt/?hl=en
𝐓𝐰𝐢𝐭𝐭𝐞𝐫- https://twitter.com/cowsdabestyt
𝐃𝐢𝐬𝐜𝐨𝐫𝐝- https://discord.gg/H2NfhpQ
==DISCLAIMER!==
Please credit me if you are going to use it in a video or a map!
Thank You! I have been searching for something like this as well. But is it possible so when you move while crouching it gets rid of the command? For example, every time you crouch you get invisibility, but if you move while sneaking it doesn't make you invisible.
Chocolate cookies are yum
Yes, you just have to create a scoreboard with the distance the player has walked while on sneak and if it move you don't activate the effect command, like this :
I haven't tested it, tell me if there's an error.
I like trains... OF CHAIN COMMAND BLOCKS !
This doesn't seem to work. The command: execute as @a[scores={Sneak=1..}] at @s if score @s sneak_distance matches 0 run effect give @s minecraft:invisibility 1 1. Doesn't seem to make you invisible at all. This is the only error I have detected atm.
Chocolate cookies are yum
Oh yes, sorry, change this line to :
I like trains... OF CHAIN COMMAND BLOCKS !
Thank you so much! This will be a great help for my minigame
Chocolate cookies are yum
If you want to ameliorate, you can add before the "scoreboard players reset" lines this :
With that, the player who walked in sneak don't have the 1sec of the effect to be clear and appear immediately to other players
I like trains... OF CHAIN COMMAND BLOCKS !