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

[Blocks] Trigger conditions not working.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Awaiting Response
    • None
    • 1.16.100.60 Beta, 1.20.62 Hotfix, 1.20.71 Hotfix
    • None
    • Community Consensus
    • Windows

      When using 'trigger' events in on_interact component, the 'condition' is not working correctly.
      If you look at the example code, the condition always true. Even when the player is not holding a stick.

      To make sure it wasn't the get_equiped_item_name query that was not working correclty I also tested following code, with same problems (block still gets

      placed, even when condition is '0'):

       

        1. Example.mcaddon
          4 kB
          Zuizuikuso
        2. image-2020-10-17-01-16-08-145.png
          34 kB
          Stijn Defour
        3. image-2020-10-17-01-34-49-179.png
          35 kB
          Stijn Defour
        4. test_block.json
          1 kB
          Zuizuikuso

            StijnD Stijn Defour
            Votes:
            4 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: