"effects" does not work in minecraft:food when making custom items in format version 1.20.50
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.
Linked Issues
- Unresolved
VoicefulBread66
- 6
- 6
- Confirmed
- 1208990
- Multiple
- Android 14, Windows 11
- addons behavior-pack
Created Issue:
"effects" does not work in minecraft:food when making custom items in format version 1.20.50
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.
- Unresolved
- Open
- Unconfirmed
- Multiple
- Android 14, Windows 11
- 1.20.73 Hotfix
is duplicated by
Does MCPE-180398 describe the issue you are experiencing?
If not, then your report does not contain enough information to understand or reproduce the problem.
Issues with Marketplace add-ons must be reported to their creator. Only if the add-on is created by "Minecraft" is it valid on the bug tracker. Be sure to mention the specific add-on (name and creator) that you are having issues with.
Please add the following information to the Description, as shown here:
Steps to Reproduce:
1. (list every step completely, so someone else can reproduce the issue)
2.
3.
Observed Results:
(briefly describe what you see happen, including any message(s) shown)
Expected Results:
(briefly describe what should happen)
Try following your steps to make sure you include everything and can still reproduce the issue yourself.
Screenshots and videos are also helpful, though they should not be used as a replacement for the above information
This report has been temporarily resolved as Awaiting Response. It will automatically reopen when you add information. Please follow the format shown and include all sections (steps, observed, expected). Reports that do not contain all of the requested information and complete steps to reproduce the issue may be closed as Incomplete.
Please review the Bug Tracker Guidelines before creating additional bug reports.
Many players find this Bug Report Creation Form useful for filling in all helpful information.
Can confirm.
Steps to reproduce:
Observed results:
test:test will not grant any status effects, meanwhile test:test2 will.
Expected results:
Both food items will apply their status effects.
Can confirm I am having this issue as well. Changing the format to an old verison allows effects to work but then I lose the texture.