public override void OnEntityCollidedWithBlock(net.minecraft.src.World world, int i, int j, int k, net.minecraft.src.Entity entity) { if (entity.ridingEntity == null && entity.riddenByEntity == null) { entity.SetInPortal(); } }