1

Is it possible to change the motion for a only one direction?

I tried for example: Motion[0:1d,1:~,2:,~], but it didn't work.

1
  • You need to add more details to this question. For starters, show us the full command you're trying to run.
    – MBraedley
    Mar 26, 2017 at 19:21

2 Answers 2

1

In Minecraft 1.14 and later versions, this can be done using the /data modify command:

To set the X coordinate of an entity:

/data modify entity <entity> Motion[<coord>] set value <value>d

Use Motion[0] for the X coordinate, Motion[1] for the Y coordinate, and Motion[2] for the Z coordinate.

2
  • I might be wrong, but don't indexes normally start at 0? Or is NBT different? Just checkin
    – Penguin
    Dec 14, 2020 at 2:04
  • Yes, they do. Oops.
    – pppery
    Dec 14, 2020 at 2:55
-1

No, you must specify the 3 directions, and cannot use ~ in NBT.

So you cannot do so.

1
  • ty ! i found another way to do it
    – GUEST
    Apr 18, 2017 at 18:29

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .