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

GameTest API: Player.setVelocity Does not work.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.19.10.23 Preview, 1.19.10.22 Preview, 1.19.0.33 Preview, 1.19.0.32 Beta, 1.18.33 Hotfix, 1.18.32, 1.18.20.30 Preview, 1.18.20.28 Preview, 1.18.20.29 Beta, 1.18.20.27 Beta, 1.18.20.25 Beta, 1.18.20.24 Preview, 1.18.20.23 Beta, 1.18.20.22 Preview, 1.18.20.21 Beta, 1.18.10.28 Beta, 1.18.10.27 Beta, 1.18.10, 1.18.12 Hotfix, 1.18.31, 1.19.0
    • Confirmed
    • Multiple
    • 868675

      Player.setVelocity Does not work.

       

      Steps to Reproduce:

      1. Describe the following JavaScript code:

      import { world, Vector } from "mojang-minecraft";
      
      world.events.itemUse.subscribe(ev => {
          const vector = new Vector(0, 1, 0);
          const entities = ev.source.dimension.getEntities();
          for(const entity of entities) {
              entity.dimension.runCommand("say " + entity.id);
              entity.setVelocity(vector);
          }
      });
      

      2. Use any item to ignite events.

       

      Observed Results:

      All entities except players in the same dimension as the player using the item jumps upward.

       

      Expected Results:

      All entities, including players in the same dimension as the player using the item, jump to the upward.

            Lapis256 Lapis
            Votes:
            7 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              CHK: