I am creating a custom PVP map, where all arrows explode after they hit something. For example, if an arrow hits a block or a non-TNT entity, a TNT is summoned at that location. Here is the command I tried:

Repeating command block, always active:

/execute @e[type=arrow] ~ ~ ~ summon tnt ~ ~ ~

However, when the arrow is shot, TNT spawns wherever the arrow is, creating a disaster. How do I fix this?

Note: If an instant-explosion is possible, I prefer that, but if not, that is okay as well.

  • In Java Edition you would use the NBT tag InGround, but in Bedrock Edition, you'd have to do a little trickery with entities and stuff that I don't know about.
    – One 2 Many
    Commented Sep 18, 2020 at 0:36
  • @ExpertCoder14 So do you have any small thoughts about this?
    – WarpPrime
    Commented Sep 18, 2020 at 0:37
  • 1
    In Java Edition, if I wanted to do this without NBT access, I would teleport an invisible entity like an area_effect_cloud to the arrow every second or so, and detect when the armour stand's movements are slowing down by calculating its distance to the arrow with every move. I'll have to ponder about this a bit to be able to convert this to Bedrock Edition.
    – One 2 Many
    Commented Sep 18, 2020 at 0:43
  • @ExpertCoder14 So if a TNT blows up on top of an arrow (the arrow and and the TNT share space), does the arrow get removed?
    – WarpPrime
    Commented Sep 18, 2020 at 0:44
  • 1
    @ExpertCoder14 Its just a single player test trial. I can port it to multiplayer if I want to.
    – WarpPrime
    Commented Sep 18, 2020 at 12:11

1 Answer 1


In bedrock edition, you can not detect if an arrow is in the ground, but you can detect if a certain block is under it. You would use a different repeating command block for every possible block it could land on. If your were on a riverbank, it could land on either grass or sand, so it would look like this:

#1: execute @e[type=arrow] ~ ~ ~ detect ~ ~-1 ~ grass 0 summon tnt ~ ~ ~

#2: execute @e[type=arrow] ~ ~ ~ detect ~ ~-1 ~ sand 0 summon tnt ~~~

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .