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

block behavior "run_command" component does not work correctly when executing the "give" command

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.20.80.24 Preview, 1.20.30.21 Preview, 1.20.30.20 Preview, 1.20.20.23 Preview, 1.20.20.22 Preview, 1.20.20.21 Preview, 1.20.20.20 Preview, 1.20.10.24 Preview, 1.19.80.24 Preview, 1.19.80.23 Preview, 1.19.70.26 Preview, 1.19.70.24/25 Preview, 1.19.70.23 Preview, 1.19.70.22 Preview, 1.19.70.21 Preview, 1.19.70.20 Preview, 1.19.60.26 Preview, 1.19.60.25 Preview, 1.19.60.24 Preview, 1.19.51, 1.19.62, 1.20.0.22 Preview, 1.19.73, 1.19.80, 1.20.0, 1.20.1 Hotfix, 1.20.10, 1.20.12 Hotfix, 1.20.13 Hotfix, 1.20.14 Hotfix, 1.20.72 Hotfix
    • Confirmed
    • Windows
    • 973899

      Steps to Reproduce:
      1. Create a new custom block in behavior_pack and use the run_command event. Write "say get tnt" and "give @s tnt 64" in the command under run_command, and set the target to player
      2. Load this behavior_pack correctly into a world (Turn on the Holiday Creator Features)
      3. Use the method written in behavior_pack to execute the run_command event (the right-click execution in the given figure)(If you use the example addon I provided, enter /give @s example:buy_tnt_block in game).

      Observed Results:
      The "say" command works successfully, but the "give" command has a problem: when the slots to the left of the player's selected hotbar slot are all filled with items, the player no longer gets tnt. (For example, if the player selects the 4th hotbar slot, and the current 3 hotbar slots are all filled with the obtained items, although the "give" command prompt "successfully gave the player TNT*64, the player will no longer get TNT )

      Expected Results:
      The player successfully gets the item specified in the "give" command, and is not affected by the currently selected hotbar slot.

        1. 2023-06-22 16-23-27~7.mp4
          9.80 MB
          IXBOB
        2. example_behavior_pack.mcpack
          32 kB
          IXBOB
        3. example_resource_pack.mcpack
          35 kB
          IXBOB
        4. ScreenShot 2023-06-22 161633.png
          94 kB
          IXBOB

            IXBOB IXBOB
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              CHK: