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

Baby rabbits don't age when eating placed carrots

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Works As Intended
    • None
    • 1.19.2
    • Confirmed
    • Mob behaviour

      The Bug:

      Baby rabbits don't age when eating placed carrots.

      For a bit of context, rabbits are coded to raid gardens. So what does this mean exactly? When carrots (in their block form) are placed on farmland, rabbits possess the ability to sometimes eat them, but when they do this, the rabbit's "Age" NBT value does not increase, unlike when the player feeds carrots to them directly, therefore introducing an inconsistency.

      It's also important to note that when baby sheep eat grass blocks, their "Age" NBT value increases, therefore one would expect similar behavior to occur when baby rabbits eat placed carrots.

      Steps to Reproduce:

      • Create a dummy scoreboard objective for tracking the closest nearby rabbit's age and set it to display on the sidebar.
      • /scoreboard objectives add RabbitAge dummy
      • /scoreboard objectives setdisplay sidebar RabbitAge
      • Summon a repeating command block that constantly stores the rabbit's age under your name in the scoreboard.
      • /setblock ~1 ~ ~1 minecraft:repeating_command_block{Command:"/execute store result score @p RabbitAge run data get entity @e[type=minecraft:rabbit,limit=1,sort=nearest] Age",auto:1b}
      • Build the setup as shown in the provided attachment. setup.png
      • Summon a baby rabbit on the field of carrots by using the following command.
      • /summon minecraft:rabbit ~ ~ ~ {Age:-24000}
      • Watch the value of the rabbit's age closely as it eats the carrots.
      • Take note as to whether or not baby rabbits age when eating placed carrots.

      Observed Behavior:

      Baby rabbits don't age when eating placed carrots.

      Expected Behavior:

      Baby rabbits would age when eating placed carrots, just like how they do when the player feeds carrots to them directly.

        1. MC-256275.mp4
          3.59 MB
          [Mod] Avoma
        2. setup.png
          2.78 MB
          [Mod] Avoma

            Unassigned Unassigned
            Avoma [Mod] Avoma
            Votes:
            3 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: