Detect for *crushed plants*
In the map I'm making, Pvt. Rabbit (You) must try not to crush any planted carrots underfoot. If he does, I want it to be detected and then +1 to a scoreboard counting the number of times he has done it. My question is what is what would be the correct command to detect if he has crushed any planted carrots. At first I tried:
execute @p[r=1000] ~ ~ ~ detect ~ ~0 ~ minecraft:carrot say ...
I won't use the say command once I've figured it out, but now I'll use that. It says that "there is no such block with name minecraft:carrot" which I completely get. Any Ideas about what to do?
Best Answer
You could detect whether the player is standing on dirt. A simple command to do that would be:
execute @p ~ ~-1 ~ testforblock ~ ~ ~ dirt
If they crush the crop, it turns the farmland under them into dirt, and the command block will output true.
Pictures about "Detect for *crushed plants*"



Instant Models: Detect Sick Plants with AI
Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.
Images: Markus Distelrath, Jess Loiterton, Jess Loiterton, Jess Loiterton
