CraftBook 3

CraftBook 3

139k Downloads

Instant carts turn in to normal minecarts after teleportation outside craftbook

LadyCailinBot opened this issue ยท 3 comments

commented

CRAFTBOOK-3166 - Reported by thief_a

Hi,
i wonder if you can modify craftbooks instant cart feature in a way, that any minecart that gets placed in the world automaticly counts as instantcart.

right now i have the issue that when a instant cart with a player in it gets teleportet between portals, the instant cart turns in a "normal" minecart and not despawning anymore..

we get a big minecartflood that way on the server.

on the other hand, it should not interfere with other plugins that do stuff with minecarts like uplane or ucarts... (checking for lore?)

duno if its possible to do, but would be great if so.

commented

Comment by me4502

If the other plugin doesn't tell plugins the cart has appeared, there's no way for CraftBook to know.

commented

Comment by thief_a

Hi,
there is a little misunderstanding here.

I made this post long ago, when i had issues that normal minecarts, that got spawned either in another server instance or teleportet within the same map, did not count as instant carts anymore, and thus did not get erased by cb on cart exit.

that got fixed long ago, so now every minecart gets removed on exit, no mater if teleportet within the same map or coming trough bungee or what so ever.

while this solved the problem of tons of minecarts beeing on track, it now also affects "special minecarts" from uplane, called "planes".
thats why i in the first post already asked for a way to take care of those carts that are not spawnt or supposed to be instantcarts.
maybe by checking for its name, rather than just going to check for id on exit and remove all minecarts by that.

commented

Re: the message that was sent a while after - There's no "data" or anything that can be used to determine if this is a special cart, and there's nothing that CraftBook can add to track these entities across teleports. Teleported entities are 100% new entities.