Skip to content

Applying motion to the player/targeted entity? #2075

Discussion options

You must be logged in to vote

See this previous discussion which is largely a repeat of some your questions: #1949

As to your specific requirement, just look at net.minecraft.server.command.TeleportCommand and change it to alter the player's velocity instead of doing a teleport.
It's also possible to ServerCommandSource.getPlayer() so the player is implicitly the player running the command, instead of specifying the player as a parameter (the target) like the teleport command does.

Replies: 2 comments 12 replies

Comment options

You must be logged in to vote
5 replies
@ProfLDZ
Comment options

@Linguardium
Comment options

@ProfLDZ
Comment options

@Linguardium
Comment options

@ProfLDZ
Comment options

Comment options

You must be logged in to vote
7 replies
@ProfLDZ
Comment options

@andantet
Comment options

@ProfLDZ
Comment options

@warjort
Comment options

warjort Mar 16, 2022
Collaborator

@warjort
Comment options

warjort Mar 16, 2022
Collaborator

Answer selected by ProfLDZ
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants