1

How do I make a command block detect whether a person over a set range of coordinates has been killed? (without any radius, because radius is causes some major problem in the server)

9
  • I don't know much about MCPE commands, but you could try constantly teleporting an armour stand to that player, as long as the player is within 10 blocks of it or so. Once the player has moved more than 10 blocks in one tick, you can be almost sure that they died, but you would also have to consider ender pearls, portals and gateways. I don't know if the death statistic also exists in MCPE, of course you would base your detection on that if it exists. – Fabian Röling May 18 '19 at 19:02
  • What i'm doing is: 1. Player enters the room area 2. Clears a wall to reveal a secret compartment filled with endermites 3. Endermites kill player and 4. Kills the endermites when player dies no matter where in the room the player died. – user231290 May 18 '19 at 19:09
  • Do (scoreboard) tags exist in PE? Then you could just tag the player when they enter the room (regular x,y,z,dx,dy,dz selector arguments) and combine that with the death scoreboard. And I repeat, I don't know much about MCPE commands, only MCJE. – Fabian Röling May 18 '19 at 21:03
  • Well i don't understand what dx dy and dz at all, my coordinates are 18 4 -49 to 15 4 -43 – user231290 May 18 '19 at 21:23
  • The wiki should have all the information. – Fabian Röling May 18 '19 at 21:55
0

I realized that dx is x distance away from the command block to the y and z coordinate, (noting that d stands for distance) (after looking a bit longer I found this other site with the question and one of the responses giving a video) same with dy and dz (except the coordinates it goes to from it is different, for dy its to x and dz to x y.

Your Answer

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