to kill all of the items in a distance, i use /kill @e[type=item]. But that doesn't leave any kind of item behind. For example: I throw dirt, stone and grass on the ground, what command will help me to remove JUST dirt?
Try /kill @e[type=dirt], but if you are in Creative you can just turn off drops from blocks by doing /gamerule doTileDrops=false so that you won't create loose dirt in the first place.
to kill all of the items in a distance, i use /kill @e[type=item]. But that doesn't leave any kind of item behind. For example: I throw dirt, stone and grass on the ground, what command will help me to remove JUST dirt?
Try /kill @e[type=dirt], but if you are in Creative you can just turn off drops from blocks by doing /gamerule doTileDrops=false so that you won't create loose dirt in the first place.