How do I kill a specific item with a command block

How do I kill a specific item with a command block - Closeup of wooden blocks placed on top of each other for playing board game

I want to kill a specific item using a command block. If this is possible, how do I do this. Can you kill 2 specific items using a single command block. If yes, how?

I tried killing a gold ingot but it didn't work. Here is the screenshot. SCREENSHOT OF ME TRYING



Best Answer

/kill, like all other commands, supports NBT in Minecraft 1.13

/kill @e[type=item,nbt={Item:{id:"minecraft:gold_ingot"}}]



Pictures about "How do I kill a specific item with a command block"

How do I kill a specific item with a command block - Board game with wooden blocks dropped and scattered on table chaotically after playing
How do I kill a specific item with a command block - Wooden blocks placed in row on table
How do I kill a specific item with a command block - Set of small wooden blocks scattered on table chaotically after playing tower game



How do you kill a specific item in Minecraft with commands?

In the most recent update of Minecraft, it's as simple as this command: /kill @e[type=item,name="gold ingot"] .

How do you destroy a specific block in Minecraft with commands?

Chat Commands One of the most popular and fastest ways to clear items is the kill command. First, type /kill @e[type=item] in the chat and press enter to remove all dropped items in your Minecraft world instantly.

How do you kill specific ground items in Minecraft?

Typing just /kill will kill every entity in a loaded area, including your armor, stands, minecarts, and even your own player. To prevent killing your own player, make sure to limit the command from killing yourself as well. For example, /kill @e[type=! player] will kill every entity except for your own player.



ITEM DETECTION SYSTEM!? -- Command Block Tutorial




More answers regarding how do I kill a specific item with a command block

Answer 2

In the most recent update of Minecraft, it's as simple as this command: /kill @e[type=item,name="gold ingot"].

Answer 3

I play in 1.18.1, and this is the following command that works: /kill @e[type=item,nbt={Item:{id:"minecraft:gold_ingot"}}] Right now, the latest version is 1.18.1, so Idk if it works in later versions.

Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.

Images: Joshua Miranda, Joshua Miranda, Joshua Miranda, Joshua Miranda