The /push and /pull commands would work like this:
/pull or /push <entity> <x,y,z or entity> <strength> <radius>
The "pull" command would pull (i know, crazy) a certain entity (like a player, mob, or item) towards a location (x,y,z), or to a player. The "push" command would do the same but push them away from the specified thing.
The different between this and other commands like /tp would be that you can also specify the strength of the pull (ex. 1 would pull it 1%, 27 would pull it 27%, 100 would pull it 100%), with its default at 100. As of push, it is simple math. It will measure the distance towards the target thing (just like pull), and then create a line through the two entities or the entity and location and continue the line past the entity for the same amount it measured it as. This means that if the entity was 100 blocks away from the target, a /push minecraft:zombie{limit:1} (example) 0 72 0 100 would push the entity a further 100 blocks away. By the way, keep in mind I'm terrible at commands so this may not be acurrate (like limit:1)
If the entity is pulled on ice, the percentages would be off, as the speed factor would change, would would add some varability to it. This would also mean that in natural terrain, like hills or oceans, the distance travelled would also change.
The radius could also be specified to only accept entities within it
These two commands could completely change multiplayer and singleplayer worlds and provide new opportunities for creative worlds.
Please sign in to leave a comment.
2 Comments