1

[COMMAND BLOCK PROBLEM] Can you apply motion to players?

RadiantGaming 7/16/15 11:32 pm
3.5k
7/25/2015 5:36 am
Hey, I was wondering whether you can use entitydata to apply motion to players. If you can't, is there another way to?

Cheers,
Radiant
Posted by
RadiantGaming
Level 21 : Expert Button Pusher
17

  Have something to say?

JoinSign in

8

Jmal116
07/22/2015 9:25 am
Level 34 : Artisan System
If I remember correctly snowballs don't do damage, however they do leave a pretty large particle effect when they hit something. That and for some reason I had trouble with making snowballs actually knock me back, that's something I'd have to look into.

Arrows on the other hand don't leave particles, but they do deal damage and stick in the player. The damage issue can be solved by giving the player a resistance effect for a short time, but as far as I'm aware there's nothing that can really be done about arrows stuck in the player (unless the kill command still works on them there).

In the end it's going to depend on the situation and what works out best for you, and what we can figure out first.
1
RadiantGaming
07/24/2015 10:59 am
Level 21 : Expert Button Pusher
For some reason I can't get ANYTHING to get summoned under me and actually hit me :/
1
Jmal116
07/24/2015 8:59 pm
Level 34 : Artisan System
Well first things first, what direction are you trying to push the player, and what command are you using? Just copy/paste from the command block. You can't select the command with the mouse though, just hit ctrl+a to select it all.
1
RadiantGaming
07/25/2015 5:36 am
Level 21 : Expert Button Pusher
I just want the player to be pushed up.
1
Jmal116
07/17/2015 5:10 pm
Level 34 : Artisan System
The entitydata command actually doesn't work on players at all. You may be able to use teleports like ean521 said, or you could try summoning arrows or snowballs near players if you just want to knock them around a bit.
1
ean521
07/17/2015 5:38 am
Level 11 : Journeyman Ranger
I do not believe that you can, but there is thing called the tp command that can be used repetitively in small increments to simulate such movement. Have you experimented with entitydata to see if it can do what you need? What is the context (why do you need such motion)?
1
RadiantGaming
07/22/2015 6:09 am
Level 21 : Expert Button Pusher
Jmal116The entitydata command actually doesn't work on players at all. You may be able to use teleports like ean521 said, or you could try summoning arrows or snowballs near players if you just want to knock them around a bit.


Okay, I've experimented with stuff a bit, and entitydata completely dosen't work on players. Using the TP command doesn't really give that smooth linear motion effect, and just ends up really glitchy. But I really like Jmal116's idea of summoning entities to apply motion, but then again I can't think of anything that won't do damage. I pretty sure either eggs or snowballs don't actually do damage(I don't remember which). Any other ideas?
1
RadiantGaming
07/16/2015 11:36 pm
Level 21 : Expert Button Pusher
bump
1

Welcome