mojira.dev
MC-145398

Error with the commande "kill"

I do not really explain this strange bug.

i teleport the mobs in 0, -10, 0 and then I kill them. but this commande

#Repeat
kill @e[x=0,y=-10,z=0,distance=..10,type=donkey]

dosen't work.

If I try to get the coordinates it shows the correct string.

/execute as @e[type=donkey] at @s store result score @s Cord run data get entity @s Pos[0]
/execute as @e[type=donkey] at @s store result score @s Cord run data get entity @s Pos[1]
/execute as @e[type=donkey] at @s store result score @s Cord run data get entity @s Pos[2]

and when I tp on entity it works.

/tp @s @e[type=donkey,limit=1]

I noticed that it works when I'm less than 100 blocks of entity.

#You can try with ths summon command
summon donkey 0 -10 0 {NoGravity:1b,Tame:1,ChestedHorse:1,Temper:1,Attributes:[{Name:generic.armor,Base:100},{Name:generic.maxHealth,Base:1000}],Invulnerable:1,Health:1.0f,FallFlying:1b,PersistenceRequired:1,NoAI:1,Silent:1,DeathLootTable:"empty",ActiveEffects:[{Id:6,Amplifier:100,Duration:19980,ShowParticles:0b},{Id:11,Amplifier:250,Duration:1999980,ShowParticles:0b}]}

Comments 4

The command you entered has been set to "distance=..10" which means that it will target the entity within a radius of 10 or less.

Yes,, I took a simplifying example.
The bug is that you can not kill entity with position selector has more than 100 block of them.

I think they chuncks of "void" are not loaded., i try with a forceload nothing to do.

A /kill @e works, however, when we use position arguments we can not kill entity it's really strange and in 1.13.2 he work properly.

For me, the kill command worked, are you sure the donkey is loaded?

Is this still an issue for you, or did it get fixed in the meantime?

Hardel

(Unassigned)

Unconfirmed

(Unassigned)

Minecraft 19w09a

Retrieved