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

Custom food items don't function client-side

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.16.200.57 Beta, 1.16.100.57 Beta, 1.14.1 Hotfix, 1.12.1, 1.12.0, 1.16.100, 1.16.221 Hotfix
    • None
    • Confirmed
    • Multiple
    • 264532

      Custom food items from behavior packs don't work properly in multiplayer situations.

      The Host can consume the item without issue, but any other players cannot. This is not changed by losing hunger. 

      This is a client-side problem. The other players can see the item being eaten, but the player consuming the item has no visual indication of their actions, and receives no effect from it.

      A couple ways I think this could be happening:

       - The player who joins doesn't properly acquire the behavior pack (items appear in-game, but functionality is missing.) I don't think this is likely, but worth looking into.

       - The non-host player simply doesn't look for the item's functionality (but the server still receives the input, and thinks they're using the item) 

       - The non-host player doesn't run the behavior pack; rather the server sends it to each player. (so the entities would work fine, as they're server-side, and they get 'broadcasted' to each client. However, the items don't, as their functionality is client-side)

      However, I'm not entirely sure what's happening here. Since I know that you should know, here are some addons that are effected by this bug that I tested out recently:

       

      [here|https://mcpedl.com/food-add-on/]

      [here|https://mcpedl.com/heart-containers-loz-addon]

      [here|https://mcpedl.com/o-foods-add-ons/]

       

            The Kapn Kapn Krunch
            Votes:
            57 Vote for this issue
            Watchers:
            19 Start watching this issue

              Created:
              Updated:
              CHK: