I'm making a map and there's a waterfall that keeps spawning squids, I've got a repeating command block that kills the squid but they drop their ink sacks minecraft:dye 0
and it looks messy, What I want is a way to /kill
the ink sacks so it looks a little bit cleaner.
Minecraft Java Edition – How to Target a Specific Item on the Ground?
minecraft-commandsminecraft-java-edition
Related Topic
- Minecraft – How to detect which specific mob was killed by a player and increase a score accordingly
- minecraft-java-edition – How to Build a ‘Shop’ that Trades Score for Weaponry with Minecraft Commands
- Minecraft – How to test for a player boosting with a firework while flying with elytra
- Minecraft Java Edition – Making Scoreboard Objectives Universal in Minecraft: Step-by-Step Guide
- Minecraft Java Edition, Minecraft Commands – How to Get Mob Deaths to Open Doors in Minecraft
- Minecraft Java Edition Commands – Why is /playsound Command Not Playing Even in Range of the Target Selector?
- Minecraft Commands – How to /tellraw the Location of an Arrow
- Minecraft – How to kill a slime without it splitting
Best Answer
You can use the coordinates of the bottom area of the waterfall for that:
Replace
?
with the coordinates and size of the area.Or you can just disable mob spawning:
Or mob loot dropping:
If you really want to target it by item type, you can do this:
Note: This is the current syntax, for versions 1.13 and above. "dye" with a data value of 0 was the old way of doing this, that's why the question contains that. You can see the command for 1.12.2 and before in the edit history of this answer.