CraftBook 3

CraftBook 3

139k Downloads

Minecarts dont teleport when occupied by player on teleportblock

LadyCailinBot opened this issue · 11 comments

commented

CRAFTBOOK-2359 - Reported by Vladimír.Cimbůrek

The cart teleport block works just with carts alone, when they have passenger in it ( player ) they will just pass by.

commented

Comment by me4502

Should be fixed.

commented

Comment by Vladimír.Cimbůrek

well it worked partially. the cart now teleport with player in it, but get stuck above the target destination block and cant move. its like 3 blocks above the target

commented

Comment by me4502

Is it always 3 blocks above?

commented

Comment by Vladimír.Cimbůrek

i tested the latest build and now it teleports inside the target block. I think its not problem with coords, something in bukkit is messing with the teleport. why else it would stop in air and not fall?

commented

Comment by Vladimír.Cimbůrek

fixed :) thx to me4502

commented

Comment by Vladimír.Cimbůrek

I tried this at clean bukkit server and still nothing

commented

Comment by Zachar543

Due to a commit (Bukkit/CraftBukkit@c6ac44a), any plugin that relies on the teleportation of vehicles/entities that have a passenger will cease to work. I hope the developers see this and help get this commit removed.

commented

Comment by me4502

I see... They made it impossible for entities riding something or vehicles with a passenger to teleport... I will make a workaround this afternoon (in about 6 hours, I'm busy until then)

commented

Comment by Zachar543

Thanks. Also, I have found that many of the workarounds are pretty visually unappealing. How will this workaround be done?

commented

Comment by me4502

The easiest I can think of it ejecting the player, end teleporting both separately, then re-putting the player in the cart. We already do that for teleportation into unloaded chunks (because otherwise it wouldn't load)

commented

Comment by Vladimír.Cimbůrek

Bukkit devs are trying to kill any plugins we have... me4502, if I recall correctly, u have this in your src.

if (passenger != null) {
cart.eject();
passenger.teleport(loc);
toCart.setPassenger(passenger);
}

so if u add line passenger.eject() and than cart.teleport() u might have your workaround... if you know what I mean :)