Uploaded image for project: 'Minecraft (Bedrock codebase)'
  1. Minecraft (Bedrock codebase)
  2. MCPE-183936

Poisonous potatoes grant more hunger points than regular potatoes upon being eaten

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.21.1 Hotfix
    • Confirmed
    • Multiple
    • 1265779

      The Bug:
      Poisonous potatoes grant more hunger points than regular potatoes upon being eaten. Repost of MC-222060 for Bedrock.

      Steps to Reproduce:

      1. Obtain a potato and a poisonous potato.
      2. Switch into survival mode and give yourself the hunger effect by using the command provided below.
      /effect @s hunger 3 255 

      3. Wait for the hunger effect to end.
      4. Eat the regular potato and take note of how many hunger points are granted.
      5. Eat the poisonous potato and take note of how many hunger points are granted.

      Observed Behavior:
      Poisonous potatoes grant 2 hunger points and regular potatoes grant 1 hunger point.

      Expected Behavior:
      Poisonous potatoes would grant the same hunger points as potatoes, as poisonous potatoes are logically more unhealthy than regular potatoes.

      The Fix:

      The issue can be fixed by going to poisonous_potato.json, and setting the nutrition value of the item to 1.

      {
        "format_version": "1.10",
        "minecraft:item": {
          "description": {
            "identifier": "minecraft:poisonous_potato"
          },    "components": {
            "minecraft:use_duration": 32,
            "minecraft:food": {
              "nutrition": 1,
              "saturation_modifier": "low",
              "effects": [
                {
                  "name": "poison",
                  "chance": 0.6,
                  "duration": 5,
                  "amplifier": 0
                }
              ]
            }
          }
        }
      } 

       

            TheMightyDark TheMightyDark
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              CHK: