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

triggerEvent doesn't work for items

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • None
    • 1.19.51, 1.20.62 Hotfix
    • Confirmed
    • Multiple
    • 958456

      If you try to trigger an item event using triggerEvent in gametest on an custom item with an item event, it won't trigger the item event and also wont give any error message, it only causes an single watchdog warning when you run it for the first time. (seen in the image) :

      [Scripting][warning] 2201.517 ms script spike detected in behavior pack 'Star Wars Add-on Armory Supply Pack v.1.12 [BP]'

      Steps to reproduce:

      1. Install the addon pack given in the attachment
      2. Create an new world with gametest settings on
      3. Search for the item named dc15s and click it (keep in mind that in this pack it will also shoot an bullet and open an form ui) 
      4. What should happen: the message test should appear
      5. What actually happens: nothing at all happens

      Observed Results:
      expected trigger does not run, only one error at the first time trigger attempted: [Scripting][warning] 2201.517 ms script spike detected in behavior pack 'Star Wars Add-on Armory Supply Pack v.1.12 [BP]'

      Expected Results:
      trigger is expected to run.

            ID9999 ID-Production
            Votes:
            5 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: