Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-145398

Error with the commande "kill"

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Awaiting Response
    • None
    • Minecraft 19w09a
    • None
    • Unconfirmed
    • (Unassigned)

      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}]}
      

            Unassigned Unassigned
            Hardel Hardel
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: