{
   "expand": "operations,versionedRepresentations,editmeta,changelog,renderedFields",
   "id": "566745",
   "self": "https://bugs.mojang.com/rest/api/2/issue/566745",
   "key": "BDS-19626",
   "fields": {
      "issuetype": "1",
      "project": "11700",
      "fixVersions": [],
      "resolution": "10001",
      "customfield_10500": {
         "self": "https://bugs.mojang.com/rest/api/2/customFieldOption/10300",
         "value": "Unconfirmed",
         "id": "10300",
         "disabled": false
      },
      "customfield_12800": null,
      "customfield_12602": [],
      "customfield_12601": null,
      "customfield_12604": null,
      "customfield_12603": null,
      "customfield_12606": null,
      "customfield_12605": null,
      "customfield_12608": null,
      "resolutiondate": "2024-08-19T11:16:27.000+0300",
      "customfield_12607": null,
      "customfield_12609": null,
      "workratio": -1,
      "lastViewed": null,
      "watches": {
         "self": "https://bugs.mojang.com/rest/api/2/issue/BDS-19626/watchers",
         "watchCount": 0,
         "isWatching": false
      },
      "created": "2024-08-18T06:49:00.000+0300",
      "customfield_12000": null,
      "customfield_12201": null,
      "customfield_12600": null,
      "labels": [],
      "customfield_11700": "{}",
      "versions": [
         "22455"
      ],
      "issuelinks": [],
      "assignee": null,
      "updated": "2024-08-19T11:16:27.000+0300",
      "status": "5",
      "description": "{code:java}\r\nawait player.runCommandAsync(`clear @s[hasitem={item=bedrock,quantity=64..}] bedrock 0 64`){code}\r\nCommand above works when typed in game yet using it within my behaviour pack it does not? nor does it even return in chat or console.\r\nI'd found similar code from another script as I went digging after I couldn't get my own to work and same issue arises?\r\n\u00a0\r\nBigger snippet here\r\n{code:java}\r\nform.show(player).then(async r => {\r\nif (r.selection == 0) {\r\ntry {\r\nawait player.runCommandAsync(`clear @s[hasitem={item=brick_block,quantity=1..}] brick_block 0 1`)\r\nworld.sendMessage(\"Removed 1 brick_block from your inventory\")\r\n}\r\ncatch (error)\r\n{\r\nworld.sendMessage(\"You have no more brick_block to remove from your inventory\")\r\n}{code}\r\n\u00a0\r\n\u00a0\r\n\u00a0\r\n\u00a0",
      "customfield_11100": 0.0,
      "customfield_11300": null,
      "customfield_11500": null,
      "customfield_12503": null,
      "customfield_12700": "[Briefly describe the bug here]\r\n\r\n*Steps to Reproduce:*\r\n# [Step 1]\r\n# [Step 2]\r\n# [Step 3]\r\n\r\n*Observed Results:*\r\n[Describe what happens]\r\n\r\n*Expected Results:*\r\n[Describe what should happen]\r\n\r\n*Screenshots/Videos attached:* [please attach an image or short video]\r\n\r\n*Notes:*",
      "customfield_12502": null,
      "customfield_12504": null,
      "attachment": [],
      "summary": "Await Script API not functioning as expected",
      "creator": "JIRAUSER790594",
      "reporter": "JIRAUSER790594",
      "customfield_10002": null,
      "customfield_12501": null,
      "customfield_12500": null,
      "customfield_11601": null,
      "customfield_11600": "0|i2j0gv:",
      "environment": null,
      "customfield_11801": null,
      "customfield_11800": null,
      "customfield_11602": null,
      "customfield_11802": null,
      "comment": {
         "comments": [
            {
               "self": "https://bugs.mojang.com/rest/api/2/issue/566745/comment/1348479",
               "id": "1348479",
               "author": "jarl-penguin",
               "body": "{panel:borderColor=orange}(!) Please do not mark issues as _private_, unless your bug report is an exploit or contains personal information/information about your username or server.{panel}",
               "updateAuthor": "jarl-penguin",
               "created": "2024-08-18T09:52:35.250+0300",
               "updated": "2024-08-18T09:52:35.250+0300"
            },
            {
               "self": "https://bugs.mojang.com/rest/api/2/issue/566745/comment/1348966",
               "id": "1348966",
               "author": "JIRAUSER788919",
               "body": "Hi,\r\n_We do not have enough information to reproduce this issue._\r\n\r\nPlease include the following information to help us understand your problem:\r\n{quote}\r\n*Steps to Reproduce:*\r\n1. _(Explain what needs to be done for the issue to happen)_\r\n2.\r\n3.\r\n\r\n*Observed Results:*\r\n_(Briefly describe what happens)_\r\n\r\n*Expected Results:*\r\n_(Briefly describe what should happen)_\r\n{quote}\r\nPlease also attach any needed commands, datapacks, resourcepacks, screenshots, videos, or worlds needed to help reproduce this issue.\r\n\r\nRefer to the [*Bug Tracker Guidelines*|https://aka.ms/MCBugTrackerHelp] for more information about how to write helpful bug reports. Bug reports with insufficient information may be closed as *Incomplete*.\r\n\r\n~This issue is being temporarily resolved as {color:#d04437}*Awaiting Response*{color}. Once the requested information has been delivered, the report will be reopened automatically.~\r\n\r\n*Quick Links*:\r\n\ud83d\udcd3 [Bug Tracker Guidelines|https://aka.ms/MCBugTrackerHelp] -- \ud83d\udce7 [Mojang Support (Technical Issues)|https://aka.ms/Minecraft-Support] -- \ud83d\udce7 [Microsoft Support (Account Issues)|https://support.xbox.com/contact-us/]\r\n\ud83d\udcd3 [Project Summary|https://bugs.mojang.com/projects/BDS/summary] -- \u270d\ufe0f [Feedback and Suggestions|https://aka.ms/MinecraftFeedbackDiscord] -- \ud83d\udcd6 [BDS Wiki|https://minecraft.wiki/w/Bedrock_Dedicated_Server] -- \ud83d\udcd6 [FAQs|https://help.minecraft.net/hc/en-us/articles/360035131651-Dedicated-Servers-for-Minecraft-on-Bedrock-]",
               "updateAuthor": "JIRAUSER788919",
               "created": "2024-08-19T11:16:27.765+0300",
               "updated": "2024-08-19T11:16:27.765+0300"
            }
         ],
         "maxResults": 2,
         "total": 2,
         "startAt": 0
      },
      "votes": {
         "self": "https://bugs.mojang.com/rest/api/2/issue/BDS-19626/votes",
         "votes": 0,
         "hasVoted": false
      }
   },
   "changelog": {
      "startAt": 0,
      "maxResults": 9,
      "total": 9,
      "histories": [
         {
            "id": "3060054",
            "author": "JIRAUSER790594",
            "created": "2024-08-18T07:03:37.743+0300",
            "items": [
               {
                  "field": "description",
                  "fieldtype": "jira",
                  "from": null,
                  "fromString": "{code:java}\r\nawait player.runCommandAsync(`clear @s[hasitem={item=bedrock,quantity=64..}] bedrock 0 64`){code}\r\nCommand above works when typed in game yet using it within my behaviour pack it does not? nor does it even return in chat or console.\r\nI'd found similar code from another script as I went digging after I couldn't get my own to work and same issue arises?\r\n\u00a0\r\nBigger snippet here\r\n\u00a0\r\n{code:java}\r\nbutton(`Sell`) \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \r\n.button(`Cancel`) \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \r\n.show(player).then(async r => { \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \r\nif (r.selection == 0) { \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \r\ntry { \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0  \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \r\nawait player.runCommandAsync(`clear @s[hasitem={item=bedrock,quantity=64..}] bedrock 0 64`) \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \r\n//await player.runCommandAsync(`clear @s[hasitem={item=${id},quantity=${slider}..}] ${id} 0 ${slider}`); \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \r\n// Everything below get's executed??? regardless of above\r\nplayer.runCommandAsync(`scoreboard players add @s Money ${finalPrice}`); \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 player.runCommandAsync(`tellraw @s {\"rawtext\":[{\"text\":\"${WHITE}You sold ${slider} ${item} for ${GREEN}\u00a3${finalPrice}\"}]}`) \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u00a0 \u00a0 \u00a0 \r\n} catch (e) { \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \r\nplayer.runCommandAsync(`tellraw @s {\"rawtext\":[{\"text\":\"${RED}You do not have enough ${item} to sell!\"}]}`) \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \r\n} \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \r\nif (r.selection == 1) { \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\r\nreturn\r\n}{code}\r\n\u00a0\r\n\u00a0\r\n\u00a0\r\n\u00a0",
                  "to": null,
                  "toString": "{code:java}\r\nawait player.runCommandAsync(`clear @s[hasitem={item=bedrock,quantity=64..}] bedrock 0 64`){code}\r\nCommand above works when typed in game yet using it within my behaviour pack it does not? nor does it even return in chat or console.\r\nI'd found similar code from another script as I went digging after I couldn't get my own to work and same issue arises?\r\n\u00a0\r\nBigger snippet here\r\n\u00a0\r\n{code:java}\r\nbutton(`Sell`) \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \r\n.button(`Cancel`) \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \r\n.show(player).then(async r => { \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \r\nif (r.selection == 0) { \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \r\ntry { \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0  \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \r\nawait player.runCommandAsync(`clear @s[hasitem={item=bedrock,quantity=64..}] bedrock 0 64`) \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \r\n//await player.runCommandAsync(`clear @s[hasitem={item=${id},quantity=${slider}..}] ${id} 0 ${slider}`); \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \r\n// Everything below get's executed??? regardless of above\r\nplayer.runCommandAsync(`scoreboard players add @s Money ${finalPrice}`); \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \r\nplayer.runCommandAsync(`tellraw @s {\"rawtext\":[{\"text\":\"${WHITE}You sold ${slider} ${item} for ${GREEN}\u00a3${finalPrice}\"}]}`) \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u00a0 \u00a0 \u00a0 \r\n} catch (e) { \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \r\nplayer.runCommandAsync(`tellraw @s {\"rawtext\":[{\"text\":\"${RED}You do not have enough ${item} to sell!\"}]}`) \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \r\n} \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \r\nif (r.selection == 1) { \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\r\nreturn\r\n}{code}\r\n\u00a0\r\n\u00a0\r\n\u00a0\r\n\u00a0"
               }
            ]
         },
         {
            "id": "3060055",
            "author": "JIRAUSER790594",
            "created": "2024-08-18T07:03:53.330+0300",
            "items": [
               {
                  "field": "description",
                  "fieldtype": "jira",
                  "from": null,
                  "fromString": "{code:java}\r\nawait player.runCommandAsync(`clear @s[hasitem={item=bedrock,quantity=64..}] bedrock 0 64`){code}\r\nCommand above works when typed in game yet using it within my behaviour pack it does not? nor does it even return in chat or console.\r\nI'd found similar code from another script as I went digging after I couldn't get my own to work and same issue arises?\r\n\u00a0\r\nBigger snippet here\r\n\u00a0\r\n{code:java}\r\nbutton(`Sell`) \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \r\n.button(`Cancel`) \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \r\n.show(player).then(async r => { \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \r\nif (r.selection == 0) { \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \r\ntry { \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0  \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \r\nawait player.runCommandAsync(`clear @s[hasitem={item=bedrock,quantity=64..}] bedrock 0 64`) \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \r\n//await player.runCommandAsync(`clear @s[hasitem={item=${id},quantity=${slider}..}] ${id} 0 ${slider}`); \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \r\n// Everything below get's executed??? regardless of above\r\nplayer.runCommandAsync(`scoreboard players add @s Money ${finalPrice}`); \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \r\nplayer.runCommandAsync(`tellraw @s {\"rawtext\":[{\"text\":\"${WHITE}You sold ${slider} ${item} for ${GREEN}\u00a3${finalPrice}\"}]}`) \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u00a0 \u00a0 \u00a0 \r\n} catch (e) { \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \r\nplayer.runCommandAsync(`tellraw @s {\"rawtext\":[{\"text\":\"${RED}You do not have enough ${item} to sell!\"}]}`) \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \r\n} \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \r\nif (r.selection == 1) { \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\r\nreturn\r\n}{code}\r\n\u00a0\r\n\u00a0\r\n\u00a0\r\n\u00a0",
                  "to": null,
                  "toString": "{code:java}\r\nawait player.runCommandAsync(`clear @s[hasitem={item=bedrock,quantity=64..}] bedrock 0 64`){code}\r\nCommand above works when typed in game yet using it within my behaviour pack it does not? nor does it even return in chat or console.\r\nI'd found similar code from another script as I went digging after I couldn't get my own to work and same issue arises?\r\n\u00a0\r\nBigger snippet here\r\n\u00a0\r\n{code:java}\r\n.button(`Sell`) \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \r\n.button(`Cancel`) \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \r\n.show(player).then(async r => { \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \r\nif (r.selection == 0) { \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \r\ntry { \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0  \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \r\nawait player.runCommandAsync(`clear @s[hasitem={item=bedrock,quantity=64..}] bedrock 0 64`) \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \r\n//await player.runCommandAsync(`clear @s[hasitem={item=${id},quantity=${slider}..}] ${id} 0 ${slider}`); \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \r\n// Everything below get's executed??? regardless of above\r\nplayer.runCommandAsync(`scoreboard players add @s Money ${finalPrice}`); \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \r\nplayer.runCommandAsync(`tellraw @s {\"rawtext\":[{\"text\":\"${WHITE}You sold ${slider} ${item} for ${GREEN}\u00a3${finalPrice}\"}]}`) \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u00a0 \u00a0 \u00a0 \r\n} catch (e) { \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \r\nplayer.runCommandAsync(`tellraw @s {\"rawtext\":[{\"text\":\"${RED}You do not have enough ${item} to sell!\"}]}`) \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \r\n} \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \r\nif (r.selection == 1) { \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\r\nreturn\r\n}{code}\r\n\u00a0\r\n\u00a0\r\n\u00a0\r\n\u00a0"
               }
            ]
         },
         {
            "id": "3060210",
            "author": "jarl-penguin",
            "created": "2024-08-18T09:52:35.254+0300",
            "items": [
               {
                  "field": "security",
                  "fieldtype": "jira",
                  "from": "10318",
                  "fromString": "Minecraft - Private",
                  "to": null,
                  "toString": null
               },
               {
                  "field": "status",
                  "fieldtype": "jira",
                  "from": "1",
                  "fromString": "Open",
                  "to": "1",
                  "toString": "Open"
               }
            ]
         },
         {
            "id": "3060272",
            "author": "JIRAUSER790594",
            "created": "2024-08-18T11:52:52.111+0300",
            "items": [
               {
                  "field": "description",
                  "fieldtype": "jira",
                  "from": null,
                  "fromString": "{code:java}\r\nawait player.runCommandAsync(`clear @s[hasitem={item=bedrock,quantity=64..}] bedrock 0 64`){code}\r\nCommand above works when typed in game yet using it within my behaviour pack it does not? nor does it even return in chat or console.\r\nI'd found similar code from another script as I went digging after I couldn't get my own to work and same issue arises?\r\n\u00a0\r\nBigger snippet here\r\n\u00a0\r\n{code:java}\r\n.button(`Sell`) \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \r\n.button(`Cancel`) \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \r\n.show(player).then(async r => { \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \r\nif (r.selection == 0) { \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \r\ntry { \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0  \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \r\nawait player.runCommandAsync(`clear @s[hasitem={item=bedrock,quantity=64..}] bedrock 0 64`) \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \r\n//await player.runCommandAsync(`clear @s[hasitem={item=${id},quantity=${slider}..}] ${id} 0 ${slider}`); \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \r\n// Everything below get's executed??? regardless of above\r\nplayer.runCommandAsync(`scoreboard players add @s Money ${finalPrice}`); \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \r\nplayer.runCommandAsync(`tellraw @s {\"rawtext\":[{\"text\":\"${WHITE}You sold ${slider} ${item} for ${GREEN}\u00a3${finalPrice}\"}]}`) \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u00a0 \u00a0 \u00a0 \r\n} catch (e) { \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \r\nplayer.runCommandAsync(`tellraw @s {\"rawtext\":[{\"text\":\"${RED}You do not have enough ${item} to sell!\"}]}`) \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \r\n} \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \r\nif (r.selection == 1) { \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\r\nreturn\r\n}{code}\r\n\u00a0\r\n\u00a0\r\n\u00a0\r\n\u00a0",
                  "to": null,
                  "toString": "{code:java}\r\nawait player.runCommandAsync(`clear @s[hasitem={item=bedrock,quantity=64..}] bedrock 0 64`){code}\r\nCommand above works when typed in game yet using it within my behaviour pack it does not? nor does it even return in chat or console.\r\nI'd found similar code from another script as I went digging after I couldn't get my own to work and same issue arises?\r\n\u00a0\r\nBigger snippet here\r\n\r\n[Update]\r\n\r\n\u00a0runCommandAsync ignores anything after @ so instead of minecraft reading the full command as I'd expect\u00a0\r\n{code:java}\r\n`clear @s[hasitem={item=${id},quantity=${slider}..}] ${id} 0 ${slider}`{code}\r\n\u00a0instead runs \r\n{code:java}\r\nclear @s ${id} 0 ${slider}{code}\r\n{code:java}\r\n.button(`Sell`) \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \r\n.button(`Cancel`) \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \r\n.show(player).then(async r => { \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \r\nif (r.selection == 0) { \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \r\ntry { \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0  \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \r\nawait player.runCommandAsync(`clear @s[hasitem={item=bedrock,quantity=64..}] bedrock 0 64`) \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \r\n//await player.runCommandAsync(`clear @s[hasitem={item=${id},quantity=${slider}..}] ${id} 0 ${slider}`); \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \r\n// Everything below get's executed??? regardless of above\r\nplayer.runCommandAsync(`scoreboard players add @s Money ${finalPrice}`); \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \r\nplayer.runCommandAsync(`tellraw @s {\"rawtext\":[{\"text\":\"${WHITE}You sold ${slider} ${item} for ${GREEN}\u00a3${finalPrice}\"}]}`) \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u00a0 \u00a0 \u00a0 \r\n} catch (e) { \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \r\nplayer.runCommandAsync(`tellraw @s {\"rawtext\":[{\"text\":\"${RED}You do not have enough ${item} to sell!\"}]}`) \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \r\n} \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \r\nif (r.selection == 1) { \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\r\nreturn\r\n}{code}\r\n\u00a0\r\n\u00a0\r\n\u00a0\r\n\u00a0"
               }
            ]
         },
         {
            "id": "3060290",
            "author": "JIRAUSER790594",
            "created": "2024-08-18T12:02:52.479+0300",
            "items": [
               {
                  "field": "description",
                  "fieldtype": "jira",
                  "from": null,
                  "fromString": "{code:java}\r\nawait player.runCommandAsync(`clear @s[hasitem={item=bedrock,quantity=64..}] bedrock 0 64`){code}\r\nCommand above works when typed in game yet using it within my behaviour pack it does not? nor does it even return in chat or console.\r\nI'd found similar code from another script as I went digging after I couldn't get my own to work and same issue arises?\r\n\u00a0\r\nBigger snippet here\r\n\r\n[Update]\r\n\r\n\u00a0runCommandAsync ignores anything after @ so instead of minecraft reading the full command as I'd expect\u00a0\r\n{code:java}\r\n`clear @s[hasitem={item=${id},quantity=${slider}..}] ${id} 0 ${slider}`{code}\r\n\u00a0instead runs \r\n{code:java}\r\nclear @s ${id} 0 ${slider}{code}\r\n{code:java}\r\n.button(`Sell`) \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \r\n.button(`Cancel`) \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \r\n.show(player).then(async r => { \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \r\nif (r.selection == 0) { \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \r\ntry { \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0  \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \r\nawait player.runCommandAsync(`clear @s[hasitem={item=bedrock,quantity=64..}] bedrock 0 64`) \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \r\n//await player.runCommandAsync(`clear @s[hasitem={item=${id},quantity=${slider}..}] ${id} 0 ${slider}`); \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \r\n// Everything below get's executed??? regardless of above\r\nplayer.runCommandAsync(`scoreboard players add @s Money ${finalPrice}`); \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \r\nplayer.runCommandAsync(`tellraw @s {\"rawtext\":[{\"text\":\"${WHITE}You sold ${slider} ${item} for ${GREEN}\u00a3${finalPrice}\"}]}`) \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u00a0 \u00a0 \u00a0 \r\n} catch (e) { \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \r\nplayer.runCommandAsync(`tellraw @s {\"rawtext\":[{\"text\":\"${RED}You do not have enough ${item} to sell!\"}]}`) \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \r\n} \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \r\nif (r.selection == 1) { \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\r\nreturn\r\n}{code}\r\n\u00a0\r\n\u00a0\r\n\u00a0\r\n\u00a0",
                  "to": null,
                  "toString": "{code:java}\r\nawait player.runCommandAsync(`clear @s[hasitem={item=bedrock,quantity=64..}] bedrock 0 64`){code}\r\nCommand above works when typed in game yet using it within my behaviour pack it does not? nor does it even return in chat or console.\r\nI'd found similar code from another script as I went digging after I couldn't get my own to work and same issue arises?\r\n\u00a0\r\nBigger snippet here\r\n\r\n[Update]\r\n\r\n\u00a0runCommandAsync ignores anything after @ so instead of minecraft reading the full command as I'd expect\u00a0\r\n{code:java}\r\n`clear @s[hasitem={item=${id},quantity=${slider}..}] ${id} 0 ${slider}`{code}\r\n\u00a0instead runs but this still does not fix my issue using double @@\r\n{code:java}\r\nclear @s ${id} 0 ${slider}{code}\r\n{code:java}\r\n.button(`Sell`) \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \r\n.button(`Cancel`) \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \r\n.show(player).then(async r => { \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \r\nif (r.selection == 0) { \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \r\ntry { \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0  \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \r\nawait player.runCommandAsync(`clear @s[hasitem={item=bedrock,quantity=64..}] bedrock 0 64`) \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \r\n//await player.runCommandAsync(`clear @s[hasitem={item=${id},quantity=${slider}..}] ${id} 0 ${slider}`); \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \r\n// Everything below get's executed??? regardless of above\r\nplayer.runCommandAsync(`scoreboard players add @s Money ${finalPrice}`); \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \r\nplayer.runCommandAsync(`tellraw @s {\"rawtext\":[{\"text\":\"${WHITE}You sold ${slider} ${item} for ${GREEN}\u00a3${finalPrice}\"}]}`) \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u00a0 \u00a0 \u00a0 \r\n} catch (e) { \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \r\nplayer.runCommandAsync(`tellraw @s {\"rawtext\":[{\"text\":\"${RED}You do not have enough ${item} to sell!\"}]}`) \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \r\n} \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \r\nif (r.selection == 1) { \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\r\nreturn\r\n}{code}\r\n\u00a0\r\n\u00a0\r\n\u00a0\r\n\u00a0"
               }
            ]
         },
         {
            "id": "3060298",
            "author": "JIRAUSER790594",
            "created": "2024-08-18T12:11:28.560+0300",
            "items": [
               {
                  "field": "description",
                  "fieldtype": "jira",
                  "from": null,
                  "fromString": "{code:java}\r\nawait player.runCommandAsync(`clear @s[hasitem={item=bedrock,quantity=64..}] bedrock 0 64`){code}\r\nCommand above works when typed in game yet using it within my behaviour pack it does not? nor does it even return in chat or console.\r\nI'd found similar code from another script as I went digging after I couldn't get my own to work and same issue arises?\r\n\u00a0\r\nBigger snippet here\r\n\r\n[Update]\r\n\r\n\u00a0runCommandAsync ignores anything after @ so instead of minecraft reading the full command as I'd expect\u00a0\r\n{code:java}\r\n`clear @s[hasitem={item=${id},quantity=${slider}..}] ${id} 0 ${slider}`{code}\r\n\u00a0instead runs but this still does not fix my issue using double @@\r\n{code:java}\r\nclear @s ${id} 0 ${slider}{code}\r\n{code:java}\r\n.button(`Sell`) \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \r\n.button(`Cancel`) \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \r\n.show(player).then(async r => { \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \r\nif (r.selection == 0) { \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \r\ntry { \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0  \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \r\nawait player.runCommandAsync(`clear @s[hasitem={item=bedrock,quantity=64..}] bedrock 0 64`) \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \r\n//await player.runCommandAsync(`clear @s[hasitem={item=${id},quantity=${slider}..}] ${id} 0 ${slider}`); \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \r\n// Everything below get's executed??? regardless of above\r\nplayer.runCommandAsync(`scoreboard players add @s Money ${finalPrice}`); \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \r\nplayer.runCommandAsync(`tellraw @s {\"rawtext\":[{\"text\":\"${WHITE}You sold ${slider} ${item} for ${GREEN}\u00a3${finalPrice}\"}]}`) \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u00a0 \u00a0 \u00a0 \r\n} catch (e) { \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \r\nplayer.runCommandAsync(`tellraw @s {\"rawtext\":[{\"text\":\"${RED}You do not have enough ${item} to sell!\"}]}`) \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \r\n} \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \r\nif (r.selection == 1) { \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\r\nreturn\r\n}{code}\r\n\u00a0\r\n\u00a0\r\n\u00a0\r\n\u00a0",
                  "to": null,
                  "toString": "{code:java}\r\nawait player.runCommandAsync(`clear @s[hasitem={item=bedrock,quantity=64..}] bedrock 0 64`){code}\r\nCommand above works when typed in game yet using it within my behaviour pack it does not? nor does it even return in chat or console.\r\nI'd found similar code from another script as I went digging after I couldn't get my own to work and same issue arises?\r\n\u00a0\r\nBigger snippet here\r\n\r\n[Update]\r\n\r\n\u00a0runCommandAsync ignores anything after @ so instead of minecraft reading the full command as I'd expect\u00a0\r\n{code:java}\r\n`clear @s[hasitem={item=${id},quantity=${slider}..}] ${id} 0 ${slider}`{code}\r\n\u00a0instead runs but this still does not fix my issue using double @@\r\n{code:java}\r\nclear @s ${id} 0 ${slider}{code}\r\n{code:java}\r\nform.show(player).then(async r => {\r\nif (r.selection == 0) {\r\ntry {\r\nawait player.runCommandAsync(`clear @s[hasitem={item=brick_block,quantity=1..}] brick_block 0 1`)\r\nworld.sendMessage(\"Removed 1 brick_block from your inventory\")\r\n}\r\ncatch (e)\r\n{\r\nworld.sendMessage(\"You have no more brick_block to remove from your inventory\")\r\n}{code}\r\n\u00a0\r\n\u00a0\r\n\u00a0\r\n\u00a0"
               }
            ]
         },
         {
            "id": "3060307",
            "author": "JIRAUSER790594",
            "created": "2024-08-18T12:19:58.086+0300",
            "items": [
               {
                  "field": "description",
                  "fieldtype": "jira",
                  "from": null,
                  "fromString": "{code:java}\r\nawait player.runCommandAsync(`clear @s[hasitem={item=bedrock,quantity=64..}] bedrock 0 64`){code}\r\nCommand above works when typed in game yet using it within my behaviour pack it does not? nor does it even return in chat or console.\r\nI'd found similar code from another script as I went digging after I couldn't get my own to work and same issue arises?\r\n\u00a0\r\nBigger snippet here\r\n\r\n[Update]\r\n\r\n\u00a0runCommandAsync ignores anything after @ so instead of minecraft reading the full command as I'd expect\u00a0\r\n{code:java}\r\n`clear @s[hasitem={item=${id},quantity=${slider}..}] ${id} 0 ${slider}`{code}\r\n\u00a0instead runs but this still does not fix my issue using double @@\r\n{code:java}\r\nclear @s ${id} 0 ${slider}{code}\r\n{code:java}\r\nform.show(player).then(async r => {\r\nif (r.selection == 0) {\r\ntry {\r\nawait player.runCommandAsync(`clear @s[hasitem={item=brick_block,quantity=1..}] brick_block 0 1`)\r\nworld.sendMessage(\"Removed 1 brick_block from your inventory\")\r\n}\r\ncatch (e)\r\n{\r\nworld.sendMessage(\"You have no more brick_block to remove from your inventory\")\r\n}{code}\r\n\u00a0\r\n\u00a0\r\n\u00a0\r\n\u00a0",
                  "to": null,
                  "toString": "{code:java}\r\nawait player.runCommandAsync(`clear @s[hasitem={item=bedrock,quantity=64..}] bedrock 0 64`){code}\r\nCommand above works when typed in game yet using it within my behaviour pack it does not? nor does it even return in chat or console.\r\nI'd found similar code from another script as I went digging after I couldn't get my own to work and same issue arises?\r\n\u00a0\r\nBigger snippet here\r\n{code:java}\r\nform.show(player).then(async r => {\r\nif (r.selection == 0) {\r\ntry {\r\nawait player.runCommandAsync(`clear @s[hasitem={item=brick_block,quantity=1..}] brick_block 0 1`)\r\nworld.sendMessage(\"Removed 1 brick_block from your inventory\")\r\n}\r\ncatch (e)\r\n{\r\nworld.sendMessage(\"You have no more brick_block to remove from your inventory\")\r\n}{code}\r\n\u00a0\r\n\u00a0\r\n\u00a0\r\n\u00a0"
               }
            ]
         },
         {
            "id": "3060309",
            "author": "JIRAUSER790594",
            "created": "2024-08-18T12:20:08.822+0300",
            "items": [
               {
                  "field": "description",
                  "fieldtype": "jira",
                  "from": null,
                  "fromString": "{code:java}\r\nawait player.runCommandAsync(`clear @s[hasitem={item=bedrock,quantity=64..}] bedrock 0 64`){code}\r\nCommand above works when typed in game yet using it within my behaviour pack it does not? nor does it even return in chat or console.\r\nI'd found similar code from another script as I went digging after I couldn't get my own to work and same issue arises?\r\n\u00a0\r\nBigger snippet here\r\n{code:java}\r\nform.show(player).then(async r => {\r\nif (r.selection == 0) {\r\ntry {\r\nawait player.runCommandAsync(`clear @s[hasitem={item=brick_block,quantity=1..}] brick_block 0 1`)\r\nworld.sendMessage(\"Removed 1 brick_block from your inventory\")\r\n}\r\ncatch (e)\r\n{\r\nworld.sendMessage(\"You have no more brick_block to remove from your inventory\")\r\n}{code}\r\n\u00a0\r\n\u00a0\r\n\u00a0\r\n\u00a0",
                  "to": null,
                  "toString": "{code:java}\r\nawait player.runCommandAsync(`clear @s[hasitem={item=bedrock,quantity=64..}] bedrock 0 64`){code}\r\nCommand above works when typed in game yet using it within my behaviour pack it does not? nor does it even return in chat or console.\r\nI'd found similar code from another script as I went digging after I couldn't get my own to work and same issue arises?\r\n\u00a0\r\nBigger snippet here\r\n{code:java}\r\nform.show(player).then(async r => {\r\nif (r.selection == 0) {\r\ntry {\r\nawait player.runCommandAsync(`clear @s[hasitem={item=brick_block,quantity=1..}] brick_block 0 1`)\r\nworld.sendMessage(\"Removed 1 brick_block from your inventory\")\r\n}\r\ncatch (error)\r\n{\r\nworld.sendMessage(\"You have no more brick_block to remove from your inventory\")\r\n}{code}\r\n\u00a0\r\n\u00a0\r\n\u00a0\r\n\u00a0"
               }
            ]
         },
         {
            "id": "3061256",
            "author": "JIRAUSER788919",
            "created": "2024-08-19T11:16:27.771+0300",
            "items": [
               {
                  "field": "resolution",
                  "fieldtype": "jira",
                  "from": null,
                  "fromString": null,
                  "to": "10001",
                  "toString": "Awaiting Response"
               },
               {
                  "field": "status",
                  "fieldtype": "jira",
                  "from": "1",
                  "fromString": "Open",
                  "to": "5",
                  "toString": "Resolved"
               }
            ]
         }
      ]
   }
}