Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Teleporting an entity riding another doesn't work properly #186

Closed
yrsegal opened this issue Jul 25, 2022 · 6 comments
Closed

Teleporting an entity riding another doesn't work properly #186

yrsegal opened this issue Jul 25, 2022 · 6 comments
Assignees

Comments

@yrsegal
Copy link
Contributor

yrsegal commented Jul 25, 2022

There are a few possible solutions to this. Some examples

  1. Teleporting an entity riding something else dismounts that entity and teleports it
  • Pro: Teleporting a player out of a cart would make sense conceptually
  • YMMV: Teleporting a minecart teleports the player in it
  • Con: Teleporting a Create contraption probably would have strange and unexpected effects
  1. Teleporting an entity removes it from the entity stack (breaking it into below/above) and teleports it
  • Pro: Teleporting an entity out of a stack makes total sense conceptually - only it goes
  • YMMV: Teleporting a minecart doesn't teleport the player
  • Con: Create Contraptions probably act weird
  1. Teleporting an entity riding something else teleports the entire entity stack
  • Pro: Create contraptions work great
  • YMMV: Minecart teleporting
  • Con: Teleporting a zombie jockey takes the chicken with it
  1. Teleporting an entity riding something else mishaps
  • YMMV: Current behavior, but formalized.
@gamma-delta
Copy link
Collaborator

What currently happens re "doesn't work properly"?

@yrsegal
Copy link
Contributor Author

yrsegal commented Jul 25, 2022

the entity "teleports" and then snaps back immediately. Which is great when you're doing it to yourself and your items splatter at the destination...

@yrsegal
Copy link
Contributor Author

yrsegal commented Jul 25, 2022

(the same thing happens with /tp, for reference)

@gamma-delta
Copy link
Collaborator

whoops

I'm inclined to say option 2, but with a tag to activate option 3 for given entity IDs like contraptions.

Hey come to think of it, are Botania spectral-rail-ed minecarts a separate entity? That could be a really cool interaction! If you can get the timing down enough you can teleport the minecart while it's midair hell I'll let you keep your items)

@yrsegal
Copy link
Contributor Author

yrsegal commented Jul 25, 2022

the spectral rail effect is just a component/capability attached to the minecart - presumably it also flips the nogravity flag

@gamma-delta
Copy link
Collaborator

I added a tag. Cool bonus feature: pigs/horses/striders can teleport, so if you really want you can get on a pig, greater teleport the pig, and your items will stay on you! If you're willing to do that much BS then I'll it to you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants