Traincraft

Traincraft

1M Downloads

Detector rail can not work with carts from Traincraft

drzzm32 opened this issue · 5 comments

commented

detector rail can't output redstone signal ‘HIGH’ while cart passing.
unless player ride this cart.
but powered rail can drive cart. (onMinecartPass() is ok)
should I use onMinecartPass() to detect cart from TC?

commented

Do you talk about the Minecraft Vanilla Detector Rail? That works fine here.

commented

okay good news, it was kinda hacky, but this should be fixed as of 94f725c

commented

yeah... only loco can be directly detected
passenger car requires passenger
or feight car requires feight?

commented

The trains and rollingstock are heavily modified minecarts, so some functionality does tend to be off.
Especially in the hitbox/collisionbox area, which is probably what's messing with it.

onMinecartPass() will be more reliable.

commented

I see, thanks.