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

Foxes refrain from eating items while {OnGround:0b}

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Works As Intended
    • None
    • 24w12a
    • None
    • Community Consensus
    • Commands, Mob behaviour

      Foxes exclusively consume food items when they are on the ground. If, for any reason, the OnGround NBT tag is set to 0, they will abstain from eating that item entirely. For instance, setting minecraft:generic.gravity to 0 or subjecting a fox to bouncing in a bubble column results in the absence of the OnGround NBT tag being set to 1, thereby ensuring they will not ingest the item under any circumstances.

      The video demonstrates three foxes under different conditions: one with the gravity attribute set to 0, another bouncing in a bubble column, and the third with the minecraft:generic.gravity attribute set to the default value of 0.08. Only the fox with the default gravity setting eats the chorus fruit; the others refrain from doing so, even after several minutes. To replicate this, recreate the setup depicted in the video and provide the foxes with any edible item, such as a chorus fruit.

      /attribute @e[type=minecraft:fox,limit=1,sort=nearest] minecraft:generic.gravity base set 0

       

      I abide by Minecraft's community standards and prohibit the transfer of ownership of this bug report to others. I intend to retain possession of the bug report at all times. Additionally, I should not be banned because I will continue to find more bugs and report them. Being banned would prevent me from reporting them.

            Unassigned Unassigned
            White Henry White Henry (Inactive)
            Votes:
            2 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: