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
    • None
    • 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.json
          0.6 kB
        2. test.mcpack
          1 kB

            VoicefulBread66 VoicefulBread66
            Votes:
            4 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              CHK: