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

Using the "/data" command to set a pet's health to zero doesn't display a death message

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.19.2, 22w43a, 1.19.3, 1.21
    • None
    • Confirmed
    • Commands
    • Low
    • Platform

      The Bug:

      Using the "/data" command to set a pet's health to zero doesn't display a death message.

      Steps to Reproduce:

      1. Summon and cat and tame it using some cod.
      2. Use the "/data" command to set the cat's health to zero by using the command provided below.
        /execute as @e[type=minecraft:cat,limit=1,sort=nearest] run data modify entity @s Health set value 0
      3. Look at the chat.
      4. Take note as to whether or not using the "/data" command to set a pet's health to zero displays a death message.

      Observed Behavior:

      No death message is displayed.

      Expected Behavior:

      A death message would be displayed.

        1. _BugTracker_ (1.21).png
          _BugTracker_ (1.21).png
          1.19 MB
        2. cat1.mp4
          5.27 MB
        3. MC-255993.png
          MC-255993.png
          616 kB

            Unassigned Unassigned
            Shuddery Shuddery
            Votes:
            3 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              CHK: