So I'm trying to make a command where you throw a snowball and a trail of lighting bolts follows it.   Heres the command:  /testfor @e[type=snowball]   With a comparator facing into this one,  /execute @e[type=snowball] ~ ~ ~ /summon lightning ~ ~1 ~   When I throw the snowball, it says:      Failed to execute '/summon lightning ~ ~1 ~' as Snowball   Why?
11363
I am trying to make a snowball that triggers a command when it hits a player in 1.15, but I don't know how to do that. When I do execute at @e[type=snowball] run gamemode spectator @a[distance=..2] it only runs the command if it goes right next to them.
9484
I found the /testfor command today in Minecraft, but when I use it in a command block it says     Usage: /testfor &lt;player>   and when I do that it then says     /testfor must be used by command blocks with an analog output.   What does that mean and how can I use the command?
100436
I've got an example like that:  \documentclass{article}  \usepackage{etoolbox}  \newcommand{\ab}{a}  \newcommand{\aORb}[1]{%         \ifstrequal{#1}{a}{"a" was given}{not a}, %         \ifstrequal{#1}{b}{"b" was given}{not b}% }  \begin{document}  begin       \aORb{\ab{}}   end \end{document}   And the output of that code is:  begin not a, not b end   However, if I put simply "a" or "b" as an argument to \aORb instead of \ab{} then it works fine.  Is there another command in etoolbox package that will allow me to do such a comparison correctly?
45642
Say I have written two commands, CommandA and CommandB. I wish to have a third command that takes inputs to determines which of the two previous commands to execute. Very naively this how I would try and accomplish this as shown below, however, it does not work.  \newcommand{CommandA}{     \hspace{5mm} } \newcommand{CommandB}{     \vspace{5mm} } \newcommand{C}[1]{     \Command#1 }   So if I call \C{A}, as written I would really execute \CommandA.
35862
Does someone know how to set a command block with a command inside using the setblock command?  I have created this code /setblock &lt;x&gt; &lt;y&gt; &lt;z&gt; command_block {TileEntityData:{Command:"testfor @p[_=1]"}} but it doesn't works.  Do someone know how to do that?
25834
There is a command l available on my machine which appears to do nothing.  which l also produces no output. Is this a real command, and does it actually do anything?
104298
I want to summon an arrow that is fired in the same direction as the player that it is summoned closest to, is this possible with just commands and as minimal command blocks as possible? (not one command block for like ever 30°)  Currently I have tried summoning it without gravity and right after it spawns teleporting it using /execute as @e[type=arrow,name="guardarrow",scores={lifetime=1..1}] at @s rotated as @p run tp @s ~ ~ ~ ~ ~ (lifetime scoreboard is just +1 per tick) which for about 0.5s rotates the arrow and then it rotates back, making this method useless. Using the Motion:[x.x,x.x,x.x] nbt doesn't work since it has to be able to go in all directions. So is there any way to make this work properly?  Also: When teleporting the arrows to move them they apparently don't hit things, they go straight through mobs
32119
I'm trying to use the curl command to access a http url with a exclamation mark (!) in its path. e.g:  curl -v "http://example.org/!287s87asdjh2/somepath/someresource"   the console replies with bash: ... event not found.  What is going on here? and what would be the proper syntax to escape the exclamation mark?
79219
I am running a server on version 1.16.1 and I'm trying to run the following command which I copied and pasted from a command generator: /tellraw @a [&quot;&quot;,{&quot;text&quot;:&quot;Co-op &gt;&quot;,&quot;color&quot;:&quot;aqua&quot;},{&quot;text&quot;:&quot; [PIG&quot;,&quot;color&quot;:&quot;light_purple&quot;},{&quot;text&quot;:&quot;+++&quot;,&quot;color&quot;:&quot;aqua&quot;},{&quot;text&quot;:&quot;]&quot;,&quot;color&quot;:&quot;light_purple&quot;},{&quot;text&quot;:&quot; Technoblade&quot;,&quot;color&quot;:&quot;light_purple&quot;},{&quot;text&quot;:&quot;: I have come down from the land of potato gods.&quot;}]  Every time I run it it says:  Invalid chat component: Unterminated string at line 1 column 245 path $[6].text  I don't know what any of this means.
64798
When writing answers on here, it's often necessary to create a new script and chmod +x it to make it executable. I won't go into whether this is a good thing or not, but explaining to people that they need to fire in three separate command (and teaching them to use nano!) is a bit of a waffle.  Is there anything easier?
3546
Good Afternoon,  (OS X user)  I am specifically trying to pipe the output of every shell command I type into the ruby gem 'lolcat' (which makes the output to the terminal rainbow colored).  Is there a way to do this without explicitly aliasing command individually? I was thinking perhaps there might be a way to pipe anything before the return key is pressed , but I am not sure how to do this.  Your assistance is appreciated, as I am tired of looking at just one color in my terminal.
28456
I have two commands I'd like to combine into one, but I'm not sure how to go about combining them. Is this possible?   Here are the commands. They work individually, I just can't seem to get them to work together:  /give @p jukebox 1 0 {CanPlaceOn:["minecraft:melon_block"]}     /give @p jukebox 1 0 {display:{Name:"Box"}}   Can you help me to add one of the commands to the other one?
12157
Recently, Minecraft had removed the /testfor command, which broke these sets of commands that I was trying to execute today.  /testfor @p[r=10] {SelectedItem:{id:"minecraft:feather",tag:{display:{Name:"Roc's Feather",Lore:[Jump higher using this feather.]}}}}`   Now normally, from Minecraft 1.13 onwards, the new /execute command would've been the replacement for the /testfor command, but as I soon found out, the command failed to detect my Roc's Feather and thus could not execute an /effect command that gave me a Jump Boost, for 1 second, at level 3.  I tried remaking my feather from scratch with this command here:  /give @p minecraft:feather{display:{Name:"{\"text\":\"Roc's Feather\",\"color\":\"light_purple\",\"bold\":true,\"italic\":true,\"underlined\":false,\"strikethrough\":false,\"obfuscated\":false}",Lore:["{\"text\":\"Jump higher using this feather.\",\"bold\":false,\"italic\":true,\"underlined\":false,\"strikethrough\":false,\"obfuscated\":false}"]}} 1   But the execute command I placed did not detect this type of uniqueness.  /execute if entity @p[distance=10,nbt={SelectedItem:{id:"minecraft:feather",Count:1b,tag:{display:{Name:"{\"text\":\"Roc's Feather\",\"color\":\"light_purple\",\"bold\":true,\"italic\":true,\"underlined\":false,\"strikethrough\":false,\"obfuscated\":false}",Lore:["{\"text\":\"Jump higher using this feather.\",\"bold\":false,\"italic\":true,\"underlined\":false,\"strikethrough\":false,\"obfuscated\":false}"]}}}}] run effect give @s minecraft:jump_boost 1 3 true   Can somebody tell me what I'm doing wrong here because I cannot even tell what's the issue.
117067
I put a command block that would teleport "@p" so when i get close it teleports me back to another place, its Always Active and its a Repeat Command Block, I've tried lots of commands but none work, I've been trying for hours
113244
If the which command is not available, is there another 'standard' method to find out where a command's executable can be found?  If there is no other 'standard' method available, the actual system I face currently is a bare Android emulator with an ash , if that means anything.
64744
I want to test for a dropped Spruce Log, for example. So what I have is:  execute at @e[type=minecraft:item,name="spruce_log"] run summon minecraft:pig ~ ~ ~  I also tried:  execute at @e[type=minecraft:item,nbt={id:"spruce_log"}] run summon minecraft:pig ~ ~ ~  The pig summoning is just to see if it works. Which it doesn't. The Command Block doesn't give me any errors either. I just don't know how to test for the Spruce Log item, or any item in specific. I'm using Minecraft 1.13.1.
14895
I'm trying to execute a command on cmd.exe, with a line break or new line as part of the command, like below:  command -option:text   whatever   But every new line executes the command, instead of continuing the command on the next line.  So how can I input a new line character, or create a multi-line command in cmd.exe?