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

"data" parameter of custom recipes only evaluated upon world spawn

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: 1.16.200.55 Beta, 1.16.200.53 Beta, 1.16.200.51 Beta, 1.16.100.60 Beta, 1.16.100.58 Beta, 1.16.100.57 Beta, 1.16.50 Hotfix (iOS), 1.16.40 Hotfix, 1.16.61 (PS4), 1.16.100.59 Beta, 1.16.100
    • Fix Version/s: None
    • Confirmation Status:
      Confirmed
    • Platform:
      Windows 10 - PC
    • ADO:
      421012

      Description

      The 1.16 update introduced the ability to use molang statements in the data parameter of recipe input and outputs. However, the molang is only calculated upon entering the world as opposed to when the recipe is crafted.

      In terms of vanilla parity, this doesnt make much sense. Chest loot tables are calculated when opened (as of 1.16.40 due to requests from community + marketplace partners), but not recipes when crafted. This issue is severely limiting for add-on creativity for a variety of reasons. 

      1) recipe input/output cannot be dynamically randomized/altered. 
      2) global queries such as query.time_stamp cannot be accurately referenced, will always return the same number in any given world session. 

      Attached is a sample pack to craft a dye output with a data value from 0-4 (ingredient is 1 diamond). Notice that the type of dye crafted will always be the same unless you leave and rejoin the world.

        Attachments

          Activity

            People

            Reporter:
            ambient ambient
            Votes:
            11 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              CHK: