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

"effects" does not work in minecraft:food when making custom items in format version 1.20.50

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.20.73 Hotfix, 1.20.81 Hotfix, 1.21.2 Hotfix, 1.21.21 Hotfix, 1.21.22 Hotfix, 1.21.30, 1.21.31 Hotfix, 1.21.43 Hotfix
    • Confirmed
    • Multiple
    • 1208990

      When making a custom food item using behaviour packs utilising the format_version 1.20.50, the "effects" component of "minecraft:food" does not work, unlike in format_version 1.10. Hence, any addon creator wanting to utilise features in format_version 1.20.50 such as "movement_modifier" will be unable to define effects to the player upon consumption in the json file.

      test.json is a file written in format_version 1.20.50 for a custom food item supposed to give hunger to the player upon consumption. Attached is a behaviour pack with two custom items, test:test and test:test2, which are both supposed to give hunger to player upon consumption, but only test:test2 does so due to being written in format_version 1.10.

      In order to test, load the behavior pack in a world and thereafter give test:test to self, run around until player is hungry, and then eat test:test. It should be observed that test:test does not give any effects upon consumption. Do the same for test:test2, and it should be observed that it does give effects upon consumption, which is the intended effect of test:test.

        1. test.mcpack
          1 kB
        2. test.json
          0.6 kB

            VoicefulBread66 VoicefulBread66
            Votes:
            6 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              CHK: