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

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.16.210.59 Beta, 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, 1.16.201 Hotfix, 1.19.22 Hotfix
    • Confirmed
    • Windows
    • 421012

      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.20 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.

            ambient ambient
            Votes:
            15 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              CHK: