[BDS-19626] Await Script API not functioning as expected Created: 18/Aug/24 Updated: 19/Aug/24 Resolved: 19/Aug/24 |
|
| Status: | Resolved |
| Project: | Bedrock Dedicated Server |
| Affects Version/s: | 1.21.21 |
| Fix Version/s: | None |
| Type: | Bug | ||
| Reporter: | LittleRAT | Assignee: | Unassigned |
| Resolution: | Awaiting Response | Votes: | 0 |
| Labels: | None | ||
| Confirmation Status: | Unconfirmed |
| Description |
await player.runCommandAsync(`clear @s[hasitem={item=bedrock,quantity=64..}] bedrock 0 64`)
Command 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.
form.show(player).then(async r => {
if (r.selection == 0) {
try {
await player.runCommandAsync(`clear @s[hasitem={item=brick_block,quantity=1..}] brick_block 0 1`)
world.sendMessage("Removed 1 brick_block from your inventory")
}
catch (error)
{
world.sendMessage("You have no more brick_block to remove from your inventory")
}
|
| Comments |
| Comment by [MCQA] v-krbaj [ 19/Aug/24 ] |
|
Hi, Please include the following information to help us understand your problem:
Please also attach any needed commands, datapacks, resourcepacks, screenshots, videos, or worlds needed to help reproduce this issue. Refer to the Bug Tracker Guidelines for more information about how to write helpful bug reports. Bug reports with insufficient information may be closed as Incomplete. This issue is being temporarily resolved as Awaiting Response. Once the requested information has been delivered, the report will be reopened automatically. Quick Links: |
| Comment by [Mod] Jarl-Penguin [ 18/Aug/24 ] |
|
|