A /launch command with the following parameters:
/launch <target> toward <entity> <speed> <add/set>
/launch <target> toward <x y z> <speed> <add/set>
/launch <target> <y-rot> <x-rot> <speed> <add/set>
target - entity that would be launched
entity - coordinates of an entity to launch the target to
x y z - coordinates to launch the target towards
power - speed to launch the target, maybe in blocks per tick
y-rot - y rotation the target would be launched in. One can use ~ for relative launching
x-rot - x rotation the target would be launched in. One can use ~ for relative launching
add/set - either add the movement values to the current movement values of the target while set would remove the target's current movement and apply the launch
Here are some examples:
/launch Steve toward Alex 12 set
Steve will move toward Alex at speed 12 with no other movement allowed
/launch @e[type=zombie,tag=Main,limit=1] ~ ~ 1 add
/launch @e[type=zombie,tag=Main,c=1] ~ ~ 1 add
A zombie with the tag Main will move in the direction they're facing with other movement allowed
/launch @e[type=item] toward 3 63 7 0.01 add
Every item will launch toward the coordinate (3, 63, 7) at a slow speed of 0.01. They will be able to fall and be pushed by water like a usual item, with a slow movement toward the coordinate
- Note that movement won't make entities go through blocks, like how walking into a wall doesn't make a player go through it
- Maybe make the set parameter set the client-sided position to the server-sided position
Please sign in to leave a comment.
0 Comments