/Kill Command to Clear Specific Items
I'm trying to set up a series of command blocks to remove creepers from my world and clear all dropped gunpowder.
Killing creepers is no problem but when I set up the command to remove the gunpowder that drops I cant seem to target a specific item.
Based on what I've read on the internet it should be:
/kill @e[item=gunpowder]
but this sends me back a syntax error. Is this a Bedrock vs Java issue?
Thanks to anyone who could help on this issue.
-
I have not been able to get this to work either.
The best I've done is a repeat command block on a delay with this code in it:
/kill @e[type=item]
I use this as a cleanup in some of my eSports worlds to remove items every 30 seconds or so to keep the world from lagging. It will of course remove any dropped items, which may not be desirable.
0
Please sign in to leave a comment.
Comments
1 comment