TransWikia.com

Motion data tag only for X, Y and Z

Arqade Asked on March 27, 2021

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.

2 Answers

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

So you cannot do so.

Answered by pca006132 on March 27, 2021

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.

Answered by pppery on March 27, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP