0

Heyo, I was wondering if there is anyway to test for a certain entity at some preordained coordinates, then delete only those entities at those specific coordinates? More simply - is there a way to delete entities at certain coordinate?

1

Use the @e selector with the x, y, and z selectors:

/kill @e[x=<X>,y=<Y>,z=<Z>,r=1]
5
  • If this answer solved your question please click the checkmark below the score to accept the answer.
    – Moddl
    Dec 8 '15 at 2:27
  • A little back up question, but what about specific entities? Like only cobblestone and acacia wood planks, but still at a certain coordinate? Dec 30 '15 at 8:51
  • @SMILIECHICKEN Cobblestone & Acacia wood planks are blocks not entities....
    – Moddl
    Dec 30 '15 at 8:56
  • Oh, my bad D: But there is no way to destroy only specific items on a certain coordinate? Example ~ I want a player to drop a "key", or in this case a tripwire hook, onto a diamond block at 63 70 45, and then to have the "key" destroyed and have a firework summoned. However, if it's not a tripwire hook that was dropped there, then nothing would happen. Dec 30 '15 at 9:01
  • You will need scoreboards for that. Mark the entity and select it. There should be an answer to that somewhere else on the site.
    – Moddl
    Dec 30 '15 at 9:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.