Mojira Archive
MCPE-180398

"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

VoicefulBread66

2024-04-06, 01:31 PM

2024-12-12, 02:18 PM

6

6

Confirmed

1208990

addons, behavior-pack

1.20.73 Hotfix - 1.21.51 Hotfix1.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, 1.21.51 Hotfix

-