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

[Blocks] Trigger conditions not working.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • 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. demo.zip
          7 kB
        2. Example.mcaddon
          4 kB
        3. image-2020-10-17-01-16-08-145.png
          image-2020-10-17-01-16-08-145.png
          34 kB
        4. image-2020-10-17-01-34-49-179.png
          image-2020-10-17-01-34-49-179.png
          35 kB
        5. test_block.json
          1 kB

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

              Created:
              Updated:
              CHK: